Click here to Skip to main content
15,921,959 members
Home / Discussions / C#
   

C#

 
AnswerRe: base-class method access type Pin
Guffa28-Feb-06 9:03
Guffa28-Feb-06 9:03 
QuestionC# - Custom control - Text fold effect Pin
dream2code28-Feb-06 8:08
dream2code28-Feb-06 8:08 
AnswerRe: C# - Custom control - Text fold effect Pin
Judah Gabriel Himango28-Feb-06 9:34
sponsorJudah Gabriel Himango28-Feb-06 9:34 
AnswerRe: C# - Custom control - Text fold effect Pin
goyal manish28-Feb-06 18:59
goyal manish28-Feb-06 18:59 
QuestionProblem with custom config sections Pin
Jamie Nordmeyer28-Feb-06 7:47
Jamie Nordmeyer28-Feb-06 7:47 
AnswerRe: Problem with custom config sections Pin
PicklesTheClown28-Feb-06 13:17
PicklesTheClown28-Feb-06 13:17 
QuestionPassing data from a form??? Pin
richiemac28-Feb-06 6:08
richiemac28-Feb-06 6:08 
AnswerRe: Passing data from a form??? Pin
Le centriste28-Feb-06 6:37
Le centriste28-Feb-06 6:37 
You could expose some properties that the calling class will get when the form is closed. This may be done in numerous ways, one would be to catch the Form.Closed event (the calling class catches the one raised by the called form).

private void OnMyFormClosed(object sender, EventArgs cea)
{
    MyForm myForm = (MyForm)sender;

    string textBox1content = myForm.TextBox1Content;
    //... You get the idea.
}


------------------

As I suggested, there are numerous other ways, like opening the form in modal mode and just wait for the ShowDialog() method to return, but still using properties. Also, you could use a custom event with a EventArgs-derived class containing the data of interest.



--------

"I say no to drugs, but they don't listen."
- Marilyn Manson

-- modified at 12:40 Tuesday 28th February, 2006
GeneralRe: Thanks dude! Pin
richiemac28-Feb-06 6:57
richiemac28-Feb-06 6:57 
GeneralMy pleasure! Pin
Le centriste28-Feb-06 7:29
Le centriste28-Feb-06 7:29 
GeneralRe: Passing data from a form??? Pin
Lyle M1-Mar-06 11:39
Lyle M1-Mar-06 11:39 
GeneralRe: Passing data from a form??? Pin
Le centriste1-Mar-06 12:17
Le centriste1-Mar-06 12:17 
AnswerRe: Passing data from a form??? Pin
Robin Panther28-Feb-06 16:00
Robin Panther28-Feb-06 16:00 
GeneralRe: Passing data from a form??? Pin
Le centriste1-Mar-06 1:45
Le centriste1-Mar-06 1:45 
QuestionHow to display fraction Pin
subir12328-Feb-06 6:07
subir12328-Feb-06 6:07 
AnswerRe: How to display fraction Pin
Elfreda28-Feb-06 6:46
Elfreda28-Feb-06 6:46 
AnswerRe: How to display fraction Pin
Judah Gabriel Himango28-Feb-06 6:47
sponsorJudah Gabriel Himango28-Feb-06 6:47 
GeneralRe: How to display fraction Pin
subir12328-Feb-06 8:20
subir12328-Feb-06 8:20 
GeneralRe: How to display fraction Pin
Judah Gabriel Himango28-Feb-06 9:22
sponsorJudah Gabriel Himango28-Feb-06 9:22 
QuestionObject inheritens Pin
NaNg1524128-Feb-06 5:22
NaNg1524128-Feb-06 5:22 
AnswerRe: Object inheritens Pin
CWIZO28-Feb-06 5:34
CWIZO28-Feb-06 5:34 
QuestionRegistry Pin
superPaul10128-Feb-06 4:41
superPaul10128-Feb-06 4:41 
AnswerRe: Registry Pin
Judah Gabriel Himango28-Feb-06 5:55
sponsorJudah Gabriel Himango28-Feb-06 5:55 
GeneralRe: Registry Pin
superPaul10128-Feb-06 6:12
superPaul10128-Feb-06 6:12 
Questionneed help for dropdown list Pin
kamlakar28-Feb-06 4:32
kamlakar28-Feb-06 4: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.