Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2007

Tip: Looking for answers? Try searching our database.

Name/Value in locals/autos windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jack@unraunet.com - 12 Mar 2007 23:15 GMT
When I am debugging and have a variable that is a button, the locals/
autos windows in Visual Studio display the value of the button
variable as {Text="button1"}.  Does anyone know where this
functionality comes from, and how would I add it to my classes?

Thanks.
Bryan Phillips - 13 Mar 2007 02:42 GMT
Override the ToString method.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> When I am debugging and have a variable that is a button, the locals/
> autos windows in Visual Studio display the value of the button
> variable as {Text="button1"}.  Does anyone know where this
> functionality comes from, and how would I add it to my classes?
>
> Thanks.
jack@unraunet.com - 13 Mar 2007 16:31 GMT
On Mar 12, 7:42 pm, "Bryan Phillips"
<bphill...@nospam.spamcop.net.spammenot> wrote:
> Override the ToString method.
>
[quoted text clipped - 14 lines]
>
> - Show quoted text -

The return value of the ToString() method is not what is displayed in
the Value column.
jack@unraunet.com - 13 Mar 2007 19:00 GMT
I figured it out:

Modify the following file:

<vsinstalldir>Common7\Packages\Debugger\mcee_cs.dat

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.