TRiLeZ
2009-06-23 03:35:04
Im making a tabbed web browser, everything is going smooth exept one thing.
If you try to delete the tab when there is only 1 left, the browser breaks.
I know how to fix it… i hide my delete tab button when there is only one tab (when i is 1). It dosnt hide the button though.
Just to let you know my browser starts with the button hidden.
I want to hide the button after you click the delete tab button when i is 1.
How would I do that?
I tryed
It compiles, but dosnt work.
If you try to delete the tab when there is only 1 left, the browser breaks.
I know how to fix it… i hide my delete tab button when there is only one tab (when i is 1). It dosnt hide the button though.
Just to let you know my browser starts with the button hidden.
I want to hide the button after you click the delete tab button when i is 1.
How would I do that?
I tryed
if (i == 1) button2.Hide();
It compiles, but dosnt work.