473,473 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to add a form to tab control

17 New Member
Dear all,

Could somebody tell me how to add a vb form to a tab control (VB 6.0)? I have some 5 forms and i would like to add each form to the tab control.

Regards,
Sasie
Jul 14 '08 #1
5 3135
alkeshnayak
5 New Member
May Be You Can Not Add Form in Tab Control But You Can Trt A Tab Control and Put Your All Form's Control In Tabular Format
Jul 14 '08 #2
Sasie7679
17 New Member
I just gave an example of 5 forms. But in our live application we have around 50 forms. We have a new requirement to display all forms in a tab control. It would be time consuming to select all controls of each form and place them in the tab control. I tried using setParent API and it works fine, but some times the form position changes. I would like to know whether any other work around is there.
Jul 14 '08 #3
debasisdas
8,127 Recognized Expert Expert
Dear all,

Could somebody tell me how to add a vb form to a tab control (VB 6.0)? I have some 5 forms and i would like to add each form to the tab control.

Regards,
Sasie
That is not possible because form is the parent control and container for all other controls.

You need to use MDI for that.
Jul 14 '08 #4
!NoItAll
297 Contributor
You can select all of the controls of a form then cut and paste them. Sometimes the arrangement is a little off, but correcting that only takes a few seconds.
So - you are going to wind up with some 50 tabs here, made from a 50 form application? Wow - this sounds like an app written by Beelzebub himself!
Jul 15 '08 #5
smartchap
236 New Member
Dear sasie7679

First of all design all your forms separately. Now say ur forms are named form1, form2,...,etc. Place a tab control in a separate form which will be ur main form. Now on click event of tabs write code to load & show the corresponding form (form1 or form 2 or any other form) in that tab (by using index of that tab). Also align the form's left and right as per tab size.
Jul 18 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
3
by: Bryan Capps | last post by:
I have a text box control on a form, the value of which is calculated (concatenated) from entries on a subform. Accordingly, I've set the control's locked property to true and the tab stop...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
4
by: Paradox | last post by:
Hey, I'm trying to figure out what situations call for the use of a derived form control such as: public class myListBox : System.Windows.Forms.ListBox and what situations call for the use...
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
7
by: Tom wilson | last post by:
I'm trying to create dynamic controls in ASP.Net. It's driving me nuts. I keep getting the error: Control '16' of type 'RadioButton' must be placed inside a form tag with runat=server. Dim...
11
by: PAul Maskens | last post by:
The form designer adds unnecessary code to the section when using a subclassed control. I've reproduced this in VS.NET 2002 and VS.NET 2003 so it's pretty fundamental. Outline steps: Create a...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
6
by: dbuchanan | last post by:
VS2005 I've been reading all the help I can on the topic (MSDN, other) but I can't make sense of this. Desired behavior; The user is to choose from the displayed list of the databound combobox...
19
by: Coward 9 | last post by:
HI, I saw in an example hello.aspx, there is a <form tagbeing used like <form runat="server> I search all html tag references and could NOT find "runat" attributes for <formtag. which...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.