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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello again, VB Gurus! It's me,

Status
Not open for further replies.

GrigoreDolghin

Programmer
Oct 23, 2000
167
RO
Hello again, VB Gurus!

It's me, the newbie :)

Question no. 3:

Suppose I make some modifications to a VB intrisec control (for example, a validation routine to a textbox which prevents the user to enter anything but numbers). Is there a way to save&reuse the combo? I want to be able to make an own collection of controls for easy reuse and quick design.

Thank you very much.

Grigore Dolghin
 
There is a way!

Select ActiveX Control under New Project.

You will get what looks like a form, but it's actual a canvas on which you draw intrinsic controls. You can then write your custom code underneath these controls.

When you "make" this control, it will be available to add to your controls toolbar. you can even specify the icon the custom control uses on the toolbar.

Once you do a few simple ones (like textboxes) more complicated ones are pretty easy.

I once made a user control made of a TabStrip control, with about 100 other controls on it.

I needed this because I needed all 100 inputs to be repeated 'n' times on a form... but dynamically. Imagine writing code to add 100 controls dynamically! So I "rolled my own", so all I had to do was create my single, custom control.

 
Hi, JSamadi!

Thank you very much for the info. I knew it: vb gurus won't let me down... :)

See ya.

Thanks again
Grigore Dolghin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top