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. Design Optimization

Design Optimization

Scheduled Pinned Locked Moved C#
performancedesignalgorithmstutorialquestion
8 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.
  • S Offline
    S Offline
    sreejith ss nair
    wrote on last edited by
    #1

    hi, This question is regards to code optimization.I have near to 100-150 labels and same number of textboxes in a my main form.And this form also contain few other controls. Say panel, combo box etc. The data fetching is also dynamic based on users requirement. I check the maximum time with possible chances for data request(range).Performance is good. So i am not worried about data fetching. My problems is with this much controls and their dynamic sub instances.I found my application becoming too very slow when this much control are drawn in the main form(I mean when form is loaded on the first time).I already told that, the above mentioned number of control is only an example. Some time it may decrease or increase. If i go for some optimization here in my design part then it won't serve users purpose. Clearly i am into trouble. What i can optimise is my code not design. Is there any way to hadle this situation. Sreejith Nair

    C N H 3 Replies Last reply
    0
    • S sreejith ss nair

      hi, This question is regards to code optimization.I have near to 100-150 labels and same number of textboxes in a my main form.And this form also contain few other controls. Say panel, combo box etc. The data fetching is also dynamic based on users requirement. I check the maximum time with possible chances for data request(range).Performance is good. So i am not worried about data fetching. My problems is with this much controls and their dynamic sub instances.I found my application becoming too very slow when this much control are drawn in the main form(I mean when form is loaded on the first time).I already told that, the above mentioned number of control is only an example. Some time it may decrease or increase. If i go for some optimization here in my design part then it won't serve users purpose. Clearly i am into trouble. What i can optimise is my code not design. Is there any way to hadle this situation. Sreejith Nair

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      sreejith ss nair wrote: I have near to 100-150 labels and same number of textboxes in a my main form.And this form also contain few other controls. Say panel, combo box etc. That sounds like a very cluttered form. It sounds to me like you should be thinking of redesigning that so that there are less controls, by moving some to subordinate forms of some kind. sreejith ss nair wrote: If i go for some optimization here in my design part then it won't serve users purpose. Clearly i am into trouble. What i can optimise is my code not design. You should think very carefully about your user interface, because, even if you do improve the speed, your form, with that many controls, is likely to overwhelm your users.


      Do you want to know more?


      Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

      S 1 Reply Last reply
      0
      • S sreejith ss nair

        hi, This question is regards to code optimization.I have near to 100-150 labels and same number of textboxes in a my main form.And this form also contain few other controls. Say panel, combo box etc. The data fetching is also dynamic based on users requirement. I check the maximum time with possible chances for data request(range).Performance is good. So i am not worried about data fetching. My problems is with this much controls and their dynamic sub instances.I found my application becoming too very slow when this much control are drawn in the main form(I mean when form is loaded on the first time).I already told that, the above mentioned number of control is only an example. Some time it may decrease or increase. If i go for some optimization here in my design part then it won't serve users purpose. Clearly i am into trouble. What i can optimise is my code not design. Is there any way to hadle this situation. Sreejith Nair

        N Offline
        N Offline
        Nnamdi Onyeyiri
        wrote on last edited by
        #3

        If its just labels and text boxes, maybe you could use a grid control to display the information.


        website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri

        S 1 Reply Last reply
        0
        • C Colin Angus Mackay

          sreejith ss nair wrote: I have near to 100-150 labels and same number of textboxes in a my main form.And this form also contain few other controls. Say panel, combo box etc. That sounds like a very cluttered form. It sounds to me like you should be thinking of redesigning that so that there are less controls, by moving some to subordinate forms of some kind. sreejith ss nair wrote: If i go for some optimization here in my design part then it won't serve users purpose. Clearly i am into trouble. What i can optimise is my code not design. You should think very carefully about your user interface, because, even if you do improve the speed, your form, with that many controls, is likely to overwhelm your users.


          Do you want to know more?


          Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

          S Offline
          S Offline
          sreejith ss nair
          wrote on last edited by
          #4

          All these controls are very urgent for me. Say these controls are small in size and they are used to show different date of year. So user want to see all date values at a time. So i can't go for control customization Sreejith Nair

          1 Reply Last reply
          0
          • N Nnamdi Onyeyiri

            If its just labels and text boxes, maybe you could use a grid control to display the information.


            website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri

            S Offline
            S Offline
            sreejith ss nair
            wrote on last edited by
            #5

            All these controls are very urgent for me. Say these controls are small in size and they are used to show different date of year. So user want to see all date values at a time. So i can't go for control customization Sreejith Nair

            1 Reply Last reply
            0
            • S sreejith ss nair

              hi, This question is regards to code optimization.I have near to 100-150 labels and same number of textboxes in a my main form.And this form also contain few other controls. Say panel, combo box etc. The data fetching is also dynamic based on users requirement. I check the maximum time with possible chances for data request(range).Performance is good. So i am not worried about data fetching. My problems is with this much controls and their dynamic sub instances.I found my application becoming too very slow when this much control are drawn in the main form(I mean when form is loaded on the first time).I already told that, the above mentioned number of control is only an example. Some time it may decrease or increase. If i go for some optimization here in my design part then it won't serve users purpose. Clearly i am into trouble. What i can optimise is my code not design. Is there any way to hadle this situation. Sreejith Nair

              H Offline
              H Offline
              hatim_ali
              wrote on last edited by
              #6

              1. Even if the controls are important you can create a wizard sort of User Interface by logically breaking up controls on several screens. 2. You can either create controls at runtime at some instance and then creating adding controls to your form dynamically. This will speed up your form initialization because you are not creating all 100-150 controls at form load. hope it helps.... best regards, Hatim Ali.

              S 1 Reply Last reply
              0
              • H hatim_ali

                1. Even if the controls are important you can create a wizard sort of User Interface by logically breaking up controls on several screens. 2. You can either create controls at runtime at some instance and then creating adding controls to your form dynamically. This will speed up your form initialization because you are not creating all 100-150 controls at form load. hope it helps.... best regards, Hatim Ali.

                S Offline
                S Offline
                sreejith ss nair
                wrote on last edited by
                #7

                hi, Defanitly it won't help me. My interface, that is the interface that i am going to show is the final out for the user. I can't make any sort of updation or customiztion in my controls list or my interface. This is the way it is working. I have a small doubt to ask you. Suppose if you want to show few date values for two months. What you will do ?. Here you need to know one more thing that, you need to show all date value at a time. anyhow thanks for sharing my this problem Sreejith Nair

                D 1 Reply Last reply
                0
                • S sreejith ss nair

                  hi, Defanitly it won't help me. My interface, that is the interface that i am going to show is the final out for the user. I can't make any sort of updation or customiztion in my controls list or my interface. This is the way it is working. I have a small doubt to ask you. Suppose if you want to show few date values for two months. What you will do ?. Here you need to know one more thing that, you need to show all date value at a time. anyhow thanks for sharing my this problem Sreejith Nair

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

                  You have a choice. Either redesign your interface so it is more organized, even if it means duplicating information on sub-forms, or leave it as is. There's nothing else you can do about this. You simply have way too many controls on a single form. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

                  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