Solved

i would like to make visible ...

Posted on 2008-06-22
7
213 Views
Last Modified: 2010-04-15
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

0
Comment
Question by:Natural_Demon
  • 3
  • 2
  • 2
7 Comments
 
LVL 13

Assisted Solution

by:josgood
josgood earned 100 total points
ID: 21842825
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
 

Author Comment

by:Natural_Demon
ID: 21842841
but, i mean via the code it self.
and print it out in a textbox.


regards



0
 
LVL 55

Assisted Solution

by:Jaime Olivares
Jaime Olivares earned 100 total points
ID: 21842853
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 13

Expert Comment

by:josgood
ID: 21842879
You could
         MessageBox.Show(string.Format("{0}\n{1}",sender.ToString(), e.ToString()));
but, as jaime says, that isn't very interesting.

0
 

Accepted Solution

by:
Natural_Demon earned 0 total points
ID: 21842937
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 21843190
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
 

Author Comment

by:Natural_Demon
ID: 21857629
i always use debug lines, always, that why i asked this question.


thank u all
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question