Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / May 2005

Tip: Looking for answers? Try searching our database.

how to access the control assembly at design time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
moital - 03 May 2005 13:29 GMT
how to access the control assembly at design time,

I am using the [Editor] attribute to create a custom drop down list form,
with the list of the refernced assemblies of the control.
how do I access those assembly names at design time ?
 
Signature

moital

joeycalisay - 04 May 2005 03:03 GMT
Assembly.GetReferencedAssemblies

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> how to access the control assembly at design time,
>
> I am using the [Editor] attribute to create a custom drop down list form,
> with the list of the refernced assemblies of the control.
> how do I access those assembly names at design time ?
moital - 04 May 2005 06:57 GMT
this method will return only the assemblies referenced by the assembly of
the control, while I need the ones referenced by the top most project, the
winform assembly

thanks

> Assembly.GetReferencedAssemblies
>
[quoted text clipped - 3 lines]
> > with the list of the refernced assemblies of the control.
> > how do I access those assembly names at design time ?
joeycalisay - 04 May 2005 07:16 GMT
i don't get your follow up question.  you can do it recursively...

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> this method will return only the assemblies referenced by the assembly of
> the control, while I need the ones referenced by the top most project, the
[quoted text clipped - 9 lines]
> > > with the list of the refernced assemblies of the control.
> > > how do I access those assembly names at design time ?
"Jeffrey Tan[MSFT]" - 06 May 2005 06:31 GMT
Hi moitmsdn,

Thanks for your post!!  

Based on my understanding, you want to access the current project's
assembly at design-time.

I think VS.net design-time classes did not expose this function. We should
first use VS.net IDE automation to get the VS.net project's directory
absolute path information, then we can add a relative
"bin/debug/assemblyname" to this absolute path to get the control assembly
full path.
We may loop through the current project and get the current project's  
ProjectItem object, then use ProjectItem.FullPath property to get the  
directory path information.  
 
To get more information about how to automate VS.net IDE in design-time  
code, please refer to the article below:  
"Reading the ASP.NET Web.config file Design Time"  
http://blogs.madtechnology.net/chris/archive/2004/07/20/432.aspx  

Hope this helps  
==================================================  
Thank you for your patience and cooperation. If you have any questions or  
concerns, please feel free to post it in the group. I am standing by to be  
of assistance.  

Best regards,  
Jeffrey Tan  
Microsoft Online Partner Support  
Get Secure! - www.microsoft.com/security 
This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 10 May 2005 09:19 GMT
Hi moital,

Does my reply make sense to you? Do you still need help on this issue?
Please feel free to feedback. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.