Click here to Skip to main content
15,909,953 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Is this possible? Pin
Paul M Watt10-Dec-14 4:17
mentorPaul M Watt10-Dec-14 4:17 
GeneralRe: Is this possible? Pin
chriselst10-Dec-14 4:28
professionalchriselst10-Dec-14 4:28 
GeneralRe: Is this possible? Pin
Paul M Watt10-Dec-14 4:56
mentorPaul M Watt10-Dec-14 4:56 
GeneralRe: Is this possible? Pin
Worried Brown Eyes10-Dec-14 5:48
Worried Brown Eyes10-Dec-14 5:48 
GeneralRe: Is this possible? Pin
chriselst10-Dec-14 6:06
professionalchriselst10-Dec-14 6:06 
GeneralRe: Is this possible? Pin
_Damian S_10-Dec-14 12:10
professional_Damian S_10-Dec-14 12:10 
GeneralRe: Is this possible? Pin
Worried Brown Eyes10-Dec-14 23:36
Worried Brown Eyes10-Dec-14 23:36 
GeneralRe: Is this possible? Pin
PIEBALDconsult10-Dec-14 4:27
mvePIEBALDconsult10-Dec-14 4:27 
Sounds like The Wally Reflector[^] to me.


Sure, just add XML comments to all of the members of all of your Forms...

C#
/**
<summary>The address of the user</summary>
<remarks>Stored in [dbo].[User].[Address]</remarks>
<value>String representation</value>
*/
private System.Windows.Forms.TextBox address = new System.Windows.Forms.TextBox() ;


XML
<member name="F:PlayGround.Form1.address">
        <summary>The address of the user</summary>
        <remarks>Stored in [dbo].[User].[Address]</remarks>
        <value>String representation</value>
</member>


No? How about an Attribute?

C#
public class DocumentationAttribute : System.Attribute
{
  public string Summary { get ; private set ; }
  public string Remarks { get ; private set ; }
  public string Value   { get ; private set ; }

  public DocumentationAttribute
  ( string Summary , string Remarks , string Value )
  {
    this.Summary = Summary ;
    this.Remarks = Remarks ;
    this.Value   = Value   ;
  }
}

[DocumentationAttribute("The address of the user","Stored in [dbo].[User].[Address]","String representation")]
private System.Windows.Forms.TextBox address = new System.Windows.Forms.TextBox() ;


You know, I bet a smart guy like you could derive your own controls...

C#
public interface IDocumentMyself
{
  string Name    { get ; }
  string Summary { get ; }
  string Remarks { get ; }
  string Value   { get ; }
}

public class MyTextBox : System.Windows.Forms.TextBox , IDocumentMyself
{
  public string Summary { get ; private set ; }
  public string Remarks { get ; private set ; }
  public string Value   { get ; private set ; }

  public MyTextBox
  ( string Summary , string Remarks , string Value )
  {
    this.Summary = Summary ;
    this.Remarks = Remarks ;
    this.Value   = Value   ;
  }
}

private MyTextBox myaddress = new MyTextBox("The address of the user","Stored in [dbo].[User].[Address]","String representation") ;


You're welcome. Badger | [badger,badger,badger,badger...]

modified 10-Dec-14 14:06pm.

AnswerRe: Is this possible? Pin
Richard MacCutchan10-Dec-14 5:16
mveRichard MacCutchan10-Dec-14 5:16 
AnswerRe: Is this possible? Pin
RedDk10-Dec-14 7:33
RedDk10-Dec-14 7:33 
AnswerRe: Is this possible? Pin
S Douglas10-Dec-14 7:59
professionalS Douglas10-Dec-14 7:59 
GeneralSelf-directed learning Pin
BiggerDon10-Dec-14 3:36
BiggerDon10-Dec-14 3:36 
GeneralRe: Self-directed learning PinPopular
OriginalGriff10-Dec-14 3:47
mveOriginalGriff10-Dec-14 3:47 
GeneralRe: Self-directed learning Pin
PIEBALDconsult10-Dec-14 3:58
mvePIEBALDconsult10-Dec-14 3:58 
GeneralRe: Self-directed learning Pin
OriginalGriff10-Dec-14 4:09
mveOriginalGriff10-Dec-14 4:09 
GeneralRe: Self-directed learning Pin
Brady Kelly10-Dec-14 4:08
Brady Kelly10-Dec-14 4:08 
GeneralRe: Self-directed learning Pin
PIEBALDconsult10-Dec-14 3:57
mvePIEBALDconsult10-Dec-14 3:57 
GeneralRe: Self-directed learning Pin
BiggerDon11-Dec-14 3:45
BiggerDon11-Dec-14 3:45 
GeneralRe: Self-directed learning Pin
jhoga11-Dec-14 11:50
jhoga11-Dec-14 11:50 
GeneralRe: Self-directed learning Pin
BiggerDon12-Dec-14 8:29
BiggerDon12-Dec-14 8:29 
GeneralRe: Self-directed learning Pin
KarstenK10-Dec-14 4:24
mveKarstenK10-Dec-14 4:24 
GeneralRe: Self-directed learning Pin
OriginalGriff10-Dec-14 4:33
mveOriginalGriff10-Dec-14 4:33 
GeneralRe: Self-directed learning Pin
BiggerDon10-Dec-14 7:58
BiggerDon10-Dec-14 7:58 
GeneralRe: Self-directed learning Pin
OriginalGriff10-Dec-14 8:26
mveOriginalGriff10-Dec-14 8:26 
GeneralRe: Self-directed learning Pin
Fabio Franco10-Dec-14 23:22
professionalFabio Franco10-Dec-14 23:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.