i would like to make visible ...

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

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

Who is Participating?
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
: )
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.
Natural_DemonAuthor Commented:
but, i mean via the code it self.
and print it out in a textbox.


Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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.
You could
         MessageBox.Show(string.Format("{0}\n{1}",sender.ToString(), e.ToString()));
but, as jaime says, that isn't very interesting.

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 );
Natural_DemonAuthor Commented:
i always use debug lines, always, that why i asked this question.

thank u all
All Courses

From novice to tech pro — start learning today.