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. C#
  4. how to place custom controls on top of the other controls

how to place custom controls on top of the other controls

Scheduled Pinned Locked Moved C#
questionhelptutorial
4 Posts 3 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.
  • O Offline
    O Offline
    Oskars
    wrote on last edited by
    #1

    Ok I`ll try to explain my problem :). ComboBox, places his choice list on top of the other controls, including other panels and so on. The question is - how can I make other custom control maded by myself wich is added to some panel [mPanel.Controls.Add(MyControl);] - to show up on top of the other controls and other panels (like ComboBox choice list), but without separate it from [mPanel.Controls]. Can control actually act like ComboBox list on top of other controls?

    G 1 Reply Last reply
    0
    • O Oskars

      Ok I`ll try to explain my problem :). ComboBox, places his choice list on top of the other controls, including other panels and so on. The question is - how can I make other custom control maded by myself wich is added to some panel [mPanel.Controls.Add(MyControl);] - to show up on top of the other controls and other panels (like ComboBox choice list), but without separate it from [mPanel.Controls]. Can control actually act like ComboBox list on top of other controls?

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      I believe a ComboBox is rendered by the IE browser as a "window" control (as in a Windows Forms' control). Thus, the ComboBox will always appear over everything else. I don't know of any attractive solutions, however.

      O 1 Reply Last reply
      0
      • G George L Jackson

        I believe a ComboBox is rendered by the IE browser as a "window" control (as in a Windows Forms' control). Thus, the ComboBox will always appear over everything else. I don't know of any attractive solutions, however.

        O Offline
        O Offline
        Oskars
        wrote on last edited by
        #3

        Actually I am talking about C# windows form. I have a grid in one panel, other grid in other panel. One of the columns contains comboboxes, ComboBox list, of course appears over the second grid, I want my custom control wich contains some textboxes and other crap show up in similar way. Way I am using - is separate form without close and minimize buttons, but it is not Control added to grid cell, it is separate windows form and it is not good solution, because it shows up in a taskbar and acts like form, but I want to attach it to the grid cell as a normal control :(

        M 1 Reply Last reply
        0
        • O Oskars

          Actually I am talking about C# windows form. I have a grid in one panel, other grid in other panel. One of the columns contains comboboxes, ComboBox list, of course appears over the second grid, I want my custom control wich contains some textboxes and other crap show up in similar way. Way I am using - is separate form without close and minimize buttons, but it is not Control added to grid cell, it is separate windows form and it is not good solution, because it shows up in a taskbar and acts like form, but I want to attach it to the grid cell as a normal control :(

          M Offline
          M Offline
          microsoc
          wrote on last edited by
          #4

          hi Oskars! :) you can put you custom control on a floating window. this window will be on top of all window, just like the list of the combobox. try to look at this[^] to have an idea how to make a floating window. hope that helps! :) microsoc :cool:

          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