Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get the values of dynamic fileupload Pin
Justin Perez31-Dec-07 2:24
Justin Perez31-Dec-07 2:24 
GeneralRe: How to get the values of dynamic fileupload Pin
Elena200631-Dec-07 2:30
Elena200631-Dec-07 2:30 
GeneralRe: How to get the values of dynamic fileupload Pin
Ed.Poore31-Dec-07 7:13
Ed.Poore31-Dec-07 7:13 
Generaldisplay rows in a list box Pin
michael_jhons31-Dec-07 1:22
michael_jhons31-Dec-07 1:22 
GeneralRe: display rows in a list box Pin
WillemM31-Dec-07 1:31
WillemM31-Dec-07 1:31 
GeneralC# - Events not triggering Pin
jgrogan31-Dec-07 1:07
jgrogan31-Dec-07 1:07 
GeneralRe: C# - Events not triggering Pin
WillemM31-Dec-07 1:29
WillemM31-Dec-07 1:29 
GeneralRe: C# - Events not triggering Pin
jgrogan31-Dec-07 1:48
jgrogan31-Dec-07 1:48 
Hi Willem,

In the designer script, I have the following events defined for the groupbox:

this.Conduit_Info_Group.MouseLeave += new System.EventHandler(this.Conduit_Info_Group_Exit);
this.Conduit_Info_Group.MouseEnter += new System.EventHandler(this.Conduit_Info_Group_Enter);

For the specific button, here is the defined event:
this.Conduit_AuthorisedAmount_Graph.Click += new System.EventHandler this.Conduit_AuthorisedAmount_Graph_Click);

Here are the above 3 methods:

private void Conduit_Info_Group_Enter(object sender, EventArgs e)
{
this.Conduit_AuthorisedAmount_Graph.Visible = true;
}
private void Conduit_Info_Group_Exit(object sender, EventArgs e)
{
this.Conduit_AuthorisedAmount_Graph.Visible = false;
}

private void Conduit_AuthorisedAmount_Graph_Click(object sender, EventArgs e)
{
<do stuff="">
}

I have also tried changing the enter and exit events as follows:

private void Conduit_Info_Group_Enter(object sender, EventArgs e)
{
this.Conduit_AuthorisedAmount_Graph.Visible = true;
this.Conduit_AuthorisedAmount_Graph.Click += new System.EventHandler(this.Conduit_AuthorisedAmount_Graph_Click);
}
private void Conduit_Info_Group_Exit(object sender, EventArgs e)
{
this.Conduit_AuthorisedAmount_Graph.Visible = false;
this.Conduit_AuthorisedAmount_Graph.Click -= new System.EventHandler(this.Conduit_AuthorisedAmount_Graph_Click);
}

In other words, I've reattached the event after showing the button and removed the event after hiding it, but it doesn't make a difference.
Another thing I've tried is removing the event MouseEnter once I've entered the groupbox and reattaching it after I leave. My thinking was that MouseEnter events were swamping the message queue and my button press event was getting lost, but still it wouldn't work!

Some days, VB6 just seems much simpler WTF | :WTF:

Many thanks,
John.
GeneralRe: C# - Events not triggering Pin
PIEBALDconsult31-Dec-07 15:37
mvePIEBALDconsult31-Dec-07 15:37 
GeneralBook of c# Pin
help as an alias31-Dec-07 0:28
help as an alias31-Dec-07 0:28 
GeneralRe: Book of c# Pin
Colin Angus Mackay31-Dec-07 0:55
Colin Angus Mackay31-Dec-07 0:55 
GeneralRe: Book of c# Pin
PIEBALDconsult31-Dec-07 15:39
mvePIEBALDconsult31-Dec-07 15:39 
GeneralRe: Book of c# Pin
Thomas Stockwell2-Jan-08 14:17
professionalThomas Stockwell2-Jan-08 14:17 
Generalrequest simulator Pin
Member 447840031-Dec-07 0:12
Member 447840031-Dec-07 0:12 
GeneralRe: request simulator Pin
WillemM31-Dec-07 1:32
WillemM31-Dec-07 1:32 
GeneralRe: request simulator Pin
Member 447840031-Dec-07 18:07
Member 447840031-Dec-07 18:07 
GeneralRunning .NET application from Server Share Pin
peterchen30-Dec-07 23:41
peterchen30-Dec-07 23:41 
GeneralRe: Running .NET application from Server Share Pin
martin_hughes31-Dec-07 0:48
martin_hughes31-Dec-07 0:48 
QuestionHow to make the toolbutton or toolmenu image backgroud to be the same with system background? Pin
Seraph_summer30-Dec-07 23:20
Seraph_summer30-Dec-07 23:20 
AnswerRe: How to make the toolbutton or toolmenu image backgroud to be the same with system background? Pin
Skippums31-Dec-07 7:47
Skippums31-Dec-07 7:47 
QuestionHow to restrict file type in one or more dynamic file upload controls Pin
Elena200630-Dec-07 23:14
Elena200630-Dec-07 23:14 
AnswerRe: How to restrict file type in one or more dynamic file upload controls Pin
N a v a n e e t h30-Dec-07 23:18
N a v a n e e t h30-Dec-07 23:18 
AnswerRe: How to restrict file type in one or more dynamic file upload controls Pin
PIEBALDconsult31-Dec-07 15:41
mvePIEBALDconsult31-Dec-07 15:41 
GeneralCheck to see if object is being referenced Pin
Winkles30-Dec-07 22:34
Winkles30-Dec-07 22:34 
QuestionRe: Check to see if object is being referenced Pin
CPallini30-Dec-07 22:43
mveCPallini30-Dec-07 22:43 

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.