Solved

i would like to make visible ...

Posted on 2008-06-22
7
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

628 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