Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to get the multiple selection for controls if we use Ctrl + click

how to get the multiple selection for controls if we use Ctrl + click

Scheduled Pinned Locked Moved Visual Basic
questioncsharpvisual-studiocom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VB 8 0
    wrote on last edited by
    #1

    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 Sub

    on 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 ??

    D 1 Reply Last reply
    0
    • V VB 8 0

      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 Sub

      on 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 ??

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups