Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: capturing other applications... Pin
Daniel Turini5-Dec-04 20:04
Daniel Turini5-Dec-04 20:04 
GeneralMaking listView.labelEdit editable on one click Pin
youusuf5-Dec-04 8:36
youusuf5-Dec-04 8:36 
GeneralRe: Making listView.labelEdit editable on one click Pin
Daniel Turini5-Dec-04 20:10
Daniel Turini5-Dec-04 20:10 
GeneralGenerating tabs dynamically Pin
thepersonof5-Dec-04 3:22
thepersonof5-Dec-04 3:22 
GeneralRe: Generating tabs dynamically Pin
Nick Parker5-Dec-04 4:26
protectorNick Parker5-Dec-04 4:26 
GeneralRe: Generating tabs dynamically Pin
thepersonof5-Dec-04 4:45
thepersonof5-Dec-04 4:45 
GeneralRe: Generating tabs dynamically Pin
Nick Parker5-Dec-04 5:06
protectorNick Parker5-Dec-04 5:06 
GeneralRe: Generating tabs dynamically Pin
Anonymous5-Dec-04 8:26
Anonymous5-Dec-04 8:26 
If I'm understanding correctly, what you are trying to acheive cannot be done.

You cannot name a control and then use its name in your code as you would with any other variable. That isnt possible because the compiler will not know of the name ur assigning as it will only be "visible" in runtime.

That means that, follwing ur example:

string name = "tabPage0";
mainTabs.TabPages.Add(name);

You will never be able to use in your code tabPage0.WhateverMethod. That can only be done if u declare a tabPage0 variable in ur code.

U will have to work with the tabpages collection indexes or iterate through it looking for the correct Text/Name or whatever.

GeneralDrawing a Family Tree Pin
pjholliday5-Dec-04 1:47
pjholliday5-Dec-04 1:47 
Generalunicode problem in INI Pin
ye win zaw5-Dec-04 1:17
ye win zaw5-Dec-04 1:17 
GeneralRe: unicode problem in INI Pin
Nick Parker5-Dec-04 4:29
protectorNick Parker5-Dec-04 4:29 
GeneralRe: unicode problem in INI Pin
Christian Pedersen5-Dec-04 13:34
Christian Pedersen5-Dec-04 13:34 
GeneralI have a network application Pin
Mohammed Aijaz Mohiuddin5-Dec-04 1:04
Mohammed Aijaz Mohiuddin5-Dec-04 1:04 
GeneralSyntax hightlighting. Pin
Marlun5-Dec-04 0:51
Marlun5-Dec-04 0:51 
GeneralRe: Syntax hightlighting. Pin
Nick Parker5-Dec-04 4:30
protectorNick Parker5-Dec-04 4:30 
GeneralRe: Syntax hightlighting. Pin
leppie5-Dec-04 7:36
leppie5-Dec-04 7:36 
QuestionHow to create a shortcut key for a control in C#? Pin
momer5-Dec-04 0:30
momer5-Dec-04 0:30 
AnswerRe: How to create a shortcut key for a control in C#? Pin
Kir Birger5-Dec-04 5:46
Kir Birger5-Dec-04 5:46 
AnswerRe: How to create a shortcut key for a control in C#? Pin
Nick Parker5-Dec-04 6:52
protectorNick Parker5-Dec-04 6:52 
Generalfile.Position problem Pin
balkang4-Dec-04 23:04
balkang4-Dec-04 23:04 
GeneralRe: file.Position problem Pin
Robin Panther5-Dec-04 1:56
Robin Panther5-Dec-04 1:56 
Generalproperty grid validation Pin
Sundar Venugopal4-Dec-04 18:57
Sundar Venugopal4-Dec-04 18:57 
Generaltrapping keystrokes Pin
Anonymous4-Dec-04 18:18
Anonymous4-Dec-04 18:18 
GeneralRe: trapping keystrokes Pin
Kir Birger5-Dec-04 5:51
Kir Birger5-Dec-04 5:51 
GeneralRe: trapping keystrokes Pin
Anonymous5-Dec-04 8:03
Anonymous5-Dec-04 8:03 

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.