jwHerm Posted January 20, 2004 Posted January 20, 2004 When i made a tab control for my form, i put the tabs in the order i wanted them. Then when i go to run the program, they are not in the order that they appear in the design view. Is it ok to change the code in the form setup region so that they are added in the correct order? I checked up there and it has it in completely the wrong order. I am just hesitant as there is a big remark saying not to change any of that. Thanks for the help. Quote
samsmithnz Posted January 20, 2004 Posted January 20, 2004 Yeh, you'll probably be ok changing that code manually. Its kind of like changing the registry, but its a lot easier to backup your data. If you're really unsure, make a backup of your code first. Quote Thanks Sam http://www.samsmith.co.nz
jwHerm Posted January 20, 2004 Author Posted January 20, 2004 That is what i thought. I just wanted to hear if anyone had some experience with doing this as the message not to is rather direct. I don't usually like following the rules anyway. Any other opinions on this? Quote
*Experts* DiverDan Posted January 20, 2004 *Experts* Posted January 20, 2004 I've had the same problem from time to time... Setting the tab page index programmably seemed to permanently solve the problem. TabPage0.TabIndex = 0 TabPage1.TabIndex = 1 etc. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
AlexCode Posted January 21, 2004 Posted January 21, 2004 Yeah... Set the Tab index by code like DiverDan said. Changing the "auto generated" code won't give any insurance that in future it will work ok... Alex :D Quote Software bugs are impossible to detect by anybody except the end user.
jwHerm Posted January 21, 2004 Author Posted January 21, 2004 Thanks all. You have been helpful. I found that doing it either way works. Quote
hog Posted January 22, 2004 Posted January 22, 2004 This is a know bug in VS 2002 & VS 2003, perhaps it will be resolved in VS 2004:D Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.