Click here to Skip to main content
15,887,304 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralException has been thrown by the target of an invocation Pin
tom8315-Apr-08 17:56
tom8315-Apr-08 17:56 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Arjun Marwaha15-Apr-08 20:50
Arjun Marwaha15-Apr-08 20:50 
GeneralRe: Exception has been thrown by the target of an invocation Pin
Mycroft Holmes15-Apr-08 22:11
professionalMycroft Holmes15-Apr-08 22:11 
GeneralRe: Exception has been thrown by the target of an invocation Pin
tom8316-Apr-08 3:01
tom8316-Apr-08 3:01 
QuestionSatellite Assemblies... Pin
kaizenIT15-Apr-08 10:15
kaizenIT15-Apr-08 10:15 
GeneralRe: Satellite Assemblies... Pin
Dave Kreskowiak16-Apr-08 3:16
mveDave Kreskowiak16-Apr-08 3:16 
Generaltabs in form Pin
asha_s15-Apr-08 9:23
asha_s15-Apr-08 9:23 
GeneralRe: tabs in form Pin
C1AllenS15-Apr-08 10:39
C1AllenS15-Apr-08 10:39 
Hello,

You can use the 'SelectedTab' or 'SelectedIndex' property for the Tab control to determine the
currently selected tab. You can use either of them. Only difference is that the SelectedIndex
will return the index of the tab page (0 being the starting tab). SelectedTab returns the page.
So you can use me.TabControl1.SelectedTab.Name.

So you can try something like this:

<br />
If Me.TabControl1.SelectedIndex = 0 Then<br />
    MsgBox("Page1")<br />
Else<br />
    MsgBox("Page2")<br />
End If<br />


I hope this will help.

Regards,
Allen

Allen Smith

Software Engineer
ComponentOne LLC
www.componentone.com

GeneralRe: tabs in form Pin
asha_s16-Apr-08 1:27
asha_s16-Apr-08 1:27 
GeneralMultiplying Numbers in Listbox Pin
msapril15-Apr-08 9:05
msapril15-Apr-08 9:05 
GeneralRe: Multiplying Numbers in Listbox Pin
Chinners15-Apr-08 23:59
Chinners15-Apr-08 23:59 
QuestionVB 2005 MaskedTextBox bound to MS-Access table Pin
David Mujica15-Apr-08 8:48
David Mujica15-Apr-08 8:48 
GeneralRe: VB 2005 MaskedTextBox bound to MS-Access table Pin
Dave Kreskowiak15-Apr-08 16:09
mveDave Kreskowiak15-Apr-08 16:09 
GeneralRe: working now, thanks Pin
David Mujica17-Apr-08 10:52
David Mujica17-Apr-08 10:52 
QuestionFollowup - How to intercept data between MaskedTextBox and datagrid Pin
David Mujica17-Apr-08 10:57
David Mujica17-Apr-08 10:57 
QuestionVB.NET CF Auto Installation Question Pin
Dominick Marciano15-Apr-08 7:34
professionalDominick Marciano15-Apr-08 7:34 
GeneralRe: VB.NET CF Auto Installation Question Pin
_Damian S_15-Apr-08 20:03
professional_Damian S_15-Apr-08 20:03 
GeneralRe: VB.NET CF Auto Installation Question Pin
Dominick Marciano21-Apr-08 8:36
professionalDominick Marciano21-Apr-08 8:36 
QuestionHow use threads? Pin
Orlando_Herrera15-Apr-08 7:22
Orlando_Herrera15-Apr-08 7:22 
AnswerRe: How use threads? Pin
Dave Kreskowiak15-Apr-08 8:13
mveDave Kreskowiak15-Apr-08 8:13 
GeneralRe: How use threads? Pin
Orlando_Herrera16-Apr-08 5:46
Orlando_Herrera16-Apr-08 5:46 
GeneralRe: How use threads? Pin
Dave Kreskowiak17-Apr-08 3:05
mveDave Kreskowiak17-Apr-08 3:05 
Questionerror when enter new sale datagridview show error [modified] Pin
Member 444291615-Apr-08 6:36
Member 444291615-Apr-08 6:36 
GeneralRe: error when enter new sale datagridview show error Pin
Dave Kreskowiak16-Apr-08 3:21
mveDave Kreskowiak16-Apr-08 3:21 
Questionsetup and deployment in vb.net 2.0 windows application Pin
vijaylumar15-Apr-08 3:23
vijaylumar15-Apr-08 3:23 

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.