Click here to Skip to main content
16,008,075 members
Home / Discussions / C#
   

C#

 
Questioncan i embed internet explorer in my application? Pin
Asim N.16-Jun-03 2:18
Asim N.16-Jun-03 2:18 
AnswerRe: can i embed internet explorer in my application? Pin
Jose Fco Bonnin16-Jun-03 3:09
Jose Fco Bonnin16-Jun-03 3:09 
GeneralRe: can i embed internet explorer in my application? Pin
Asim N.16-Jun-03 21:20
Asim N.16-Jun-03 21:20 
AnswerRe: can i embed internet explorer in my application? Pin
Frank W. Wu16-Jun-03 3:15
Frank W. Wu16-Jun-03 3:15 
AnswerRe: can i embed internet explorer in my application? Pin
LongRange.Shooter17-Jun-03 10:44
LongRange.Shooter17-Jun-03 10:44 
GeneralAccessing metadata of files Pin
Dimitris Iliopoulos16-Jun-03 1:58
Dimitris Iliopoulos16-Jun-03 1:58 
Generalcustom event handling for gui Pin
zuhx15-Jun-03 22:10
zuhx15-Jun-03 22:10 
GeneralRe: custom event handling for gui Pin
Rocky Moore16-Jun-03 0:11
Rocky Moore16-Jun-03 0:11 
Look at delegates and EventArgs. That will show you how to pass parameters on events.

If you have a main MDI window which creates your MDI child windows and the navigation is a MDI child window that you can only have one of (I am thinking of a left side tab strip type of navigation while the right side hosts all the MDI windows). If this is the case, your main window will have the reference to your navigation window (since it creates it). You could have your main window pass a reference to your navigation window to your MDI children windows. They would then be able to pass the event information directly back to the navigation window would having to raise events.

MainForm
NavigationWindow navWindow = new NavigationWindow();
...
// Some event happens and child window is bring created
MyReportChildWindow child = new MyReportChildWindow(navWindow);

NavWindow
public void OnSpecialClient(string formName)
{
// Do something
}

MyReportChildWindow
private NavigationWindow navWindow = null;

public MyReportChildWindow(NavigationWindow navWindow)
{
this.navWindow = navWindow
}

public OnClicked(object Sender, EventArgs e)
{
navWindow.OnSpecialClient(this.Text);
}

There are other ways to handle this situation. With delegates you will have to have either the Nav window or the Child window know each other in order to register the delegate unless you had the main window set the delegate for the child window when it was created. Would be easier with the above than that.

Another possiblity, is if there will only ever be one Navigation window, you can have it have a static member that you can call from all your child windows. That way you do no thave to pass anything, you could just call NavigationWindow.OnSpecialClient(this.Text) when the event occured. This kind of make the NavigationWindow method global to your application.

Rocky Moore <><
GeneralRe: custom event handling for gui Pin
zuhx16-Jun-03 20:20
zuhx16-Jun-03 20:20 
QuestionHow do i run .aspx files in visualstudio Pin
Slow Learner15-Jun-03 18:15
Slow Learner15-Jun-03 18:15 
AnswerRe: How do i run .aspx files in visualstudio Pin
kaschimer16-Jun-03 7:56
kaschimer16-Jun-03 7:56 
QuestionWhen to use C# , when VC++ ? Pin
Meysam Mahfouzi15-Jun-03 17:18
Meysam Mahfouzi15-Jun-03 17:18 
AnswerRe: When to use C# , when VC++ ? Pin
Rocky Moore15-Jun-03 23:49
Rocky Moore15-Jun-03 23:49 
GeneralRe: When to use C# , when VC++ ? Pin
Meysam Mahfouzi16-Jun-03 18:55
Meysam Mahfouzi16-Jun-03 18:55 
GeneralRe: When to use C# , when VC++ ? Pin
J. Dunlap16-Jun-03 19:17
J. Dunlap16-Jun-03 19:17 
GeneralRe: When to use C# , when VC++ ? Pin
Rocky Moore16-Jun-03 22:34
Rocky Moore16-Jun-03 22:34 
GeneralRe: When to use C# , when VC++ ? Pin
Meysam Mahfouzi10-Aug-03 4:20
Meysam Mahfouzi10-Aug-03 4:20 
GeneralRe: When to use C# , when VC++ ? Pin
Rocky Moore11-Aug-03 0:57
Rocky Moore11-Aug-03 0:57 
GeneralShowing a Form as a drop-down menu Pin
Patrick Bristow15-Jun-03 6:53
Patrick Bristow15-Jun-03 6:53 
GeneralRe: Showing a Form as a drop-down menu Pin
J. Dunlap15-Jun-03 7:32
J. Dunlap15-Jun-03 7:32 
GeneralRe: Showing a Form as a drop-down menu Pin
Patrick Bristow15-Jun-03 7:41
Patrick Bristow15-Jun-03 7:41 
GeneralRe: Showing a Form as a drop-down menu Pin
J. Dunlap15-Jun-03 8:14
J. Dunlap15-Jun-03 8:14 
GeneralRe: Showing a Form as a drop-down menu Pin
Patrick Bristow15-Jun-03 8:44
Patrick Bristow15-Jun-03 8:44 
GeneralRe: Showing a Form as a drop-down menu Pin
J. Dunlap15-Jun-03 9:15
J. Dunlap15-Jun-03 9:15 
GeneralRe: Showing a Form as a drop-down menu Pin
Patrick Bristow15-Jun-03 9:28
Patrick Bristow15-Jun-03 9:28 

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.