Click here to Skip to main content
16,007,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I fire an event from code? Pin
JoeRip1-Jan-07 21:58
JoeRip1-Jan-07 21:58 
GeneralRe: How do I fire an event from code? Pin
JoeRip1-Jan-07 22:02
JoeRip1-Jan-07 22:02 
GeneralRe: How do I fire an event from code? Pin
Mircea Puiu1-Jan-07 22:31
Mircea Puiu1-Jan-07 22:31 
GeneralRe: How do I fire an event from code? Pin
JoeRip1-Jan-07 23:09
JoeRip1-Jan-07 23:09 
GeneralRe: How do I fire an event from code? Pin
Mircea Puiu1-Jan-07 23:57
Mircea Puiu1-Jan-07 23:57 
GeneralRe: How do I fire an event from code? Pin
Martin#2-Jan-07 0:06
Martin#2-Jan-07 0:06 
GeneralMaybe a little more help is welcome Pin
Mircea Puiu2-Jan-07 0:10
Mircea Puiu2-Jan-07 0:10 
GeneralRe: Maybe a little more help is welcome Pin
JoeRip2-Jan-07 1:05
JoeRip2-Jan-07 1:05 
This is EXACTLY what I needed. thanks.

Okay, I'm so close. Here's what I'm doing now:

HandledMouseEventArgs:
Button Gets which mouse button was pressed. (Inherited from MouseEventArgs.)
Clicks Gets the number of times the mouse button was pressed and released. (Inherited from MouseEventArgs.)
Delta Gets a signed count of the number of detents the mouse wheel has rotated. (Inherited from MouseEventArgs.)
Handled Gets or sets whether this event should be forwarded to the control's parent container.
Location Gets the location of the mouse during the generating mouse event. (Inherited from MouseEventArgs.)
X Gets the x-coordinate of the mouse during the generating mouse event. (Inherited from MouseEventArgs.)
Y Gets the y-coordinate of the mouse during the generating mouse event. (Inherited from MouseEventArgs.)

DataGridViewColumnDividerDoubleClickEventArgs(int ColumnIndex, HandledMouseEventArgs e)


So I'm doing this:

HandledMouseEventArgs ea = new HandledMouseEventArgs(MouseButtons.Left,2,0,0,0,false);<br />
System.Windows.Forms.DataGridViewColumnDividerDoubleClickEventArgs f = new DataGridViewColumnDividerDoubleClickEventArgs(2, ea);<br />
dgvAllEvents_ColumnDividerDoubleClick(this, f);


I'm just making up data for the HandledMouseEventArgs, except the second argument, which is the ColumnIndex (which column divider to doubleclick). And it's not doing anything yet. Apparently, I actually need to provide real point data in the HandledMouseEventArgs, although I'm not sure why it would need to know where the mouse actually is? And for the Handled argument, should I be sending True or False?
GeneralRe: Maybe a little more help is welcome Pin
Mircea Puiu2-Jan-07 1:56
Mircea Puiu2-Jan-07 1:56 
GeneralRe: How do I fire an event from code? Pin
Martin#2-Jan-07 0:07
Martin#2-Jan-07 0:07 
QuestionWord Document Automation Pin
Gopal K R1-Jan-07 19:29
Gopal K R1-Jan-07 19:29 
AnswerRe: Word Document Automation Pin
Pete O'Hanlon1-Jan-07 23:49
mvePete O'Hanlon1-Jan-07 23:49 
QuestionNeed Help in context menu Pin
Venkatesh.P1-Jan-07 19:18
Venkatesh.P1-Jan-07 19:18 
AnswerRe: Need Help in context menu Pin
JoeRip1-Jan-07 19:44
JoeRip1-Jan-07 19:44 
GeneralRe: Need Help in context menu Pin
Venkatesh.P1-Jan-07 20:24
Venkatesh.P1-Jan-07 20:24 
GeneralRe: Need Help in context menu Pin
Venkatesh.P1-Jan-07 22:10
Venkatesh.P1-Jan-07 22:10 
GeneralRe: Need Help in context menu Pin
Venkatesh.P2-Jan-07 18:10
Venkatesh.P2-Jan-07 18:10 
QuestionTree View Control help Pin
tirumal12311-Jan-07 19:17
tirumal12311-Jan-07 19:17 
AnswerRe: Tree View Control help Pin
Mircea Puiu1-Jan-07 21:55
Mircea Puiu1-Jan-07 21:55 
QuestionCan you map a created datatable column? Pin
Rabbit171-Jan-07 18:31
Rabbit171-Jan-07 18:31 
AnswerRe: Can you map a created datatable column? Pin
Mircea Puiu1-Jan-07 22:08
Mircea Puiu1-Jan-07 22:08 
QuestionWhat is size of hash table? Pin
Madhuri07081-Jan-07 18:30
Madhuri07081-Jan-07 18:30 
AnswerRe: What is size of hash table? Pin
Cormac M Redmond1-Jan-07 21:33
Cormac M Redmond1-Jan-07 21:33 
Questionwhat is size of dataset(in terms of tables)? Pin
Madhuri07081-Jan-07 18:28
Madhuri07081-Jan-07 18:28 
AnswerRe: what is size of dataset(in terms of tables)? Pin
Vega021-Jan-07 19:25
Vega021-Jan-07 19:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.