how to get the multiple selection for controls if we use Ctrl + click
-
Hi CP Members, I am trying to create an application which looks like Visual basic Editor Designer . I am using pickbox from code project http://www.codeproject.com/KB/miscctrl/CSPickBoxSample1.aspx for my controls. It worked with single control now i tried to create a selections for multiple controls when ctrl +click . i am creating instances for the pickbox and i am changing the color of label controls to identify the multiple controls. But how can i delete the instance again after ctrl +click once again on the selected control .I am not able to identify the instance of the pickbox for new multiple controls . so i am not able to unwire it as possible . Those instances are appearing on the screen which is not exaclty like in Visual Studio 2005 . I am not able identify the instance of pickbox and not able to dispose the instance causing the selection to stay on top when i click the control. for the control which is clicked with ctrl key + click
Private Sub ShowNewSelection(ByVal sender As Object)
Try
Dim pickselect As New pickbox()
pickselect .SelectControl(sender, New EventArgs)
Catch ex As Exception
End Try
End Subon ctrl+ click on the control/s. or else just tell me how can i create the selections for mulitple controls if i press the control with CTRL + Click and to remove the created selection if i clcik the selected control again usign this Pickbox or any new way to achieve this . or link . Its urgent and important. I am trying to create exactly like in Visual Basic Designer 2005. I struck here . Any help ??
-
Hi CP Members, I am trying to create an application which looks like Visual basic Editor Designer . I am using pickbox from code project http://www.codeproject.com/KB/miscctrl/CSPickBoxSample1.aspx for my controls. It worked with single control now i tried to create a selections for multiple controls when ctrl +click . i am creating instances for the pickbox and i am changing the color of label controls to identify the multiple controls. But how can i delete the instance again after ctrl +click once again on the selected control .I am not able to identify the instance of the pickbox for new multiple controls . so i am not able to unwire it as possible . Those instances are appearing on the screen which is not exaclty like in Visual Studio 2005 . I am not able identify the instance of pickbox and not able to dispose the instance causing the selection to stay on top when i click the control. for the control which is clicked with ctrl key + click
Private Sub ShowNewSelection(ByVal sender As Object)
Try
Dim pickselect As New pickbox()
pickselect .SelectControl(sender, New EventArgs)
Catch ex As Exception
End Try
End Subon ctrl+ click on the control/s. or else just tell me how can i create the selections for mulitple controls if i press the control with CTRL + Click and to remove the created selection if i clcik the selected control again usign this Pickbox or any new way to achieve this . or link . Its urgent and important. I am trying to create exactly like in Visual Basic Designer 2005. I struck here . Any help ??
You best source of information is going to be the forum under that article. I haven't used his article at all and haven't looked at the code, but I would imagine that you would have to have some kind of container control that hosts the selectable controls and manages which are selected and which are not.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008