DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 21 Aug 2007 20:46:00 -0700,    posted on: microsoft.public.dotnet.framework.windowsforms        back       

Thread Index
  1    wrytat
          2    Michael C
          3    Herfried K. Wagner [MVP]


Opening Form By Name?   
I have the name of the form (in String) that I would like to show. How do I 
show the form, if I only have its form name in String?
Date:Tue, 21 Aug 2007 20:46:00 -0700   Author:  

Re: Opening Form By Name?   
"wrytat"  wrote in message 
news:238CDCFE-0AF5-41B5-A388-6E07D9ED9A52@microsoft.com...

>I have the name of the form (in String) that I would like to show. How do I
> show the form, if I only have its form name in String?


You can use the Activator.CreateInstance
Date:Wed, 22 Aug 2007 14:00:32 +1000   Author:  

Re: Opening Form By Name?   
"wrytat"  schrieb:

>I have the name of the form (in String) that I would like to show. How do I
> show the form, if I only have its form name in String?


Take a look at the code snippets in this article:

<URL:http://dotnet.mvps.org/dotnet/code/techniques/#ClassByName>

-- 
 M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
 V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
Date:Wed, 22 Aug 2007 20:34:12 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us