Click here to Skip to main content
15,889,808 members
Home / Discussions / C#
   

C#

 
GeneralUsing autocomplete combobox properties Pin
baranils6-Mar-08 20:16
baranils6-Mar-08 20:16 
QuestionIs it possible to disable Tabs in TabControl? Pin
The Cyclone6-Mar-08 19:36
The Cyclone6-Mar-08 19:36 
AnswerRe: Is it possible to disable Tabs in TabControl? Pin
Christian Graus6-Mar-08 19:49
protectorChristian Graus6-Mar-08 19:49 
GeneralRe: Is it possible to disable Tabs in TabControl? Pin
N a v a n e e t h6-Mar-08 19:53
N a v a n e e t h6-Mar-08 19:53 
GeneralRe: Is it possible to disable Tabs in TabControl? Pin
Christian Graus6-Mar-08 20:37
protectorChristian Graus6-Mar-08 20:37 
GeneralRe: Is it possible to disable Tabs in TabControl? Pin
The Cyclone6-Mar-08 19:58
The Cyclone6-Mar-08 19:58 
GeneralRe: Is it possible to disable Tabs in TabControl? Pin
Christian Graus6-Mar-08 20:38
protectorChristian Graus6-Mar-08 20:38 
AnswerRe: Is it possible to disable Tabs in TabControl? Pin
N a v a n e e t h6-Mar-08 19:51
N a v a n e e t h6-Mar-08 19:51 
If you need to stop user going to the second tab before finishing first tab, set a flag variable, and update it when the process finishes in the first tab. When user clicks the second tab, handle the event and check the flag value. If the process is not completed, set the SelectedIndex value to select the current tab again.

Alternatively, you can disable all the controls in tab page, but user will be able to see that tab. For that use the following code
Control cn = tabPageName as Control;
cn.Enabled = false;
Hope it helps

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions

GeneralRe: Is it possible to disable Tabs in TabControl? Pin
The Cyclone6-Mar-08 19:54
The Cyclone6-Mar-08 19:54 
GeneralRe: Is it possible to disable Tabs in TabControl? Pin
N a v a n e e t h6-Mar-08 20:03
N a v a n e e t h6-Mar-08 20:03 
GeneralRe: Is it possible to disable Tabs in TabControl? Pin
Laddie6-Mar-08 20:34
Laddie6-Mar-08 20:34 
Generalsetting usercontrol's datasource that is same as parent form Pin
saneng6-Mar-08 19:19
saneng6-Mar-08 19:19 
GeneralRe: setting usercontrol's datasource that is same as parent form Pin
N a v a n e e t h6-Mar-08 19:41
N a v a n e e t h6-Mar-08 19:41 
QuestionList in c# [modified] Pin
Sonia Gupta6-Mar-08 19:10
Sonia Gupta6-Mar-08 19:10 
GeneralRe: List in c# Pin
N a v a n e e t h6-Mar-08 19:34
N a v a n e e t h6-Mar-08 19:34 
GeneralRe: List in c# Pin
Sonia Gupta6-Mar-08 20:24
Sonia Gupta6-Mar-08 20:24 
GeneralRe: List in c# Pin
Christian Graus6-Mar-08 20:47
protectorChristian Graus6-Mar-08 20:47 
GeneralCalling forms Pin
Gregory Bryant6-Mar-08 18:59
Gregory Bryant6-Mar-08 18:59 
GeneralRe: Calling forms Pin
Ajay.k_Singh6-Mar-08 19:06
Ajay.k_Singh6-Mar-08 19:06 
GeneralRe: Calling forms Pin
Gregory Bryant7-Mar-08 6:48
Gregory Bryant7-Mar-08 6:48 
GeneralRe: Calling forms Pin
Christian Graus6-Mar-08 19:48
protectorChristian Graus6-Mar-08 19:48 
GeneralRead DLL Pin
rowdy_vc++6-Mar-08 18:52
rowdy_vc++6-Mar-08 18:52 
GeneralRe: Read DLL Pin
Ajay.k_Singh6-Mar-08 19:22
Ajay.k_Singh6-Mar-08 19:22 
GeneralBrowse for a file and open the file. Pin
new2pgrmg6-Mar-08 18:33
new2pgrmg6-Mar-08 18:33 
GeneralRe: Browse for a file and open the file. Pin
Christian Graus6-Mar-08 18:35
protectorChristian Graus6-Mar-08 18:35 

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.