473,390 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

¿como puedo abrir un formulario en ejecucion en forma dinamica?

GZG
Por ejemplo

Dim FRM As String = "fUno"

'y poder yo decir lo siguiente
FRM.Show

'se asume que hay un formulario con el nombre fUno en mi proyecto
'mi necesidad es crear un objecto formulario a partir de un string
Nov 21 '05 #1
4 4158
GZG wrote:
Por ejemplo

Dim FRM As String = "fUno"

'y poder yo decir lo siguiente
FRM.Show

'se asume que hay un formulario con el nombre fUno en mi proyecto
'mi necesidad es crear un objecto formulario a partir de un string


(este group esta en *ngles. hay un grupo specificamente para español.)
(this group is in english)
I assume you mean this???

Dim myFRM as new FRM
myFRM.Show
--

Daniel
MCSE, MCP+I, MCP in Windows 2000/NT

--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Nov 21 '05 #2
Daniel,

I assume that is meant creating a form from a string (a name).

Cor
Nov 21 '05 #3
"GZG" <GZ*@discussions.microsoft.com> schrieb:
Dim FRM As String = "fUno"

'y poder yo decir lo siguiente
FRM.Show

'se asume que hay un formulario con el nombre fUno en mi proyecto
'mi necesidad es crear un objecto formulario a partir de un string


\\\
Imports System.Reflection
..
..
..
Dim frm As Form = _
DirectCast( _
Activator.CreateInstance( _
Type.GetType("MyApplication.SampleForm") _
), _
Form _
)
frm.Show()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4
Cor Ligthert wrote:
Daniel,

I assume that is meant creating a form from a string (a name).

Cor

oh yeah, silly me. misread it again.

--

Daniel
MCSE, MCP+I, MCP in Windows 2000/NT

--------------------------------------
remove the 2nd madrid from my mail address to contact me.
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Juan Irigoyen | last post by:
DataGrid.toString() como DataGrid.toString()
11
by: Liber | last post by:
Alguien podra explicarme como enviar mails desde un WindowsForm ?, puedo hacerlo con un WebForm, pero no se como hacerlo con WindowsForm, podran darme un ejemplo. Gracias, Saludos, Liber.
1
by: Liber | last post by:
Como se trabaja con las Api de Windows, utilizando C# .Net ? gracias... ---------------------------------------------------------------------------...
1
by: elena.me | last post by:
Hola..estoy intentado abrir un fichero de excel en html, y desde mi equipo funciona bien...pero cuando subo el programa a servidor me abre una pantalla con codigo ascii. El codigo que tengo es:...
1
by: David Roza | last post by:
Groups Home | Help | Sign in Web Images Groups News Froogle Maps more Advanced Groups Search
2
by: denet iglesias | last post by:
hola: yo quisiera saber como puedo hacer que un panel se ponga transparente poco a poco, pero que ademas se pongan transparentes los controles que estne dentro de el, por ejemplo un picturebox y un...
0
by: librosur08 | last post by:
Como obtener datos del gestor de correos predeterminado y el puerto SMTP Tengo una aplicacin que enva por correo una tabla convertida en archivo de texto de delimitacin fija y me gustara que...
4
by: goosfancito | last post by:
hola. Quiero saber como hacer para identificar de que tipo es un archivo, como ser: quiero que el usuario seleccione un archivo excel y despues poder verificar que asi es y que no es un archivo...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.