Notating Windows Forms

  • Thread starter Thread starter jehugaleahsa
  • Start date Start date
J

jehugaleahsa

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
 
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top