i would like to make visible ...

i would like to make visible the containings of ...

object sender
and...
EventArgs e

in my voyage to better understand what i'm actualy doing.


kind regards
private void OpenWindowButto_Click(object sender, EventArgs e)
        {
 
        }

Open in new window

Natural_DemonAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Natural_DemonConnect With a Mentor Author Commented:
wel, i didn't ment the button_click event, but in genral.
i'm a noob and sometimes i cause a erro with this and not being beabled to find a solution
: )
0
 
josgoodConnect With a Mentor Commented:
The easiest way is probably to set a breakpoint on OpenWindowButto_Click, run the program so that the breakpoint is hit, and then view these objects with the debugger.

To view, place the mouse cursor over the object, right click, and select QuickWatch.
0
 
Natural_DemonAuthor Commented:
but, i mean via the code it self.
and print it out in a textbox.


regards



0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Jaime OlivaresConnect With a Mentor Software ArchitectCommented:
there is nothing useful in this event IMHO,
sender allways be a reference to the button control that generates the event, usually no mistery here, unless several buttons point to the same event.
e contains basically nothing.
 
0
 
josgoodCommented:
You could
         MessageBox.Show(string.Format("{0}\n{1}",sender.ToString(), e.ToString()));
but, as jaime says, that isn't very interesting.

0
 
Jaime OlivaresSoftware ArchitectCommented:
A messagebox is a good technique to debug, as josgood example. It is my favorite debugging method.
Also you can ouput anything directly to the VisualStudio debug window by using:

System.Diagnostics.Debug.WriteLine( similar to messagebox here );
0
 
Natural_DemonAuthor Commented:
i always use debug lines, always, that why i asked this question.


thank u all
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.