Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Information about doing a bandwidth monitor? Pin
leppie20-Apr-04 6:54
leppie20-Apr-04 6:54 
GeneralRe: Information about doing a bandwidth monitor? Pin
Marlun20-Apr-04 7:01
Marlun20-Apr-04 7:01 
GeneralRe: Information about doing a bandwidth monitor? Pin
leppie20-Apr-04 7:49
leppie20-Apr-04 7:49 
GeneralRe: Information about doing a bandwidth monitor? Pin
Anonymous21-Apr-04 0:40
Anonymous21-Apr-04 0:40 
QuestionHow to dynamic load or show form by Form name ? Pin
Old Gun20-Apr-04 3:07
Old Gun20-Apr-04 3:07 
AnswerRe: How to dynamic load or show form by Form name ? Pin
Mike Ellison20-Apr-04 3:24
Mike Ellison20-Apr-04 3:24 
AnswerRe: How to dynamic load or show form by Form name ? Pin
Baris Kurtlutepe20-Apr-04 3:28
Baris Kurtlutepe20-Apr-04 3:28 
GeneralRe: How to dynamic load or show form by Form name ? Pin
Old Gun20-Apr-04 15:02
Old Gun20-Apr-04 15:02 
Thank both of you!

The second answer is What I wanted,I have test it works.

Following is my test code

///---------------------------------------------------------------------------
private void button1_Click(object sender, System.EventArgs e)
{
Module[] moduleArray;

moduleArray = Assembly.GetExecutingAssembly().GetModules(false);

//In a simple project with only one module, the module at index
// 0 will be the module containing these classes.
Module myModule = moduleArray[0];

Type myType;

myType = myModule.GetType("WindowsApplication1.Form2");
Form f = (Form) Activator.CreateInstance(myType);
f.Show();

}

///-------------------------------------------------------------------------
///-------------------------------------------------------------------------
GeneralRe: How to dynamic load or show form by Form name ? Pin
Mike Ellison20-Apr-04 17:53
Mike Ellison20-Apr-04 17:53 
Generaluk dates Pin
robmays20-Apr-04 2:33
robmays20-Apr-04 2:33 
GeneralRe: uk dates Pin
Roman Rodov20-Apr-04 2:47
Roman Rodov20-Apr-04 2:47 
GeneralRe: uk dates Pin
robmays20-Apr-04 2:53
robmays20-Apr-04 2:53 
GeneralRe: uk dates Pin
Heath Stewart20-Apr-04 4:10
protectorHeath Stewart20-Apr-04 4:10 
GeneralRe: uk dates Pin
robmays20-Apr-04 4:21
robmays20-Apr-04 4:21 
GeneralRe: uk dates Pin
Heath Stewart20-Apr-04 4:15
protectorHeath Stewart20-Apr-04 4:15 
QuestionGetScrollInfo in TreeView? Pin
Anthony_Yio19-Apr-04 22:56
Anthony_Yio19-Apr-04 22:56 
AnswerRe: GetScrollInfo in TreeView? Pin
Heath Stewart20-Apr-04 4:07
protectorHeath Stewart20-Apr-04 4:07 
GeneralRe: GetScrollInfo in TreeView? Pin
Anthony_Yio20-Apr-04 15:27
Anthony_Yio20-Apr-04 15:27 
Questionhow do I make a thumbnail screenshot of a webpage programatically? Pin
Nathan Ridley19-Apr-04 22:55
Nathan Ridley19-Apr-04 22:55 
AnswerRe: how do I make a thumbnail screenshot of a webpage programatically? Pin
Mike Ellison20-Apr-04 3:36
Mike Ellison20-Apr-04 3:36 
GeneralRe: how do I make a thumbnail screenshot of a webpage programatically? Pin
Nathan Ridley20-Apr-04 11:19
Nathan Ridley20-Apr-04 11:19 
GeneralSet a node in a Treeview to bold Pin
Gian19-Apr-04 22:41
Gian19-Apr-04 22:41 
GeneralRe: Set a node in a Treeview to bold Pin
Baris Kurtlutepe20-Apr-04 3:07
Baris Kurtlutepe20-Apr-04 3:07 
GeneralRe: Set a node in a Treeview to bold Pin
Heath Stewart20-Apr-04 4:21
protectorHeath Stewart20-Apr-04 4:21 
GeneralRe: Set a node in a Treeview to bold Pin
Gian20-Apr-04 5:40
Gian20-Apr-04 5:40 

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.