473,408 Members | 2,030 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,408 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 4160
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 podría explicarme como enviar mails desde un WindowsForm ?, puedo hacerlo con un WebForm, pero no se como hacerlo con WindowsForm, podrían 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 aplicación que envía por correo una tabla convertida en archivo de texto de delimitación fija y me gustaría 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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.