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

Home Posts Topics Members FAQ

Tabcontrol and window in Visual Studio

Some GUI questions for Visual Studio C#:
I'm using a TabControl component, somehow it defaults to the middle
tab. How can I make it default to the first tab?

My program has two window forms; when I launch my program, how can i
make one window appear over the other?

Thanks

Aug 6 '06 #1
1 1453
In order to show the tab you want, you must assign:

MyTabControl.SelectedTab = MyDefaultTab

MyDefaultTab is a "TabPage" object, which is one of many tabs in the
MyTabControl.TabPages collection.

wh*******@gmail.com wrote:
Some GUI questions for Visual Studio C#:
I'm using a TabControl component, somehow it defaults to the middle
tab. How can I make it default to the first tab?

I don't know much about this question, sorry.
My program has two window forms; when I launch my program, how can i
make one window appear over the other?

Thanks
Aug 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Colin | last post by:
Hey all, I'm having a bit of an issue with the TabControl (1.0.5000.0) under Visual Studio .NET 2003... Was wondering if anyone had seen it before... Basically, I have drawn a TabControl, and...
4
by: Cesar Ronchese | last post by:
Hi! I have a TabControl that have many TabPages, that must to be ordered in specific and fixed sequence. Some times, when I select a tab in random position to add and change controls and run...
0
by: Gianluca | last post by:
Hi All, i'm experencing a frustrating and strange behaviaour : I created a Windows project in VB.NET 2003 with a form and then I added a TabControl on the form, and added 5 TabPages on...
9
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so...
5
by: Zadkin | last post by:
Does anyone know, if it's possible to set the orientation of the tabpagebuttons to horizontal instead of vertical when the alignment property of my tabcontrol is set to left or right? Thanks in...
0
by: timbobd | last post by:
I have a Windows Form project with a TabControl-based window. After adding a second tab, I can no longer copy/paste/delete controls, either on the original tab or after they have been added to any...
4
by: Jason Rangle | last post by:
I am not sure how to use this even properly. When I have it as follows I have to click on the tabPage1 for anything to show. TIA. namespace TabLayout { public partial class TabLayout : Form...
11
by: research | last post by:
Hi, I'm using Visual Basic 2005 Express Edition to develop small tools in relation with our applications and I'm facing a problem using the interface. It sometimes happens that the design...
1
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two tabpages. When I set tab control's Alignment property to Right, tab texts (captions) disappear. Does anybody...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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.