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
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