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 can a control always be on top

How can a control always be on top

Scheduled Pinned Locked Moved C#
tutorial
6 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.
  • S Offline
    S Offline
    sas9491
    wrote on last edited by
    #1

    I have a tab control and on that control I want to have a submit button displayed regardless of the tab I choose - the submit button is always on top in the client area. Please point me to documents / example of doing this. Steve

    R 1 Reply Last reply
    0
    • S sas9491

      I have a tab control and on that control I want to have a submit button displayed regardless of the tab I choose - the submit button is always on top in the client area. Please point me to documents / example of doing this. Steve

      R Offline
      R Offline
      Ryomin
      wrote on last edited by
      #2

      Maybe I am missing what you are saying but can't you just put the submit button outside of the tab control?

      Cheers Disgyza Programmer Analyst

      S 1 Reply Last reply
      0
      • R Ryomin

        Maybe I am missing what you are saying but can't you just put the submit button outside of the tab control?

        Cheers Disgyza Programmer Analyst

        S Offline
        S Offline
        sas9491
        wrote on last edited by
        #3

        I could do that. The situation is that I have multiple tab controls for different functions and the submit button is for the associated tab control. Maybe a better idea is to have a submit button on each tabs client area because that is the information that is to be processed. Is there a way to make the same button appear, drawn, on the tabs client area when the tab is selected?

        R 1 Reply Last reply
        0
        • S sas9491

          I could do that. The situation is that I have multiple tab controls for different functions and the submit button is for the associated tab control. Maybe a better idea is to have a submit button on each tabs client area because that is the information that is to be processed. Is there a way to make the same button appear, drawn, on the tabs client area when the tab is selected?

          R Offline
          R Offline
          Ryomin
          wrote on last edited by
          #4

          I don't think there is a way to draw the same control, but you can link the event handler of each submit button to one handler method.

          sas9491 wrote:

          the submit button is for the associated tab control

          Then why again does it need to be on top? -- modified at 15:24 Friday 11th August, 2006

          Cheers Disgyza Programmer Analyst

          S 1 Reply Last reply
          0
          • R Ryomin

            I don't think there is a way to draw the same control, but you can link the event handler of each submit button to one handler method.

            sas9491 wrote:

            the submit button is for the associated tab control

            Then why again does it need to be on top? -- modified at 15:24 Friday 11th August, 2006

            Cheers Disgyza Programmer Analyst

            S Offline
            S Offline
            sas9491
            wrote on last edited by
            #5

            Couple of thoughts: 1 to provide a consitant interface, 2 so I had one area in code that would respond to all of the tabs responses, and 3 to cut down on the amount of overhead used for controls. Linking the events sounds like a good alternate solution. Thanks -SS-

            E 1 Reply Last reply
            0
            • S sas9491

              Couple of thoughts: 1 to provide a consitant interface, 2 so I had one area in code that would respond to all of the tabs responses, and 3 to cut down on the amount of overhead used for controls. Linking the events sounds like a good alternate solution. Thanks -SS-

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #6

              Wrap the tab and the button in a panel or blank control. Then you can have one object with all of them.

              A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane

              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