Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple output statement question

Status
Not open for further replies.

tobermory20

Programmer
Joined
Dec 7, 2007
Messages
20
Location
US
I have created a form, I let the Form Load take care of loading all the data. Now I have added mouse click event, I for starters just wanted to output some text when

I created a simple Form1_MouseClick(object sender, MouseEventArgs e) in a form. Now I want to just output something like "You are in Mouse Click Event \n". However, Console.Writeline() doesn't seem to work, go figure right... How can I accomplish some simple output to a form. I actually want to output these values x = e.X and y = e.Y is where I am heading with this, but I can't seem to do a simple output statement. Any advice?

Thanks,
T.
 
put a breakpoint in your click method. Chances are it's not linked up.

To fix this - go to the designer, select your form and in the properties window, click the lightning bolt. Find the Click event and select your method from the drop down list.

 
Thanks JurkMonkey, that did the trick...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top