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