Click here to Skip to main content
15,918,275 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataGrid CheckBoxes Pin
Heath Stewart15-Jun-04 5:53
protectorHeath Stewart15-Jun-04 5:53 
GeneralRe: DataGrid CheckBoxes Pin
exhaulted15-Jun-04 6:17
exhaulted15-Jun-04 6:17 
GeneralDataGrid CheckBoxes Pin
exhaulted14-Jun-04 6:23
exhaulted14-Jun-04 6:23 
Questionthe best way to terminate a blocked thread? Pin
vista2714-Jun-04 6:20
vista2714-Jun-04 6:20 
AnswerRe: the best way to terminate a blocked thread? Pin
palbano14-Jun-04 6:38
palbano14-Jun-04 6:38 
AnswerRe: the best way to terminate a blocked thread? Pin
Mike Dimmick14-Jun-04 6:40
Mike Dimmick14-Jun-04 6:40 
Generalneed help, treeView and active directory Pin
vcorn14-Jun-04 6:11
vcorn14-Jun-04 6:11 
GeneralRe: need help, treeView and active directory Pin
Heath Stewart14-Jun-04 6:41
protectorHeath Stewart14-Jun-04 6:41 
GeneralRe: need help, treeView and active directory Pin
vcorn14-Jun-04 7:29
vcorn14-Jun-04 7:29 
GeneralRe: need help, treeView and active directory Pin
Dave Kreskowiak14-Jun-04 7:31
mveDave Kreskowiak14-Jun-04 7:31 
GeneralRe: need help, treeView and active directory Pin
vcorn14-Jun-04 7:43
vcorn14-Jun-04 7:43 
GeneralRe: need help, treeView and active directory Pin
Wackatronic14-Jun-04 7:57
Wackatronic14-Jun-04 7:57 
GeneralRe: need help, treeView and active directory Pin
Dave Kreskowiak14-Jun-04 8:02
mveDave Kreskowiak14-Jun-04 8:02 
GeneralRe: need help, treeView and active directory Pin
vcorn14-Jun-04 8:27
vcorn14-Jun-04 8:27 
GeneralRe: need help, treeView and active directory Pin
Dave Kreskowiak14-Jun-04 8:34
mveDave Kreskowiak14-Jun-04 8:34 
GeneralUnloading AppDomain Pin
Ami Bar14-Jun-04 5:50
Ami Bar14-Jun-04 5:50 
GeneralRe: Unloading AppDomain Pin
Heath Stewart14-Jun-04 6:43
protectorHeath Stewart14-Jun-04 6:43 
GeneralRe: Unloading AppDomain Pin
Ami Bar14-Jun-04 10:35
Ami Bar14-Jun-04 10:35 
GeneralRe: Unloading AppDomain Pin
Heath Stewart14-Jun-04 11:01
protectorHeath Stewart14-Jun-04 11:01 
GeneralReflection Assistance please! Pin
Kasdoffe14-Jun-04 5:23
Kasdoffe14-Jun-04 5:23 
Very simple example of what I want to do.

I have a textbox on my form:
TextBox textBox1 = new TextBox();

I have a string containing the name of my textbox:
string strControlName = "textBox1";

I have a string that contains the text for my textbox to display:
string strControlText = "Hello World";

How do i use strControlName and strControlText to set my textbox's text property? (without looping through my controls on the form and using if statements).

In another language I know, you can use 'Indirection'. It's a very useful and powerful tool. This acts similar to the following:
set (@strControlName).Text = strControlText
where the end result is textBox1.Text = "Hello World".

I would love to be able to do this in C#! I was told to read up on reflection, but couldn't find what I wanted. Is there somehow a way to modify an existing control when all you know is the control name? (without looping through all the controls) Please help!
GeneralRe: Reflection Assistance please! Pin
Heath Stewart14-Jun-04 6:38
protectorHeath Stewart14-Jun-04 6:38 
GeneralRe: Reflection Assistance please! Pin
Anonymous14-Jun-04 7:02
Anonymous14-Jun-04 7:02 
GeneralRe: Reflection Assistance please! Pin
Heath Stewart14-Jun-04 8:46
protectorHeath Stewart14-Jun-04 8:46 
GeneralRe: Reflection Assistance please! Pin
Kasdoffe14-Jun-04 7:37
Kasdoffe14-Jun-04 7:37 
GeneralRe: Reflection Assistance please! Pin
Kasdoffe14-Jun-04 8:32
Kasdoffe14-Jun-04 8:32 

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.