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: Fri, 17 Aug 2007 10:55:30 +0200,    posted on: microsoft.public.dotnet.framework.windowsforms.controls        back       

Thread Index
  1    Johnny E. Jensen
          2    leepard


Usercontrol application name   
Hello

Is it possible to get the application name the usercontrol is placed into.
I'am building a usercontrol that have the possibillity to save properties, 
the xml file is stored in the "Application Data\Company Name" and the next 
folder should be the name of the application the usercontrol i used by, then 
the foldername of the form name the usercontrol is placed into.

Eks.
Application Data\MyCompanyName\Form1\MyUserControl.xml

The Form1 name is taken from the ParentForm property from the usercontrol.

Kind regards.
Johnny E. Jensen
Date:Fri, 17 Aug 2007 10:55:30 +0200   Author:  

RE: Usercontrol application name   
Try the following:

   System.Reflection.Assembly.GetEntryAssembly().GetName().Name

Not sure if this is what you need.

"Johnny E. Jensen" wrote:


> Hello
> 
> Is it possible to get the application name the usercontrol is placed into.
> I'am building a usercontrol that have the possibillity to save properties, 
> the xml file is stored in the "Application Data\Company Name" and the next 
> folder should be the name of the application the usercontrol i used by, then 
> the foldername of the form name the usercontrol is placed into.
> 
> Eks.
> Application Data\MyCompanyName\Form1\MyUserControl.xml
> 
> The Form1 name is taken from the ParentForm property from the usercontrol.
> 
> Kind regards.
> Johnny E. Jensen
> 
> 
> 
Date:Mon, 20 Aug 2007 13:32:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


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