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. loading controls on a frame

loading controls on a frame

Scheduled Pinned Locked Moved Visual Basic
question
10 Posts 5 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.
  • N Offline
    N Offline
    No e
    wrote on last edited by
    #1

    I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e

    J T B 3 Replies Last reply
    0
    • N No e

      I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e

      J Offline
      J Offline
      Jon_Boy
      wrote on last edited by
      #2

      What control collection are you adding them to? The form or the frame (groupbox)? Wait, I'm not supposed to respond to your questions anymore since I'm overly harsh with you.

      "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

      L 1 Reply Last reply
      0
      • J Jon_Boy

        What control collection are you adding them to? The form or the frame (groupbox)? Wait, I'm not supposed to respond to your questions anymore since I'm overly harsh with you.

        "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Jon_Boy wrote:

        I'm not supposed to respond to your questions anymore since I'm overly harsh with you.

        Indeed. </sarcasm>

        Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

        N 1 Reply Last reply
        0
        • L Lost User

          Jon_Boy wrote:

          I'm not supposed to respond to your questions anymore since I'm overly harsh with you.

          Indeed. </sarcasm>

          Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

          N Offline
          N Offline
          No e
          wrote on last edited by
          #4

          Why are y'all so harsh on me? I am just asking for a little help?

          L J 2 Replies Last reply
          0
          • N No e

            Why are y'all so harsh on me? I am just asking for a little help?

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Personally I don't think anyone was harsh on you, I reviewed your past help and found that jon_boy wasn't harsh to you at all and your reply was unwarranted to him, so I merely am showing him some support here. You might want to review your attitude, if someone doesn't post you the exact answer you where looking for doesn't mean they didn't contribute their time and knowledge in an attempt to help you. Sometimes the best advice is a shift in design pattern or implementation, not just figuring out how you want to do the way you want to do it. Hope this helps you in your future posts here.

            Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

            J 1 Reply Last reply
            0
            • N No e

              Why are y'all so harsh on me? I am just asking for a little help?

              J Offline
              J Offline
              Jon_Boy
              wrote on last edited by
              #6

              Post the code that you're using to add controls the groupbox. Ensure that you're adding the controls to the control vs. adding them to the form.

              "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

              N 1 Reply Last reply
              0
              • L Lost User

                Personally I don't think anyone was harsh on you, I reviewed your past help and found that jon_boy wasn't harsh to you at all and your reply was unwarranted to him, so I merely am showing him some support here. You might want to review your attitude, if someone doesn't post you the exact answer you where looking for doesn't mean they didn't contribute their time and knowledge in an attempt to help you. Sometimes the best advice is a shift in design pattern or implementation, not just figuring out how you want to do the way you want to do it. Hope this helps you in your future posts here.

                Check out the CodeProject forum Guidelines[^] The original soapbox 1.0 is back![^]

                J Offline
                J Offline
                Jon_Boy
                wrote on last edited by
                #7

                Thanks E.

                "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

                1 Reply Last reply
                0
                • J Jon_Boy

                  Post the code that you're using to add controls the groupbox. Ensure that you're adding the controls to the control vs. adding them to the form.

                  "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

                  N Offline
                  N Offline
                  No e
                  wrote on last edited by
                  #8

                  Jon_boy, Your initial response was enough to get me where I needed to be, I did not realize I had to add them to the control vs. the form. .net is starting to grow on me at this point, you can do some neat things, and it makes sense the way most of them work.... once I get my head out of vb6 mode that is ;) Regarding previous posts I was bothered by the comment I was posting the same question, It was not the same question. If an apology is on order, I apologize. Either way, thanks for your help. No-e

                  1 Reply Last reply
                  0
                  • N No e

                    I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e

                    T Offline
                    T Offline
                    TheMrProgrammer
                    wrote on last edited by
                    #9

                    if ya have vb 2008 then do this yourcontrol.setbounds(the values must be of inside the frame) frame1.controls.add(yourControl) yourcontrol.show hope this helps cheers

                    TheMrProgrammer

                    1 Reply Last reply
                    0
                    • N No e

                      I have a frame on a form (actually the frame is on a tab of a tab control). On the frame is a control (command button) At run time I want to load more controls, but I want them to appear on the frame, they end up on the form (behind the frame) even bring to front does not work, any ideas? Loading and such works fine, they just show up behind everything on the form. No-e

                      B Offline
                      B Offline
                      Bahram Zarrin
                      wrote on last edited by
                      #10

                      Try adding the control to the frame if yor frame is frame1 then write: dim tmpctl as new windows.forms.button frame1.controls. add(tmpctl) tmpctl.visable=true bah10z

                      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