Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Client Pinging Server Pin
Heath Stewart6-Apr-04 3:12
protectorHeath Stewart6-Apr-04 3:12 
GeneralOracle Stored Procedure Problem in .NET Pin
Member 3350225-Apr-04 23:27
Member 3350225-Apr-04 23:27 
GeneralRe: Oracle Stored Procedure Problem in .NET Pin
Heath Stewart6-Apr-04 3:08
protectorHeath Stewart6-Apr-04 3:08 
GeneralRe: Oracle Stored Procedure Problem in .NET Pin
Jesse Squire6-Apr-04 4:24
Jesse Squire6-Apr-04 4:24 
GeneralRe: Oracle Stored Procedure Problem in .NET Pin
Bill Dean7-Apr-04 7:17
Bill Dean7-Apr-04 7:17 
GeneralMDIChild from another child form Pin
robmays5-Apr-04 22:12
robmays5-Apr-04 22:12 
GeneralRe: MDIChild from another child form Pin
MeterMan5-Apr-04 22:59
MeterMan5-Apr-04 22:59 
GeneralRe: MDIChild from another child form Pin
LongRange.Shooter6-Apr-04 3:27
LongRange.Shooter6-Apr-04 3:27 
The best way to handle this problem and doing it safely is to create a delegate in the Parent, create an Event in the child, and subscribe the delegate to the event. Then when your child sees that the event for opening the second child occurs, you raise the event and pass the necessary information to be passed to the second child in the event args.

...parent...
MyChild child;
     ...
if (child != null)
{
   child = new MyChild();
   child.SomeEvent += new EventHandler(myDelegateMethod);
   child.MdiParent = this;
   child.Show();
}
else
   child.Focus();
...

private void myDelegateMethod(object sender, MyEventArgs e)
{
        INewChild something;
        if (e.RequestedForm == "Calculate")
            something = new Calculate(e.Args);
        else
            something = new SomethingElse(e.Args);
        something.MdiParent = this;
        something.Show();
}

...
public class MyEventArgs:System.EventArgs
...



______________________________
The Tao gave birth to machine language. Machine language gave birth to the assembler.

The assembler gave birth to the compiler. Now there are ten thousand languages.

Each language has its purpose, however humble. Each language expresses the Yin and Yang of software. Each language has its place within the Tao.

But do not program in COBOL if you can avoid it.
QuestionIs string a primitive type?? Pin
Ungi.5-Apr-04 20:05
Ungi.5-Apr-04 20:05 
AnswerRe: Is string a primitive type?? Pin
Corinna John5-Apr-04 21:50
Corinna John5-Apr-04 21:50 
GeneralRe: Is string a primitive type?? Pin
Ungi.5-Apr-04 21:56
Ungi.5-Apr-04 21:56 
GeneralRe: Is string a primitive type?? Pin
Milton Karimbekallil6-Apr-04 0:53
Milton Karimbekallil6-Apr-04 0:53 
GeneralRe: Is string a primitive type?? Pin
Ungi.6-Apr-04 2:10
Ungi.6-Apr-04 2:10 
GeneralRe: Is string a primitive type?? Pin
Heath Stewart6-Apr-04 2:59
protectorHeath Stewart6-Apr-04 2:59 
GeneralRe: Is string a primitive type?? Pin
Ungi.6-Apr-04 3:15
Ungi.6-Apr-04 3:15 
GeneralRe: Is string a primitive type?? Pin
Heath Stewart6-Apr-04 3:44
protectorHeath Stewart6-Apr-04 3:44 
AnswerRe: Is string a primitive type?? Pin
leppie6-Apr-04 7:18
leppie6-Apr-04 7:18 
GeneralRe: Is string a primitive type?? Pin
Milton Karimbekallil11-Apr-04 19:01
Milton Karimbekallil11-Apr-04 19:01 
QuestionWriting to Excel (XLS)? Pin
Carl Mercier5-Apr-04 17:04
Carl Mercier5-Apr-04 17:04 
AnswerRe: Writing to Excel (XLS)? Pin
Heath Stewart5-Apr-04 17:57
protectorHeath Stewart5-Apr-04 17:57 
GeneralRe: Writing to Excel (XLS)? Pin
Carl Mercier5-Apr-04 18:05
Carl Mercier5-Apr-04 18:05 
GeneralRe: Writing to Excel (XLS)? Pin
Heath Stewart5-Apr-04 18:12
protectorHeath Stewart5-Apr-04 18:12 
GeneralRe: Writing to Excel (XLS)? Pin
Jesse Squire6-Apr-04 4:31
Jesse Squire6-Apr-04 4:31 
GeneralRe: Writing to Excel (XLS)? Pin
Carl Mercier6-Apr-04 16:01
Carl Mercier6-Apr-04 16:01 
GeneralWindows Explorer Context Menus Pin
Noodles235-Apr-04 15:37
Noodles235-Apr-04 15:37 

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.