Click here to Skip to main content
15,923,168 members
Home / Discussions / C#
   

C#

 
GeneralRe: structs as value and classes as reference??? Pin
Andy Smith27-Jun-02 11:17
Andy Smith27-Jun-02 11:17 
GeneralRe: structs as value and classes as reference??? Pin
Feng Qin27-Jun-02 18:38
Feng Qin27-Jun-02 18:38 
QuestionWhat do you think about no global variables? Pin
Marc Clifton26-Jun-02 14:14
mvaMarc Clifton26-Jun-02 14:14 
AnswerRe: What do you think about no global variables? Pin
Chris Rickard26-Jun-02 14:47
Chris Rickard26-Jun-02 14:47 
Generalre: globals, and what about messaging? Pin
Marc Clifton27-Jun-02 0:46
mvaMarc Clifton27-Jun-02 0:46 
GeneralRe: re: globals, and what about messaging? Pin
Chris Rickard27-Jun-02 4:17
Chris Rickard27-Jun-02 4:17 
GeneralInvoke members Pin
Wizard_0126-Jun-02 5:41
Wizard_0126-Jun-02 5:41 
GeneralRe: Invoke members Pin
Chris Rickard26-Jun-02 7:44
Chris Rickard26-Jun-02 7:44 
From MSDN docu:

"If typeName includes only the name of the Type, this method searches in the calling object's assembly, then in the mscorlib.dll assembly. If typeName is fully qualified with the partial or complete assembly name, this method searches in the specified assembly."

Since you're only specifing the type name, it looks in your assembly, can't find it then looks in mscorlib. System.Int32 is defined there but System.Windows.Forms.Button isn't. Thus the error.

This however, will work:
Type myType2 = Type.GetType("System.Windows.Forms.Button,"+Assembly.LoadWithPartialName("System.Windows.Forms").FullName,true);


or the much simpler
Type myType2 = typeof(System.Windows.Forms.Button);

GeneralRe: Invoke members Pin
Wizard_0126-Jun-02 8:23
Wizard_0126-Jun-02 8:23 
GeneralRe: Invoke members Pin
Chris Rickard26-Jun-02 8:26
Chris Rickard26-Jun-02 8:26 
GeneralOracle and .NET Pin
SimonS26-Jun-02 0:52
SimonS26-Jun-02 0:52 
GeneralRe: Oracle and .NET Pin
Andy Smith26-Jun-02 5:58
Andy Smith26-Jun-02 5:58 
GeneralRe: Oracle and .NET Pin
SimonS27-Jun-02 0:54
SimonS27-Jun-02 0:54 
GeneralCalling DLL's Pin
Venet25-Jun-02 23:05
Venet25-Jun-02 23:05 
GeneralRe: Calling DLL's Pin
Rüpel25-Jun-02 23:11
Rüpel25-Jun-02 23:11 
GeneralRe: Calling DLL's Pin
Zombies with Coffee, LLC26-Jun-02 4:22
professionalZombies with Coffee, LLC26-Jun-02 4:22 
GeneralRe: Calling DLL's Pin
Venet26-Jun-02 5:09
Venet26-Jun-02 5:09 
GeneralRe: Calling DLL's Pin
Zombies with Coffee, LLC26-Jun-02 5:30
professionalZombies with Coffee, LLC26-Jun-02 5:30 
GeneralRe: Calling DLL's Pin
Venet26-Jun-02 6:13
Venet26-Jun-02 6:13 
GeneralVS.Net Webforms designer - How-to Pin
alper25-Jun-02 21:20
alper25-Jun-02 21:20 
QuestionHow to dispaly "Systeminformation" dialog? Pin
Feng Qin25-Jun-02 18:15
Feng Qin25-Jun-02 18:15 
AnswerRe: How to dispaly "Systeminformation" dialog? Pin
Chris Rickard26-Jun-02 4:54
Chris Rickard26-Jun-02 4:54 
GeneralRe: How to dispaly "Systeminformation" dialog? Pin
Feng Qin26-Jun-02 16:21
Feng Qin26-Jun-02 16:21 
GeneralCustom web control Pin
25-Jun-02 15:46
suss25-Jun-02 15:46 
GeneralRe: Custom web control Pin
Rocky Moore25-Jun-02 17:10
Rocky Moore25-Jun-02 17:10 

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.