Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
Posted
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?
  • *Experts*
Posted

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.

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted

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

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...