event not firing

J

jayderk

Hello all,

I am working on a form trying to get a eventhandler to fire when I tap on a
label box..


I used the VS UI (not a custom label box) to create the label box.... then
added the mouseUp event
like so
public frmMain()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
this.lblOrders.MouseUp += new MouseEventHandler(lblOrders_MouseUp);
//
// TODO: Add any constructor code after InitializeComponent call
//
}



//this was created by VS as soon as I typed "+= new " and looks
symantically correct

private void lblOrders_MouseUp(object sender, MouseEventArgs e)
{
MessageBox.Show( "clicked on orders");
GUI.frmCollectScans fcoll = new Clipboard.GUI.frmCollectScans();
fcoll.ShowDialog();
if(fcoll != null)
fcoll.Dispose();
}



I never see the MessageBox .... so the event is not firing... am I missing
something..



thanks in advanced..

later,
Jay
 
J

jayderk

does anything (less obtrusive then a button) support the mouseup feature?
I think picturebox does.... any other ones you know of off hand?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top