Solved

Inheritance of form,tab pages & user control

Posted on 2004-08-05
3
145 Views
Last Modified: 2013-11-26
I am working on a project in visual basic  6 in which  I want to create a base program from which I want to inherit forms with / without tab pages.
If it is with tab pages then first tab page should be always be called as idw_mast. 2nd tab page as idw_trans[1],3rd tab page as idw_trans[2]
globally and so on. Also I want to create user objects having common global functions and variables which I can use in my all forms.
Can I use user control for this purpose? If yes, explain what is user control, how to use it with examples and where to use it ? If no, then tell me what to use to serve above purpose.
Also tell me about tab pages with examples.

Pl. help me
Regards

Yogita
0
Comment
Question by:sanyogita
3 Comments
 
LVL 3

Accepted Solution

by:
TILL earned 125 total points
ID: 11724261
You should create a custom control. This way, you can customize the control to be used in different ways in different Forms.
Embed the entire functionlity into this control. Make properties and methods that can be used to specify how many tabs to use.... after that, the tabs can be generated based on the logic that you described before. Tabs can be created both at design time and run-time (programatically). Take advantage of this.

If you need more help, please let me know.

Best of luck.
TILL.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now