HelpThe name 'int' does not exist in the current context

Posts 12 of 2 · Page 1 of 1
The name 'int' does not exist in the current context
I try to add a tab using Tabcontrol, and when I want to go to the new tab, it gets an error
The name 'int' does not exist in the current context

The code I use is
Code:
tabControl1.SelectTab(@int());
Thanks for helping
Quote Originally Posted by a9x9x69 View Post
I try to add a tab using Tabcontrol, and when I want to go to the new tab, it gets an error
The name 'int' does not exist in the current context

The code I use is
Code:
tabControl1.SelectTab(@int());
Thanks for helping
well, you would have to do some writing but...
(And I have very little time..)

Do something like:
Code:
int i = 0;

Button->
Create New Tab

->  i++;  for each new tab made.


Button->
Remove Tab

Then on a Remove option you would have to decrease the i value
-> i--;
Hope you get it

And then you use your code:
Code:
tabControl1.SelectTab(i);
Enjoy your time
Posts 12 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?