Solved

i would like to make visible ...

Posted on 2008-06-22
7
196 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now