Hi Bernardo,
You should use an instance of an assembly.
An example:
Form oform =
(Form)Assembly.GetExecutingAssembly().CreateInstan ce(textBox1.Text);
And make sure you pass the full name of the form (with namespace).
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"Bernardo" <bp****@sapo.pt> wrote in message
news:51**********************************@microsof t.com...
Hi,
I have a textbox, and I want to open the form that is writen in it.
I tryed some code, but it didn't work!
Form oform =
(Form)System.Reflection.Assembly.CreateInstance(tx tNomeEcran.Text);
Can you help?
Thanks,