When I add the command:
Me.TabControl1.TabPages.Remove(Me.TabPage2)
To a button click in my main form it works like a charm,
But when I put it in another form and add the command to a buttonclick like this:
Form1.TabControl1.TabPages.Remove(Form1.TabPage2)
It just does not work. I get no debug errors but it stil doesn't work
Anybody know why?
Me.TabControl1.TabPages.Remove(Me.TabPage2)
To a button click in my main form it works like a charm,
But when I put it in another form and add the command to a buttonclick like this:
Form1.TabControl1.TabPages.Remove(Form1.TabPage2)
It just does not work. I get no debug errors but it stil doesn't work
Anybody know why?