Click here to Skip to main content
16,005,058 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: User Defined query Pin
Dave Kreskowiak9-Jan-06 12:23
mveDave Kreskowiak9-Jan-06 12:23 
GeneralRe: User Defined query Pin
Colin Angus Mackay9-Jan-06 21:06
Colin Angus Mackay9-Jan-06 21:06 
GeneralRe: User Defined query Pin
Dave Kreskowiak10-Jan-06 2:57
mveDave Kreskowiak10-Jan-06 2:57 
GeneralRe: User Defined query Pin
Landon Spann10-Jan-06 4:00
Landon Spann10-Jan-06 4:00 
GeneralRe: User Defined query Pin
Dave Kreskowiak10-Jan-06 11:37
mveDave Kreskowiak10-Jan-06 11:37 
GeneralRe: User Defined query Pin
Landon Spann11-Jan-06 4:01
Landon Spann11-Jan-06 4:01 
AnswerRe: User Defined query Pin
Christian Graus9-Jan-06 12:33
protectorChristian Graus9-Jan-06 12:33 
QuestionTab page issues Pin
eatwork9-Jan-06 10:04
eatwork9-Jan-06 10:04 
Hi, my problem is that I have a tab control, consisting of 4 tab pages and 4 user controls, 1 user control on each tab page. I would like to call the event method tabcontrol.selectedindex changed to load the data into the user control when the user clicks on the form, and not immediately when the selected index is changed. I need this because when certain users open the application the application will hide/remove a tab page if the user does not have access to that particular page. Upon removal, visual studio.net sets the selected index to the page index immediately before the one being removed. My loading of data was originally located within the load method of the user control itself, but this is causing my application to lag at startup when I need to remove a tabpage because it is loading that page when I remove the tabpage.

My code currently looks like eg.:
Public Sub tcCompany_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tc_Company.SelectedIndexChanged
Select Case UCase(Me.tc_Company.SelectedTab.Name)
Case "TP_COMPANYNOTES" 'checks to see if user clicked the notes page
If Me.tcmediator.p_ucNotes.comb_companyName.Items.Count <= 0 Then 'checks if combo has data
Call Me.tcmediator.p_ucNotes.userClickedForm() 'loads data
End If
Case "TP_COMPANYCREDIT" 'checks to see if user clicked the credit page
If Me.tcmediator.p_ucCredit.comb_companyName.Items.Count <= 0 Then 'checks if combo has data
Call Me.tcmediator.p_ucCredit.userClickedForm() 'loads data
End If
end select
end sub
Thanks for the help

eatwork
AnswerRe: Tab page issues Pin
Christian Graus9-Jan-06 11:56
protectorChristian Graus9-Jan-06 11:56 
GeneralRe: Tab page issues Pin
eatwork9-Jan-06 12:43
eatwork9-Jan-06 12:43 
GeneralRe: Tab page issues Pin
Christian Graus9-Jan-06 12:45
protectorChristian Graus9-Jan-06 12:45 
GeneralRe: Tab page issues Pin
eatwork12-Jan-06 6:06
eatwork12-Jan-06 6:06 
QuestionShutdown Parameters Pin
Adam6669-Jan-06 9:34
Adam6669-Jan-06 9:34 
AnswerRe: Shutdown Parameters Pin
ToddHileHoffer9-Jan-06 10:02
ToddHileHoffer9-Jan-06 10:02 
GeneralRe: Shutdown Parameters Pin
Colin Angus Mackay9-Jan-06 12:07
Colin Angus Mackay9-Jan-06 12:07 
AnswerRe: Shutdown Parameters Pin
Colin Angus Mackay9-Jan-06 12:06
Colin Angus Mackay9-Jan-06 12:06 
AnswerRe: Shutdown Parameters Pin
Dave Kreskowiak9-Jan-06 12:15
mveDave Kreskowiak9-Jan-06 12:15 
QuestionFinding records matching values between 2 parameterized values? Pin
Erwin_Br9-Jan-06 9:12
Erwin_Br9-Jan-06 9:12 
QuestionLooping enum elements? Pin
matsnas9-Jan-06 2:34
matsnas9-Jan-06 2:34 
AnswerRe: Looping enum elements? Pin
Duncan Edwards Jones9-Jan-06 3:15
professionalDuncan Edwards Jones9-Jan-06 3:15 
GeneralRe: Looping enum elements? Pin
matsnas9-Jan-06 3:24
matsnas9-Jan-06 3:24 
AnswerRe: Looping enum elements? Pin
J4amieC9-Jan-06 3:19
J4amieC9-Jan-06 3:19 
Questionresizing the width of columns in datagrid with datatable Pin
Pravin H9-Jan-06 0:52
Pravin H9-Jan-06 0:52 
AnswerRe: resizing the width of columns in datagrid with datatable Pin
Dave Kreskowiak9-Jan-06 5:08
mveDave Kreskowiak9-Jan-06 5:08 
GeneralRe: resizing the width of columns in datagrid with datatable Pin
Pravin H9-Jan-06 20:08
Pravin H9-Jan-06 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.