Solved

Inheritance of form,tab pages & user control

Posted on 2004-08-05
3
147 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

825 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