tabControl bugs in VB.Net 2003

I have been working with tabControls quite a bit lately and have noticed a couple of annoying bugs.  One of these bugs are that I set the order of my tab pages collection and when I compile my project the tab pages end up in a different order all by themselves.  Another problem is that when I try to delete objects that are on tab pages I am unable to do so by right clicking and clicking on delete; the delete, copy, and cut options are greyed out.  Selecting the object and pressing delete doesn't work most of the time either.  The only thing that does work sometimes is to delete the control from the "Windows form designer generated code".  I also find it inconvenient to not have the copy and paste ability.  I will admit that I have a total of about 300 controls on the 10 tabs that I have which might be beyond the IDE's ability.  I use these controls for the user to enter specs for quality control so I do need all of them, and it is nice to have the tabControl.  What could I use instead of the buggy tabControl for such a case


Answer this question

tabControl bugs in VB.Net 2003

  • Amrita Bhatia

    To temporarely fix the tab order problem, just set the order in the project file.
    The in the initializecomponent function
    Unfortunately, this works fine until you edit the tabpages again.

  • oh_Genry

    Just today I actually found a work around to this problem.  If you run into this problem you can make the tabpage that you want to work on be the first in the tabControl collection.  Then you just have to add a control somewhere on that tabpage.  Go into the windows form generated code and delete the declaration of that added control then go back to the design view.  The control will then disappear and you will be able to use your copy, cut, paste, and delete again.

  • morpheous

    Thanks!
  • tabControl bugs in VB.Net 2003