Question How to make use of Description attribute?

groadsvb

Well-known member
Joined
Nov 13, 2006
Messages
75
Programming Experience
Beginner
I Need to preface this with I am extremely new to vb.net and never was a vb6 programmer which explains a lack of knowledge. I have a form that has appx 20 checkboxes. The data is stored in xml. We would like to have a textbox or panel at the bottom of the screen to display information about the check box. Just like the property box in the IDE. The information will be store in the description attribute. Does vb.net have functions that do that already or do I need to program for that? Also would I be best to but the description attribute on the xml or the property on the programs? Much thanks.
 
Files & databases are used to store data that changes. It not likely your checkboxes description's are going to change; therefore you dont need to save to a file in this manner. Simirally a textbox is to allow a user to change text which you dont seem to want in this description, use a label or statusstrip instead since the description will be read only. You can use each of the check boxes GotFocus events to set your text to display and the LostFocus event to clear the text.
 
I take it you have a 'description' attribute in your Xml. You can for example place this information in the controls Tag property, and retrieve it for the event you want to display the info (Click, MouseHover, CheckedChanged perhaps). Using a ToolTip could perhaps be a better alternative to displaying this additional info?
 
Back
Top