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 / Visual Studio.NET / Extensibility / February 2005

Tip: Looking for answers? Try searching our database.

What Control is the name of the control selected in the Form Desig

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karim M. Garza - 16 Feb 2005 16:05 GMT
Hi,

If a user is in the Windows Form designer  and he/she selects a control, How
can I know the name of the control he/she selected from within my AddIn?

I want to do some changes to the code depending on the control he/she
selects in the form designer.

Any help woul be apreciated.

Thanks in advanced!

Karim
Carlos J. Quintero [.NET MVP] - 16 Feb 2005 16:32 GMT
Imports System.ComponentModel.Design

Dim objISelectionService As ISelectionService

Dim objIServiceProvider As IServiceProvider

objIServiceProvider = CType(objIDesignerHost, IServiceProvider)

objISelectionService =
CType(objIServiceProvider.GetService(GetType(ISelectionService)),
ISelectionService)

objISelectionService.XXXXX

Signature

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

> Hi,
>
[quoted text clipped - 10 lines]
>
> Karim

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.