Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please Help Pin
exhaulted23-Sep-04 5:37
exhaulted23-Sep-04 5:37 
Generallast focusd event Pin
Sakkijha22-Sep-04 23:12
Sakkijha22-Sep-04 23:12 
GeneralRe: last focusd event Pin
Dave Kreskowiak23-Sep-04 0:29
mveDave Kreskowiak23-Sep-04 0:29 
GeneralRe: last focusd event Pin
sreejith ss nair23-Sep-04 0:44
sreejith ss nair23-Sep-04 0:44 
Generalabout conecting c# with oracle database Pin
ydderf222-Sep-04 21:14
ydderf222-Sep-04 21:14 
GeneralRe: about conecting c# with oracle database Pin
Heath Stewart22-Sep-04 22:00
protectorHeath Stewart22-Sep-04 22:00 
GeneralUsing C# treeview of compact framework problem Pin
ting66822-Sep-04 20:54
ting66822-Sep-04 20:54 
GeneralCasting A String to a control Pin
Nick Price22-Sep-04 13:37
Nick Price22-Sep-04 13:37 
I am setting properties for a series of labels on a form, for example:

this.lblIn10.Visible = false;
this.lblIn20.Visible = false;
this.lblIn30.Visible = false;
this.lblIn40.Visible = false;
this.lblIn50.Visible = false;
this.lblIn60.Visible = false;
this.lblIn70.Visible = false;
this.lblIn80.Visible = false;
this.lblIn90.Visible = false;

What I would like to do is something like this:

for(x=0; x < somevalue; x++)
{
string somestring = "lblIn" + x.ToString()
this.(somestring).Visible = false;
}

Obviously this won't work but is ther a way to cast the string to the object?



Thanks in advance,
Nick
handheld@canada.com
GeneralRe: Casting A String to a control Pin
Xenther22-Sep-04 13:40
Xenther22-Sep-04 13:40 
GeneralRe: Casting A String to a control Pin
Nick Parker22-Sep-04 14:47
protectorNick Parker22-Sep-04 14:47 
GeneralRe: Casting A String to a control Pin
Nick Price23-Sep-04 6:24
Nick Price23-Sep-04 6:24 
GeneralRichTextBox and MemoryFonts Pin
Xenther22-Sep-04 13:19
Xenther22-Sep-04 13:19 
Generalsimple puzzle Pin
teefa_IT22-Sep-04 12:42
teefa_IT22-Sep-04 12:42 
GeneralRe: simple puzzle Pin
Nick Parker22-Sep-04 13:18
protectorNick Parker22-Sep-04 13:18 
GeneralRe: simple puzzle Pin
mav.northwind22-Sep-04 20:33
mav.northwind22-Sep-04 20:33 
GeneralChanging the Mouse Cursor Pin
MarkMokris22-Sep-04 12:13
MarkMokris22-Sep-04 12:13 
GeneralRe: Changing the Mouse Cursor Pin
S Sansanwal22-Sep-04 13:35
S Sansanwal22-Sep-04 13:35 
GeneralOpening the default email program. Pin
kornstyle22-Sep-04 11:16
kornstyle22-Sep-04 11:16 
GeneralRe: Opening the default email program. Pin
Nick Parker22-Sep-04 11:30
protectorNick Parker22-Sep-04 11:30 
GeneralRe: Opening the default email program. Pin
kornstyle23-Sep-04 10:49
kornstyle23-Sep-04 10:49 
GeneralStrange DLL Calls in C# - Help Pin
Marc Chabot22-Sep-04 10:14
Marc Chabot22-Sep-04 10:14 
GeneralRe: Strange DLL Calls in C# - Help Pin
Nick Parker22-Sep-04 11:25
protectorNick Parker22-Sep-04 11:25 
GeneralRe: Strange DLL Calls in C# - Help Pin
leppie22-Sep-04 19:55
leppie22-Sep-04 19:55 
GeneralContext menu and textbox... Pin
m_els22-Sep-04 10:13
m_els22-Sep-04 10:13 
GeneralRe: Context menu and textbox... Pin
Nick Parker22-Sep-04 11:23
protectorNick Parker22-Sep-04 11: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.