Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I Just Don't Get Controls

Status
Not open for further replies.

RWild

Programmer
Nov 14, 2003
53
US
Can anybody explain them to me? I don't clearly understand them. Thanks for any help possible.
 
Controls are the things in your toolbox that have a specific functionality. Textboxes, Buttons, ProgressBars... these are examples.

Each control is defined in a class that contains all the code for doing the special things it does: for instance, the code to return the information in the textbox.

VB.NET allows you to overwrite those functions if you want it to do something slightly different. I created a new type of control with a listbox and a button... it toggles "Select All" and "Unselect All" whenever you click the button. Putting this in a control allows you to package it and use it elsewhere... so once I created the control, all I have to do is reference my .dll file and declare a new SelectAllListBox object. Saves time because I can just plug in my pre-configured package whenever & wherever I need, and I'll have something that works just like all the other ones in my program.

hth

Ben
A programmer was drowning. Lots of people watched but did nothing. They couldn't understand why he yelled "F1!"
 
Sorry benlinkknilneb, I don't know why I wrote controls. I just wasn't thinking at the moment. It must have been a stressful day.

I meant to say this:

"I don't get collections. Can anyone explain them to me."
 
How about starting a new thread for that topic, then? Other people won't find it if the thread says "controls".

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top