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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. C# Load a form into a Panel?

C# Load a form into a Panel?

Scheduled Pinned Locked Moved C#
csharpquestion
7 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.
  • R Offline
    R Offline
    Ronni Marker
    wrote on last edited by
    #1

    hello guys, I was wondering if its possible to load Form into a Panel that is located on a main Form?? I am in the process of creating an application that have multiple views that for now have 20+ Panels. But its getting out of hand as its impossible to get a view of them all. Therefor i was wondering if its posible to create forms to be placed into another form - either inside a panel or some other means? any sugestions and code examples would be welcome. :):)

    H 1 Reply Last reply
    0
    • R Ronni Marker

      hello guys, I was wondering if its possible to load Form into a Panel that is located on a main Form?? I am in the process of creating an application that have multiple views that for now have 20+ Panels. But its getting out of hand as its impossible to get a view of them all. Therefor i was wondering if its posible to create forms to be placed into another form - either inside a panel or some other means? any sugestions and code examples would be welcome. :):)

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      No, it's not possible. Use MDI instead.

      Microsoft MVP, Visual C# My Articles

      J R 2 Replies Last reply
      0
      • H Heath Stewart

        No, it's not possible. Use MDI instead.

        Microsoft MVP, Visual C# My Articles

        J Offline
        J Offline
        Jeremy Kimball
        wrote on last edited by
        #3

        Hey Heath, Not sure if you check out the ASP.NET board at all, but I'd really appreciate your take on a question I threw up there, considering you've basically committed the .NET framework to memory and all... :)


        Jeremy Kimball I have traveled the gutters, lo these many days, with no signs of life. Well met. -brianwelsch

        H 1 Reply Last reply
        0
        • J Jeremy Kimball

          Hey Heath, Not sure if you check out the ASP.NET board at all, but I'd really appreciate your take on a question I threw up there, considering you've basically committed the .NET framework to memory and all... :)


          Jeremy Kimball I have traveled the gutters, lo these many days, with no signs of life. Well met. -brianwelsch

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          I try to steer clear - there's far too many questions about client-side stuff, and the majority of people just don't understand what ASP.NET is. I typically spend more time explaining why you can't popup a window using pure ASP.NET than anything. I'll check it out, though.

          Microsoft MVP, Visual C# My Articles

          J 1 Reply Last reply
          0
          • H Heath Stewart

            I try to steer clear - there's far too many questions about client-side stuff, and the majority of people just don't understand what ASP.NET is. I typically spend more time explaining why you can't popup a window using pure ASP.NET than anything. I'll check it out, though.

            Microsoft MVP, Visual C# My Articles

            J Offline
            J Offline
            Jeremy Kimball
            wrote on last edited by
            #5

            Heath Stewart wrote: I typically spend more time explaining why you can't popup a window using pure ASP.NET than anything. :laugh: You've got to be kidding me... Heath Stewart wrote: I'll check it out, though. And that is why "You Da Man"...thanks


            Jeremy Kimball I have traveled the gutters, lo these many days, with no signs of life. Well met. -brianwelsch

            1 Reply Last reply
            0
            • H Heath Stewart

              No, it's not possible. Use MDI instead.

              Microsoft MVP, Visual C# My Articles

              R Offline
              R Offline
              Ronni Marker
              wrote on last edited by
              #6

              Urgh. Ok thanks for the fast reply. Btw. is there anyway using MDI forms to remove the borders, and then show the form in full size so its not possible to see that its MDI? I have only played around with alittle so its only a thought before i look closely at it. cheers

              H 1 Reply Last reply
              0
              • R Ronni Marker

                Urgh. Ok thanks for the fast reply. Btw. is there anyway using MDI forms to remove the borders, and then show the form in full size so its not possible to see that its MDI? I have only played around with alittle so its only a thought before i look closely at it. cheers

                H Offline
                H Offline
                Heath Stewart
                wrote on last edited by
                #7

                Not easily, no. For that you really have to understand the Windows messaging system, styles, P/Invoke in .NET to use all that, and dialog resources in Win32. I would suggest re-designing your controls. You could, for example, use a UserControl or some other Control derivative and just dock it (using DockStyle.Fill). If the UI and implementation is already in a form, then abstract them to a UserCotrol (or something) and use that in both forms.

                Microsoft MVP, Visual C# My Articles

                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