Post Job Free
Sign in

.Net Developer Development Control Business It

Location:
United States
Posted:
October 27, 2012

Contact this candidate

Resume:

all

Business

Careers and Education

IT

Apache Web Server

Content Management Systems

IIS / Microsoft Internet Information Services

Mac OS X

Microsoft Windows

Networking

Unix / Linux / BSD

Development

.NET Framework

ASP / Active Server Pages

ASP.NET

Algorithms / Advanced Math

C / C++

C# / C Sharp

ColdFusion

DB2 Database

Flash / Actionscript

HTML / CSS

Java

JavaScript / Ajax / DHTML

Microsoft Access / VBA

Microsoft SQL Server

Mobile Development

MySQL Database

Oracle Database

PHP

Perl

PostgreSQL Database

Python

Ruby / Ruby on Rails

Software Development

Visual Basic .NET

Visual Basic 4 / 5 / 6

XAML / WPF / Silverlight

XML

sign up

login

new member:

Register

member login:

lost password

bytes > visual basic .net > visual basic .net questions

Mysterious moving tabs

KC

Guest

Posts: n/a

#1: Nov 20 '05

Has anyone else had the problem of tabs in a tab control changing position

on their own Sometimes I run my app (in debug mode) and some of the tabs

are in completely different positions. I can shift them back in the tab

control no problem, but it ain't suppose to be doing that in the first

place.

---

Ken

Cor Ligthert

Guest

Posts: n/a

#2: Nov 20 '05

re: Mysterious moving tabs

Hi KC,

Very known bug it has to do with the Z order. I said to somebody try it with

setting the pages in a loop to BringToFront, I am curious if that works,

because I never tried that.

Maybe you can try

Cor

color=blue]

> Has anyone else had the problem of tabs in a tab control changing position

> on their own Sometimes I run my app (in debug mode) and some of the tabs

> are in completely different positions. I can shift them back in the tab

> control no problem, but it ain't suppose to be doing that in the first

> place.

>

> ---

> Ken

>

>[/color]

ric Moreau [VB MVP]

Guest

Posts: n/a

#3: Nov 20 '05

re: Mysterious moving tabs

This is a known bug.

You can easily fix that once for all with simple code. You can use the

following code to completely remove TabPages from the TabControl in re-add

them in the correct order. It is important to notice that the content of

TabPages will not be affected.

With TabControl1.TabPages

.Clear .Add(TabPage1)

.Add(TabPage2)

.Add(TabPage3)

.Add(TabPage4)

.Add(TabPage5)

End With

This code needs to be placed anywhere after the call to InitializeComponent.

The Form's Load event is a good place for that.

--

HTH

ric Moreau, MCSD, Visual Developer - Visual Basic MVP

Conseiller Principal / Senior Consultant

Concept S2i inc.(www.s2i.com)

"KC" wrote in message

news:***********.****@************.***.*** color=blue]

> Has anyone else had the problem of tabs in a tab control changing position

> on their own Sometimes I run my app (in debug mode) and some of the tabs

> are in completely different positions. I can shift them back in the tab

> control no problem, but it ain't suppose to be doing that in the first

> place.

>

> ---

> Ken

>

>[/color]

Mick Doherty

Guest

Posts: n/a

#4: Nov 20 '05

re: Mysterious moving tabs

It's a well known problem. This question is asked so often that I included

it on my site.

http://dotnetrix.co.uk/tabcontrols.html --> Tabpage order has changed

--

Mick Doherty

http://dotnetrix.co.uk/nothing.html

"KC" wrote in message

news:***********.****@************.***.*** color=blue]

> Has anyone else had the problem of tabs in a tab control changing position

> on their own Sometimes I run my app (in debug mode) and some of the tabs

> are in completely different positions. I can shift them back in the tab

> control no problem, but it ain't suppose to be doing that in the first

> place.

>

> ---

> Ken

>

>[/color]

---

Outgoing mail is certified Virus Free.

Checked by AVG anti-virus system (http://www.grisoft.com).

Version: 6.0.719 / Virus Database: 475 - Release Date: 12/07/2004

" previous question next question "

Similar topics

working with a tab control with no tabs in design view ( Microsoft Access / VBA answers )

Automatically moving from tab to tab ( Microsoft Access / VBA answers )

DOS, UNIX and tabs ( Python answers )

CSS tabs no longer showing on website ( HTML / CSS answers )

div border moving to top in IE ( HTML / CSS answers )

Tabs versus Spaces in Source Code ( Python answers )

Moving control waits for it to be painted and that is slow ( C# / C Sharp answers )

Help: How to prevent moving to the new record when sub form is null ( Microsoft Access / VBA answers )

Mysterious mystery -- 2002-11-08/2002-11-09 ( Microsoft SQL Server answers )

More channels

Business

IT

Development

other

forums

FAQ

Copyright 1995-2010 BYTES. All rights Reserved About Bytes Help

Latest Expert Topics Popular Tags

Sitemap Visual Basic .NET Answers Sitemap Visual Basic .NET Insights Sitemap



Contact this candidate