Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL server dynamic connection Pin
LongRange.Shooter19-Apr-06 2:36
LongRange.Shooter19-Apr-06 2:36 
GeneralRe: SQL server dynamic connection Pin
namiiiii19-Apr-06 8:56
namiiiii19-Apr-06 8:56 
GeneralRe: SQL server dynamic connection Pin
LongRange.Shooter20-Apr-06 6:51
LongRange.Shooter20-Apr-06 6:51 
Questioncant add a refference to the directx libreries Pin
yossi198118-Apr-06 11:48
yossi198118-Apr-06 11:48 
AnswerRe: cant add a refference to the directx libreries Pin
LongRange.Shooter19-Apr-06 2:56
LongRange.Shooter19-Apr-06 2:56 
QuestionProcessing Registered Windows Messages Pin
Steve Harding18-Apr-06 11:24
Steve Harding18-Apr-06 11:24 
QuestionCasting Problem Pin
danchester18-Apr-06 9:47
danchester18-Apr-06 9:47 
AnswerRe: Casting Problem Pin
Guffa18-Apr-06 9:57
Guffa18-Apr-06 9:57 
Question"Value does not fall within the expected range" Pin
ahchoo18-Apr-06 7:10
ahchoo18-Apr-06 7:10 
AnswerRe: "Value does not fall within the expected range" Pin
LongRange.Shooter18-Apr-06 11:17
LongRange.Shooter18-Apr-06 11:17 
QuestionMessage="Value does not fall within the expected range." Pin
ahchoo18-Apr-06 7:07
ahchoo18-Apr-06 7:07 
AnswerRe: Message="Value does not fall within the expected range." Pin
Judah Gabriel Himango18-Apr-06 8:01
sponsorJudah Gabriel Himango18-Apr-06 8:01 
AnswerRe: Message="Value does not fall within the expected range." Pin
ahchoo18-Apr-06 8:26
ahchoo18-Apr-06 8:26 
QuestionI have Dundas Gauge for .NET Version 1.6 [for Visual Studio 2005 ] can I use it with .NET 2003 Pin
t4ure4n18-Apr-06 7:02
t4ure4n18-Apr-06 7:02 
AnswerRe: I have Dundas Gauge for .NET Version 1.6 [for Visual Studio 2005 ] can I use it with .NET 2003 Pin
Judah Gabriel Himango18-Apr-06 7:14
sponsorJudah Gabriel Himango18-Apr-06 7:14 
AnswerRe: I have Dundas Gauge for .NET Version 1.6 [for Visual Studio 2005 ] can I use it with .NET 2003 Pin
Troy Marchand19-Apr-06 4:00
sitebuilderTroy Marchand19-Apr-06 4:00 
QuestionWin32 dll conversion Pin
t4ure4n18-Apr-06 6:50
t4ure4n18-Apr-06 6:50 
AnswerRe: Win32 dll conversion Pin
Judah Gabriel Himango18-Apr-06 7:16
sponsorJudah Gabriel Himango18-Apr-06 7:16 
QuestionInheritance problem Pin
sharpone18-Apr-06 6:33
sharpone18-Apr-06 6:33 
AnswerRe: Inheritance problem Pin
Le centriste18-Apr-06 6:41
Le centriste18-Apr-06 6:41 
AnswerRe: Inheritance problem Pin
Ricardo Mendes18-Apr-06 6:42
Ricardo Mendes18-Apr-06 6:42 
QuestionWeb service request does not reach IIS Pin
Ricardo Mendes18-Apr-06 6:22
Ricardo Mendes18-Apr-06 6:22 
QuestionDynamically loadning Menu Items Pin
sjpjs18-Apr-06 5:52
sjpjs18-Apr-06 5:52 
I am planning to have an application where a menu will be populated dynamically.

Say the menu for the application is as below:

File   Test   Help
       Test1
       Test2

By selecting Test1 and Test2 menu I am intending to load a form from the DLL which inherits a base class used in the main application. This class has a Show method to show the child form which is the part of the DLL. I have difficulty passing the main form as parent form. Since I am novice in C# I am trying to follow the standard method as shown below. Is there any other way to achieve it?

CLib.Class1 cls = new CLib.Class1(); //<- I don’t know how to declare this dynamically<br />
<br />
cls.Parent = this; // <- I get error at this place<br />
cls.Show();


In my show method I have code like below:
frmChild frm = new frmChild();<br />
frm.MdiParent=Parent;<br />
frm.Show();


Second thing, lets us say I maintain the Menu Option name and the DLL name in a INI file or XML file. I can populate the menu option dynamically but how I will use the DLL.

Thanks in advance for your kind guidance.
AnswerRe: Dynamically loadning Menu Items Pin
Robert Rohde18-Apr-06 6:03
Robert Rohde18-Apr-06 6:03 
GeneralRe: Dynamically loadning Menu Items Pin
sjpjs18-Apr-06 7:01
sjpjs18-Apr-06 7:01 

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.