Click here to Skip to main content
15,889,527 members
Home / Discussions / C#
   

C#

 
AnswerRe: Conversion from Enterprise Library 1.1 to 2.0 Pin
Dustin Metzgar22-Aug-06 5:17
Dustin Metzgar22-Aug-06 5:17 
QuestionNewbie (Http-Tunneling) in C#: Help PLZZZZ!! (post 2 prev post modify didnt succeed) [modified] Pin
gvanto22-Aug-06 4:49
gvanto22-Aug-06 4:49 
GeneralRe: Newbie (Http-Tunneling) in C#: Help PLZZZZ!! (post 2 prev post modify didnt succeed) Pin
Guffa22-Aug-06 5:43
Guffa22-Aug-06 5:43 
QuestionRe: Newbie (Http-Tunneling) in C#: Help PLZZZZ!! (post 2 prev post modify didnt succeed) Pin
gvanto22-Aug-06 21:19
gvanto22-Aug-06 21:19 
QuestionComboBox items Pin
zaboboa22-Aug-06 4:38
zaboboa22-Aug-06 4:38 
AnswerRe: ComboBox items Pin
Ed.Poore22-Aug-06 7:33
Ed.Poore22-Aug-06 7:33 
AnswerRe: ComboBox items Pin
Drew McGhie22-Aug-06 9:57
Drew McGhie22-Aug-06 9:57 
QuestionAssemblies / Use Variables [modified] Pin
ezazazel22-Aug-06 4:36
ezazazel22-Aug-06 4:36 
Greetz everyone!
I have a question concerning assemblies.

Here is the situation:
I have two assemblies, one is executable and the mdi container, the other one is a library which includes Forms as well.

I referenced the library so I can call it into the mdi container, which works fine.
But I found no way to change variables in the executable out of the library.

For example:
I want to call the Main Form of the library as MDI Child, but just once. When the Form is closed it should be possible to restart it again.

public Library.FormoftheLibrary fotl = null;<br />
privat void StarttheFormoftheLibrary()<br />
{<br />
 if (fotl == null)<br />
    fotl = new Library.FormoftheLibrary();<br />
    fotl.MDIParent = this;<br />
    fotl.Show();<br />
}


This works fine as I wrote, but in the FormoftheLibrary I need an EventHandler which sets the variable fotl in the executable on FormClosing back to null.

Also I would need to use classes in the executable in the library.

I tried to reference it as well, but VS tells me, that circledependencies (I think that´s the correct english term) aren´t allowed.

I tried to forward the Form to the library, but it doesn´t work as well (which makes sense, but doesn´t help me out).

in the executable:

fotl = new Library.FormoftheLibrary(this);

in the library:
void FormoftheLibrary(Executable.MainFormoftheExecutable form)<br />
//MainFormoftheExecutable is not known, because of the missing reference


So how to tell the library, that it can use the variables of the executable?

Thx in advance,
ezazazel


-- modified at 14:26 Tuesday 22nd August, 2006
AnswerRe: Assemblies / Use Variables Pin
Ed.Poore22-Aug-06 7:31
Ed.Poore22-Aug-06 7:31 
GeneralRe: Assemblies / Use Variables Pin
ezazazel22-Aug-06 8:25
ezazazel22-Aug-06 8:25 
GeneralRe: Assemblies / Use Variables [modified] Pin
Martin#22-Aug-06 10:22
Martin#22-Aug-06 10:22 
GeneralRe: Assemblies / Use Variables Pin
ezazazel22-Aug-06 22:52
ezazazel22-Aug-06 22:52 
GeneralRe: Assemblies / Use Variables Pin
Martin#22-Aug-06 23:54
Martin#22-Aug-06 23:54 
QuestionBrowser automation Pin
Dave T22-Aug-06 4:26
Dave T22-Aug-06 4:26 
AnswerRe: Browser automation Pin
Ed.Poore22-Aug-06 4:29
Ed.Poore22-Aug-06 4:29 
GeneralRe: Browser automation Pin
Dave T22-Aug-06 5:40
Dave T22-Aug-06 5:40 
GeneralRe: Browser automation Pin
Ed.Poore22-Aug-06 6:08
Ed.Poore22-Aug-06 6:08 
QuestionNewbie (Http-Tunneling) in C#: Help PLZZZZ!! Pin
gvanto22-Aug-06 4:25
gvanto22-Aug-06 4:25 
Questiondisable special key in .NET (C#,VB) for win xp Pin
jeedjad22-Aug-06 4:14
jeedjad22-Aug-06 4:14 
AnswerRe: disable special key in .NET (C#,VB) for win xp Pin
Ed.Poore22-Aug-06 4:20
Ed.Poore22-Aug-06 4:20 
AnswerRe: disable special key in .NET (C#,VB) for win xp Pin
Eric Dahlvang22-Aug-06 4:57
Eric Dahlvang22-Aug-06 4:57 
GeneralRe: disable special key in .NET (C#,VB) for win xp Pin
jeedjad22-Aug-06 9:16
jeedjad22-Aug-06 9:16 
GeneralRe: disable special key in .NET (C#,VB) for win xp Pin
Eric Dahlvang22-Aug-06 9:52
Eric Dahlvang22-Aug-06 9:52 
GeneralRe: disable special key in .NET (C#,VB) for win xp [modified] Pin
jeedjad22-Aug-06 18:51
jeedjad22-Aug-06 18:51 
GeneralRe: disable special key in .NET (C#,VB) for win xp Pin
Eric Dahlvang23-Aug-06 4:09
Eric Dahlvang23-Aug-06 4:09 

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.