By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

Disabling tab page on form load..

P: 82
I have a tab control that I am loading in my form. Whenever a tab is clicked on a certain even will fire that will load an image. The problem I am having is that when the form load event is initially fired the event is getting triggered... I know that I can throw a Boolean value that I can make the went not fire.. However, I am wondering if there is any way to just make the first tab page not load when the form load event is launched and the tab control is created... I will draw the tabs later myself.
Aug 4 '12 #1

✓ answered by yarbrough40

Is this in a web form?...Try putting the image loading method within a Postback check block:
Expand|Select|Wrap|Line Numbers
  1. If IsPostback Then
  2. [your code that loads the image]
  3. End If
  4.  

Share this Question
Share on Google+
1 Reply


yarbrough40
100+
P: 320
Is this in a web form?...Try putting the image loading method within a Postback check block:
Expand|Select|Wrap|Line Numbers
  1. If IsPostback Then
  2. [your code that loads the image]
  3. End If
  4.  
Aug 5 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.