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

C#

 
GeneralRe: Passing a reference to a volatile value Pin
PIEBALDconsult7-Jan-10 4:23
mvePIEBALDconsult7-Jan-10 4:23 
GeneralRe: Passing a reference to a volatile value Pin
Luc Pattyn7-Jan-10 4:30
sitebuilderLuc Pattyn7-Jan-10 4:30 
QuestionQuick way to switch the scopes of 2 code blocks? Pin
sherifffruitfly3-Jan-10 16:22
sherifffruitfly3-Jan-10 16:22 
AnswerRe: Quick way to switch the scopes of 2 code blocks? Pin
PIEBALDconsult3-Jan-10 16:23
mvePIEBALDconsult3-Jan-10 16:23 
QuestionTrying to open a new tab(User control embedded) Pin
xEvOx3-Jan-10 14:44
xEvOx3-Jan-10 14:44 
Questionwhere i can learn the basic of class - as simple as i can (C#) Pin
E_Gold3-Jan-10 9:17
E_Gold3-Jan-10 9:17 
AnswerRe: where i can learn the basic of class - as simple as i can (C#) Pin
Luc Pattyn3-Jan-10 11:03
sitebuilderLuc Pattyn3-Jan-10 11:03 
Questionsending Form to User Control that has written in another project Pin
jojoba20103-Jan-10 4:38
jojoba20103-Jan-10 4:38 
I have written a User Control and made it dll from a classLibrary Project.
This User Control get the Name of the Form (in Project that we use this dll) in textbox1 and then do something with the controls on this form. Now my question is how i can Cast textbox1.Text (of this user control) to Form ?
see i use this user control in FormA and when the project runs it gets any form name execpt itself(the form that has this user control) in textbox1 (this textbox1 is also in the user control)and then the user control brings out all control on that form and show all properties of that control.

I have used this code in User Control:
Type type = Type.GetType(txtFormName.Text, false, true);
Form frm = Activator.CreateInstance(type) as Form;

I get this error :
Value cannot be null.
Parameter name: type.



Alert :
This user control has been made in another project and i have build DLL and now I use this DLL in my another projects.
AnswerRe: sending Form to User Control that has written in another project Pin
Dimitri Witkowski3-Jan-10 4:49
Dimitri Witkowski3-Jan-10 4:49 
QuestionRe: sending Form to User Control that has written in another project Pin
jojoba20103-Jan-10 22:28
jojoba20103-Jan-10 22:28 
AnswerRe: sending Form to User Control that has written in another project Pin
Dimitri Witkowski3-Jan-10 22:31
Dimitri Witkowski3-Jan-10 22:31 
QuestionOpenGL in C# and Visual Studio 2005/2008 Pin
Patrick Skelton3-Jan-10 4:34
Patrick Skelton3-Jan-10 4:34 
AnswerRe: OpenGL in C# and Visual Studio 2005/2008 Pin
harold aptroot3-Jan-10 4:47
harold aptroot3-Jan-10 4:47 
GeneralRe: OpenGL in C# and Visual Studio 2005/2008 Pin
Patrick Skelton3-Jan-10 4:59
Patrick Skelton3-Jan-10 4:59 
GeneralRe: OpenGL in C# and Visual Studio 2005/2008 Pin
harold aptroot3-Jan-10 5:55
harold aptroot3-Jan-10 5:55 
AnswerRe: OpenGL in C# and Visual Studio 2005/2008 Pin
Patrick Skelton3-Jan-10 6:16
Patrick Skelton3-Jan-10 6:16 
GeneralRe: OpenGL in C# and Visual Studio 2005/2008 Pin
harold aptroot3-Jan-10 6:25
harold aptroot3-Jan-10 6:25 
AnswerRe: OpenGL in C# and Visual Studio 2005/2008 Pin
Pete O'Hanlon3-Jan-10 9:32
mvePete O'Hanlon3-Jan-10 9:32 
AnswerRe: OpenGL in C# and Visual Studio 2005/2008 Pin
Patrick Skelton3-Jan-10 22:31
Patrick Skelton3-Jan-10 22:31 
QuestionEvent Handler Pin
AlexB473-Jan-10 0:06
AlexB473-Jan-10 0:06 
AnswerRe: Event Handler Pin
DaveyM693-Jan-10 0:33
professionalDaveyM693-Jan-10 0:33 
GeneralRe: Event Handler Pin
AlexB473-Jan-10 4:05
AlexB473-Jan-10 4:05 
Questionword file Not lock...? Pin
koolprasad20032-Jan-10 23:48
professionalkoolprasad20032-Jan-10 23:48 
QuestionI'm Baffled Again Pin
Roger Wright2-Jan-10 21:49
professionalRoger Wright2-Jan-10 21:49 
AnswerRe: I'm Baffled Again Pin
Richard MacCutchan2-Jan-10 22:00
mveRichard MacCutchan2-Jan-10 22:00 

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.