Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: printing with c# Pin
Anonymous5-Oct-04 14:28
Anonymous5-Oct-04 14:28 
GeneralRe: printing with c# Pin
Member 12961367-Oct-04 7:06
Member 12961367-Oct-04 7:06 
GeneralUsing ArrayList in C sharp Pin
aussi5-Oct-04 8:59
aussi5-Oct-04 8:59 
GeneralRe: Using ArrayList in C sharp Pin
Christian Graus5-Oct-04 11:48
protectorChristian Graus5-Oct-04 11:48 
GeneralDisabling a TabPage in TabControl Pin
jagan795-Oct-04 5:41
jagan795-Oct-04 5:41 
GeneralRe: Disabling a TabPage in TabControl Pin
sreejith ss nair5-Oct-04 6:03
sreejith ss nair5-Oct-04 6:03 
GeneralRe: Disabling a TabPage in TabControl Pin
jagan795-Oct-04 6:33
jagan795-Oct-04 6:33 
GeneralRe: Disabling a TabPage in TabControl Pin
Ruchi Gupta5-Oct-04 11:30
Ruchi Gupta5-Oct-04 11:30 
one way to achive this is keep a global class variable

int lasttabIndex;

At form load time set it to whatever tab you want to open the first time form loads.

There after in event
private void tabControlDeal_SelectedIndexChanged(object sender, System.EventArgs e)<br />
{<br />
    TabControl ctrl = (TabControl)sender;<br />
    int x = ctrl.SelectedIndex;<br />
<br />
     //Do decisions on the basis of the value of "lasttabIndex "<br />
<br />
     //at the end do this<br />
     lasttabIndex = x;<br />
}


Hope this helps

Ruchi
GeneralRe: Disabling a TabPage in TabControl Pin
jagan795-Oct-04 12:14
jagan795-Oct-04 12:14 
GeneralLibrary References Pin
Jose Vicente5-Oct-04 4:11
Jose Vicente5-Oct-04 4:11 
GeneralRe: Library References Pin
Colin Angus Mackay5-Oct-04 5:31
Colin Angus Mackay5-Oct-04 5:31 
GeneralRe: Library References Pin
Jose Vicente5-Oct-04 5:35
Jose Vicente5-Oct-04 5:35 
GeneralRe: Library References Pin
Colin Angus Mackay5-Oct-04 5:41
Colin Angus Mackay5-Oct-04 5:41 
GeneralRe: Library References Pin
Jose Vicente5-Oct-04 5:45
Jose Vicente5-Oct-04 5:45 
GeneralRe: Library References Pin
Colin Angus Mackay5-Oct-04 5:50
Colin Angus Mackay5-Oct-04 5:50 
GeneralRe: Library References Pin
Dave Kreskowiak5-Oct-04 6:30
mveDave Kreskowiak5-Oct-04 6:30 
GeneralRe: Library References Pin
Jose Vicente5-Oct-04 20:15
Jose Vicente5-Oct-04 20:15 
GeneralRe: Library References Pin
Dave Kreskowiak6-Oct-04 13:11
mveDave Kreskowiak6-Oct-04 13:11 
GeneralRe: Library References Pin
Jose Vicente6-Oct-04 21:11
Jose Vicente6-Oct-04 21:11 
GeneralP/Invoke data type conversion Pin
ting6685-Oct-04 1:51
ting6685-Oct-04 1:51 
GeneralRe: P/Invoke data type conversion Pin
sreejith ss nair5-Oct-04 5:08
sreejith ss nair5-Oct-04 5:08 
GeneralRe: P/Invoke data type conversion Pin
Alex Korchemniy5-Oct-04 17:59
Alex Korchemniy5-Oct-04 17:59 
Generaldetection of files operation Pin
ppp0015-Oct-04 0:42
ppp0015-Oct-04 0:42 
GeneralRe: detection of files operation Pin
Stefan Troschuetz5-Oct-04 1:06
Stefan Troschuetz5-Oct-04 1:06 
GeneralC# output files Pin
Jose Vicente4-Oct-04 23:11
Jose Vicente4-Oct-04 23:11 

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.