160 questions
0 votes
0 answers
17 views
How to Move Focus Between Grid Columns on Enter Key in a Data Entry Grid with ComboBox Columns?
I’m a beginner in software development and currently working on a data entry grid. I’m using a grid control with 5 ComboBox columns (Column A, B, C, D, and E). I want to handle the Enter key so that ...
1 vote
2 answers
487 views
Using the properties of a System.EventArgs in C#
I have an application which was using a System.Windows.Forms.WebBrowser to enable users to navigate to a web page in order to allow an OAuth2 autentication to take place. This works for one ...
1 vote
1 answer
2k views
Handling a ComboBox Selection using WPF,MVVM, and the SelectionChanged Event
I have a ComboBox. When users try change the selectedItem on the ComboBox, I want a MessageBox to pop up and confirm whether or not they want to change their selection. If not, the selection should ...
0 votes
3 answers
409 views
VB.Net - Can you access the expected data type within a function?
I was wondering if there is any way to access the expected data type within a function similar to an event arg. I am doubtful that this is possible, though it would be an excellent feature. I ...
1 vote
0 answers
59 views
Inject different EventArgs into event per for each listener?
So I have an EventHandler: public event EventHandler<CustomEventArgs> Confirmed; protected void RaiseConfirmed() { Confirmed?.Invoke(this, new CustomEventArgs(Color.red)); } And I have a ...
1 vote
0 answers
48 views
c# ObservableCollection NotifyCollectionChangedEventArgs Members
Why the class NotifyCollectionChangedEventArgs in the ObservableCollection's event CollectionChanged have the properties: IList NewItems IList OldItems As IList (notice the s at the end, also when I ...
0 votes
1 answer
447 views
Bitmap access violation exception with camera image
In my WPF application images are taken with a camera use a view and then passed as bitmaps to another when it's closed via eventargs. However, when I then try to process the images I get the ...
2 votes
2 answers
556 views
invoke datagridview events in wpf programmatically
(Beginner's question, if offended please move on, otherwise your input is welcome) Im trying to invoke datagridview events in Wpf code. Implementing the event calling is straight forward. for example: ...
0 votes
1 answer
220 views
EventArgs data usage
I have three classes, the FileManagerClass contains two events which are EventHandler<FileTransferEventArgs> FileMove and EventHandler<FileTransferEventArgs> FileMoveError. I then have a ...
1 vote
1 answer
716 views
C# NullReferenceException while EventHandler
I get a NullRefernceException even though I subscribed to the event in an Start Methode. Where I create my Event: public EventHandler<CustomArgs> ClickEvent; private void OnMouseDown() ...
0 votes
0 answers
39 views
C# events with custom arguments - how to achieve something similar with C++?
Is it possible to achieve in C++ similar behavior to that of events with custom arguments in C#? I came across the following link: https://www.tangiblesoftwaresolutions.com/articles/...
0 votes
1 answer
212 views
Is there a checkedListBox ItemUnchecked/CheckChanged event of some kind?
I know that there is a checkedListBox event called ItemChecked and I think there's a CheckChanged event for individual checkboxes, but is there an ItemUnchecked or CheckChanged event counterpart for a ...
1 vote
1 answer
335 views
Unity Dark Rift Online Event Args Issue
we are attempting to set up an online server and connect players to a server using Dark Rift, a collection of libraries. We are getting an error with a part of our code that checks when a player joins ...
0 votes
0 answers
103 views
How To get position of cursor on panel with scrollbars [duplicate]
I am using C# winforms and have a panel that scrolls that I would like to detect the coordinates of a mouse click within the panel in relation to the panel. I am simply trying to get the coordinates ...
0 votes
0 answers
132 views
Wpf Priority of EventArgs
When I pushed slider which children of Grid I want to childrens eventargs should trigger before Grid.I want to e.handled true after my grids children triggered. How do I do this. Thanks for interest. ...