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. Resizing Form Having Many Controls

Resizing Form Having Many Controls

Scheduled Pinned Locked Moved Visual Basic
performancehelpquestion
4 Posts 4 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
    RAVI143
    wrote on last edited by
    #1

    I created a Form having controls more than 500(say) in a Panel all are having anchors set(incl. Panel). When I try to Resize the Form, It takes too much of time to get refreshed. The Form get dull and sluggy for few seconds. Is there anyway by which I kan write a code after resizing event of form gets over? Or boost up the speed of Resizing event. Anchoring is not the solution @ all :( . Moreover, when I give "Panel1.Controls.Clear", It takes 2 much time to Clear all the Controls from The Panel. Plz HELP........ RAVI.

    J N D 3 Replies Last reply
    0
    • R RAVI143

      I created a Form having controls more than 500(say) in a Panel all are having anchors set(incl. Panel). When I try to Resize the Form, It takes too much of time to get refreshed. The Form get dull and sluggy for few seconds. Is there anyway by which I kan write a code after resizing event of form gets over? Or boost up the speed of Resizing event. Anchoring is not the solution @ all :( . Moreover, when I give "Panel1.Controls.Clear", It takes 2 much time to Clear all the Controls from The Panel. Plz HELP........ RAVI.

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

      First of all, why would you want to have 500 controls on a form??? :rolleyes:

      "Blessed are the peacemakers, for they shall be called sons of God." - Jesus
      "You must be the change you wish to see in the world." - Mahatma Gandhi

      1 Reply Last reply
      0
      • R RAVI143

        I created a Form having controls more than 500(say) in a Panel all are having anchors set(incl. Panel). When I try to Resize the Form, It takes too much of time to get refreshed. The Form get dull and sluggy for few seconds. Is there anyway by which I kan write a code after resizing event of form gets over? Or boost up the speed of Resizing event. Anchoring is not the solution @ all :( . Moreover, when I give "Panel1.Controls.Clear", It takes 2 much time to Clear all the Controls from The Panel. Plz HELP........ RAVI.

        N Offline
        N Offline
        Nick Seng
        wrote on last edited by
        #3

        RAVI143 wrote: I created a Form having controls more than 500(say) in a Panel :wtf::wtf: How do you fit everthing inside?? My suggestion is, if it's not all visible at one time, try to add controls dynamically instead of having all the controls at the same time. Nick Seng (the programmer formerly known as Notorious SMC)


        God, I pity me! - Phoncible P. Bone

        1 Reply Last reply
        0
        • R RAVI143

          I created a Form having controls more than 500(say) in a Panel all are having anchors set(incl. Panel). When I try to Resize the Form, It takes too much of time to get refreshed. The Form get dull and sluggy for few seconds. Is there anyway by which I kan write a code after resizing event of form gets over? Or boost up the speed of Resizing event. Anchoring is not the solution @ all :( . Moreover, when I give "Panel1.Controls.Clear", It takes 2 much time to Clear all the Controls from The Panel. Plz HELP........ RAVI.

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

          500 CONTROLS?! :wtf: I'd look at that and close the window immediately and the entire app shortly thereafter and write it off as being way to convoluted. How about breaking some of that up into multiple forms. Coding for every one of these must be a real pain? Even to just get values! RageInTheMachine9532

          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