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

C#

 
GeneralRe: Running a new form inside BackgroundWorker DoWork method Pin
Laex26-Oct-07 11:18
Laex26-Oct-07 11:18 
QuestionReflection Pin
ilango gandhi26-Oct-07 6:52
ilango gandhi26-Oct-07 6:52 
AnswerRe: Reflection Pin
pmarfleet26-Oct-07 6:59
pmarfleet26-Oct-07 6:59 
AnswerRe: Reflection Pin
il_masacratore26-Oct-07 12:17
il_masacratore26-Oct-07 12:17 
QuestionCan I access a user form object programmatically? Pin
humblepgmr26-Oct-07 6:50
humblepgmr26-Oct-07 6:50 
AnswerRe: Can I access a user form object programmatically? Pin
Anthony Mushrow26-Oct-07 7:08
professionalAnthony Mushrow26-Oct-07 7:08 
GeneralRe: Can I access a user form object programmatically? Pin
humblepgmr26-Oct-07 8:22
humblepgmr26-Oct-07 8:22 
GeneralRe: Can I access a user form object programmatically? Pin
Michael Potter26-Oct-07 8:35
Michael Potter26-Oct-07 8:35 
ControlName.PropertyName = NewValue;

Not sure why you want to loop through the control list when the above template should work within the same form.

Of course, you could do the looping but it takes a bit more skill and would look something like the code below. I would stick with The Undefeated's advice.
public static Control FindControl(Control root, string nameToFind)
{
    Control retval = null;
    foreach (Control c in root.Controls)
    {
        if (c.Name == NameToFind)
        {
            retval  = c;
            break;
        }
        retval = FindControl(c, nameToFind);
        if (retval != null)
        {
            break;
        }
    }
    return retval;
}

GeneralRe: Can I access a user form object programmatically? Pin
humblepgmr26-Oct-07 10:30
humblepgmr26-Oct-07 10:30 
GeneralRe: Can I access a user form object programmatically? Pin
Michael Potter26-Oct-07 12:00
Michael Potter26-Oct-07 12:00 
QuestionClient is Not Receiving Data though Server sends it Pin
nayabsiddiqi26-Oct-07 5:40
nayabsiddiqi26-Oct-07 5:40 
QuestionIs there a method to change a text box back to it's original state? Pin
humblepgmr26-Oct-07 5:19
humblepgmr26-Oct-07 5:19 
AnswerRe: Is there a method to change a text box back to it's original state? Pin
Dave Kreskowiak26-Oct-07 7:03
mveDave Kreskowiak26-Oct-07 7:03 
AnswerRe: Is there a method to change a text box back to it's original state? Pin
Luc Pattyn26-Oct-07 12:34
sitebuilderLuc Pattyn26-Oct-07 12:34 
GeneralRe: Is there a method to change a text box back to it's original state? Pin
Dave Kreskowiak26-Oct-07 12:36
mveDave Kreskowiak26-Oct-07 12:36 
GeneralRe: Is there a method to change a text box back to it's original state? Pin
Luc Pattyn26-Oct-07 13:17
sitebuilderLuc Pattyn26-Oct-07 13:17 
GeneralRe: Is there a method to change a text box back to it's original state? Pin
Dave Kreskowiak26-Oct-07 14:35
mveDave Kreskowiak26-Oct-07 14:35 
Questionconverting a windows C# application to web OCX Pin
samy10026-Oct-07 4:40
samy10026-Oct-07 4:40 
Questionhow can I read 4 hex characters from a textbox and put them in a uint? Pin
Big Ralph26-Oct-07 4:35
Big Ralph26-Oct-07 4:35 
AnswerRe: how can I read 4 hex characters from a textbox and put them in a uint? Pin
Ravi Bhavnani26-Oct-07 4:41
professionalRavi Bhavnani26-Oct-07 4:41 
AnswerRe: how can I read 4 hex characters from a textbox and put them in a uint? Pin
Big Ralph26-Oct-07 5:03
Big Ralph26-Oct-07 5:03 
GeneralRe: how can I read 4 hex characters from a textbox and put them in a uint? Pin
Luc Pattyn26-Oct-07 6:53
sitebuilderLuc Pattyn26-Oct-07 6:53 
AnswerRe: how can I read 4 hex characters from a textbox and put them in a uint? Pin
zafersavas26-Oct-07 23:58
zafersavas26-Oct-07 23:58 
QuestionError when running WinForm App Pin
Fayu26-Oct-07 4:17
Fayu26-Oct-07 4:17 
AnswerRe: Error when running WinForm App Pin
Justin Perez26-Oct-07 4:21
Justin Perez26-Oct-07 4:21 

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.