Click here to Skip to main content
16,007,760 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple example ZIP of Windows Service with remoting Pin
a_edwill2-Mar-05 7:36
a_edwill2-Mar-05 7:36 
GeneralRe: Simple example ZIP of Windows Service with remoting Pin
Scott Serl4-Mar-05 8:28
Scott Serl4-Mar-05 8:28 
GeneralMDI and moveable (custom) control painting Pin
pacharakeng1-Mar-05 12:13
pacharakeng1-Mar-05 12:13 
GeneralRe: MDI and moveable (custom) control painting Pin
Dave Kreskowiak3-Mar-05 0:39
mveDave Kreskowiak3-Mar-05 0:39 
Questionimport registry files? Pin
Anthony Mushrow1-Mar-05 12:02
professionalAnthony Mushrow1-Mar-05 12:02 
AnswerNeed some help! Pin
Anthony Mushrow1-Mar-05 22:50
professionalAnthony Mushrow1-Mar-05 22:50 
GeneralNeed help accessing a textbox from another class... Pin
ericfgarcia1-Mar-05 10:56
ericfgarcia1-Mar-05 10:56 
GeneralRe: Need help accessing a textbox from another class... Pin
Judah Gabriel Himango1-Mar-05 11:46
sponsorJudah Gabriel Himango1-Mar-05 11:46 
Ok, just pass the textbox instance to the other class's constructor or a method in that class. For instance,

// this is our class with a textbox
class ClassWithTextBox
{
    private TextBox myTextBox = new TextBox();

    ClassWithoutTextBox classWithout = new ClassWithoutTextBox();
    classWithout.ChangeTextboxColor(myTextBox);
}

// this class will access a textbox from any other class
class ClassWithoutTextBox
{
    void ChangeTextboxColor(TextBox textBoxToModify)
    {
        textBoxToModify.BackColor = Color.Red;
    }
}


Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Hallelujah! It's Ken Jennings!
Judah Himango


GeneralRe: Need help accessing a textbox from another class... Pin
ericfgarcia2-Mar-05 3:44
ericfgarcia2-Mar-05 3:44 
GeneralRe: Need help accessing a textbox from another class... Pin
Judah Gabriel Himango2-Mar-05 5:14
sponsorJudah Gabriel Himango2-Mar-05 5:14 
GeneralGetAttribute Returning Null Sometimes Pin
DemonBob1-Mar-05 10:37
DemonBob1-Mar-05 10:37 
GeneralRegex question Pin
ektoras1-Mar-05 10:02
ektoras1-Mar-05 10:02 
GeneralRe: Regex question Pin
Dave Kreskowiak1-Mar-05 10:18
mveDave Kreskowiak1-Mar-05 10:18 
GeneralRe: Regex question Pin
leppie1-Mar-05 11:10
leppie1-Mar-05 11:10 
GeneralOleDB Insert into MS Access Pin
Vodstok1-Mar-05 9:54
Vodstok1-Mar-05 9:54 
GeneralRe: OleDB Insert into MS Access Pin
Dave Kreskowiak1-Mar-05 10:16
mveDave Kreskowiak1-Mar-05 10:16 
GeneralRe: OleDB Insert into MS Access Pin
Vodstok1-Mar-05 10:26
Vodstok1-Mar-05 10:26 
GeneralRe: OleDB Insert into MS Access Pin
Anonymous1-Mar-05 10:42
Anonymous1-Mar-05 10:42 
GeneralRe: OleDB Insert into MS Access Pin
Troske1-Mar-05 12:29
Troske1-Mar-05 12:29 
GeneralProcess.HasExited problems Pin
3Dizard1-Mar-05 9:44
3Dizard1-Mar-05 9:44 
GeneralRe: Process.HasExited problems Pin
Dave Kreskowiak1-Mar-05 10:14
mveDave Kreskowiak1-Mar-05 10:14 
GeneralRe: Process.HasExited problems Pin
3Dizard2-Mar-05 23:10
3Dizard2-Mar-05 23:10 
GeneralRe: Process.HasExited problems Pin
3Dizard3-Mar-05 0:14
3Dizard3-Mar-05 0:14 
GeneralBasic Thread Questions Pin
GhostsOfOrion1-Mar-05 8:29
GhostsOfOrion1-Mar-05 8:29 
GeneralRe: Basic Thread Questions Pin
S. Senthil Kumar1-Mar-05 8:58
S. Senthil Kumar1-Mar-05 8:58 

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.