MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Notating Windows Forms

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp
Author Message
jehugaleahsa



Joined: 19 Oct 2007
Posts: 12

PostPosted: Wed Dec 12, 2007 8:01 pm    Post subject: Notating Windows Forms Reply with quote

Hello:

I have come to the realization that it would be very beneficial to be
able to put comments for controls in Windows Forms. I would like this
to only be visible to the form designer, not the user. This way, we
can put information such as what fields are bound to the control, what
values are expected and any other documentation we want.

I would like to be able to see these comments appear when I look at
the control, something like a tooltip or just a property. Right now we
would have to take a screen shot and edit the picture. However, this
isn't very dynamic and it means rummaging through tons of
documentation.

Is there something like this out there now? or is this just wishful
thinking?

Thanks,
Travis

Archived from group: microsoft>public>dotnet>languages>csharp
Back to top
View user's profile Send private message
RobertK



Joined: 03 Dec 2007
Posts: 1

PostPosted: Wed Dec 12, 2007 11:15 pm    Post subject: Re: Notating Windows Forms Reply with quote

Would the control.tag work?
Back to top
View user's profile Send private message
Marc Gravell



Joined: 08 Aug 2007
Posts: 20

PostPosted: Sat Jan 12, 2008 7:08 am    Post subject: Re: Notating Windows Forms Reply with quote

Late reply... sorry...

Actually, it wouldn't be that tricky to put a "comment" compnent
together that acts by creating an extension property in the property-
grid (similar to how "tooltip" provides an extension property).

If you want to be pragmatic, a simpler option would be to add an
(additional?) tooltip to the form, called "comments" or similar, set
Active=False, and then use the "Tooltip on comments" extension
property to store the comments.

With some work, you could do something more elegant, but it probably
isn't worth it.

However!!! I think the idea here is a very good one, and perhaps with
some IDE support it could be done a lot better - i.e. why can't the
comments (via the designer) relate to the structured "///" comments
against the form / control? Presumably by a fly-out in the property-
grid (similar to "(Data Bindings)", "(Application Settings)", etc -
why not "(Documentation)" with Summary, Remarks, etc.

This is supported for the class designer - why not the forms designer?
Perhaps log it on "connect"? The only difficult one would be those
where GenerateMember=false, since there would be nowhere to put
the /// comments; perhaps simply not support it for such.

It might *even* be possible to do something like this via an IDE
plugin... I don't know enough to say...

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
ASP.NET vs. Windows Forms Anyone know of some general info on the relative performance of apps based on Web Forms vs Windows Forms?

Events in windows forms Hi, I have created one mdi form and many child forms in my applicaion. In one of the forms, I have implemented leave event for one text box which gives a messagebox if the value has been changed in the text box. I also have a toolbar that closes all child

Windows Authentification with Web Forms? hello everybody, windows by using the global.asax is no problem. but we want, that the user can logon on a nice web-form, and its login/pw should be validated through windows and treated as windows so in

Why do Windows Forms apps use so much memory? I read an article from Microsoft, and the guy was saying 6 to 8 MB for the memory footprint, which already seems large. However, my apps, which aren't much beyond a few simple forms, menus, and some custom classes, tend towards 20MB. Sometimes higher.

System.Windows.Forms.SendKeys hi In my application, i have to use to give keystroke to an active application. I dont know how to give numbers as input. can anyone give me an example for sending a number Thanks sendhil
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> C Sharp All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group