473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

TabControl in VB.NET 2005 not using XP style

I'm trying to use the new tabcontrol in VB.NET 2005. While in design
mode, it looks fine, using the same XP theme as the one I have set in
Windows.

The problem is that as soon as I run the program, the tabcontrol
changes its style to the old gray classic-windows style. I tried
playing around with both DrawMode values available (Normal and
OwnerDrawFixed), as well as any other property I could think of but
nothing has worked to show it with the XP style.

Am I missing something? Any help would be appreciated.

Thanks!

Dec 22 '05 #1
7 4823
"AbsolutG" <ga************@gmail.com> schrieb:
I'm trying to use the new tabcontrol in VB.NET 2005. While in design
mode, it looks fine, using the same XP theme as the one I have set in
Windows.

The problem is that as soon as I run the program, the tabcontrol
changes its style to the old gray classic-windows style.


I am not able to reproduce this problem using the final version of VS 2005
Professional on Windows XP Professional SP2. Does the problem even occur in
a simple test project?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 22 '05 #2
Please do not crosspost .NET questions to the *.vb.* groups. They are for
VB6 and earlier. Stay within the *.dotnet.* groups. Thanks.
Dec 22 '05 #3
Jeff,

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> schrieb:
Please do not crosspost .NET questions to the *.vb.* groups. They are for
VB6 and earlier. Stay within the *.dotnet.* groups. Thanks.


That's indeed true, but I am afraid that an increasing number of users will
post VB 2005-related questions to the Classic VB groups because Microsoft
has dropped the ".NET" from the product names.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 22 '05 #4
1)Make sure you are not using on your form any legacy activex control(s) as
it will damages XP style.
2) Application.EnableVisualStyles is used.

Thanks
-Yuri

"AbsolutG" <ga************@gmail.com> ???????/???????? ? ???????? ?????????:
news:11**********************@o13g2000cwo.googlegr oups.com...
I'm trying to use the new tabcontrol in VB.NET 2005. While in design
mode, it looks fine, using the same XP theme as the one I have set in
Windows.

The problem is that as soon as I run the program, the tabcontrol
changes its style to the old gray classic-windows style. I tried
playing around with both DrawMode values available (Normal and
OwnerDrawFixed), as well as any other property I could think of but
nothing has worked to show it with the XP style.

Am I missing something? Any help would be appreciated.

Thanks!

Dec 22 '05 #5

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oj**************@TK2MSFTNGP15.phx.gbl...
Please do not crosspost .NET questions to the *.vb.* groups. They are for
VB6 and earlier. Stay within the *.dotnet.* groups. Thanks.


That's indeed true, but I am afraid that an increasing number of users
will post VB 2005-related questions to the Classic VB groups because
Microsoft has dropped the ".NET" from the product names.


Ohhhhh, trust me, that is DEFINTELY the case!
Dec 22 '05 #6
Sorry about the crosspost. Details like those are not exactly public
knowledge, but now I know for next time.

Anyway, I found the solution. I simply went to the application
properties and checked the "Enable Application Framework" option (it's
unchecked by default). Once this is done, it enabled some more
properties, one of them being "Enable XP visual styles". I just made
sure that it was checked and that was it!

I didn't try the Application.EnableVisualStyles option but my guess is
that that could have worked too.

Thanks!

Dec 22 '05 #7
"Herfried K. Wagner [MVP]" <hi***************@gmx.at>'s wild
thoughts were released on Thu, 22 Dec 2005 02:34:20 +0100
bearing the following fruit:
Jeff,

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> schrieb:
Please do not crosspost .NET questions to the *.vb.* groups. They are for
VB6 and earlier. Stay within the *.dotnet.* groups. Thanks.


That's indeed true, but I am afraid that an increasing number of users will
post VB 2005-related questions to the Classic VB groups because Microsoft
has dropped the ".NET" from the product names.


People generally only need to be told once.
Jan Hyde (VB MVP)

--
Why does Santa like to go down chimneys?
Because it soots him

Dec 22 '05 #8

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

Similar topics

1
by: Paiam Salavati | last post by:
I want to change the the color of the tabs and the color of TabControl itself in a TabControl. Therefore I wrote the following code in my customized TabControl-class: this.DrawMode =...
0
by: David Veeneman | last post by:
I've come across an odd bit of behavior on the VS 2005 TabControl, and I'm wondering if its a bug, or if I'm missing something. I have a TabControl with five tab pages. Each page has a...
4
by: Oenone | last post by:
I'm using a TabControl to facilitate a wizard-style form, using some of the techniques described here: http://www.codeproject.com/cs/miscctrl/WizardTab.asp For the most part I have this...
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...
2
by: Gregory Gadow | last post by:
The TabControl that shipped with .NET 2.0 is seems to be buggier than dog droppings in high summer. Among several complaints, the tabs themselves look horrifically ugly when their pages have the...
0
by: Gustaf | last post by:
Using VS 2005. I'm hardly the first to discover this, but here's a description of the bug as I found it: 1. Make a new form. 2. Add a SplitContainer and make it horizontal. 3. Add a TabControl...
2
by: Richard Carpenter | last post by:
I have a four-page tabcontrol with a gridview on each page. I have the primary key column of each gridview set to hidden (visible = false), but it still shows up on all but the first page. Anyone...
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...
5
by: temijojo | last post by:
Hello, Can someone help me in this problem. In my content page, I used 2 user controls inside an Ajax Toolkit TabControl. One of the user controls is a data entry with a dropdownlist. The...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.