set control location on runtime
-
I want to set location of textboxes and labels at runtime. i get the coordinates from sql tables but when the location changes of 50 textboxes and labels the entire screen flickers and looks very bad. suggest me a way to change location without flickers. thanks.
-
I want to set location of textboxes and labels at runtime. i get the coordinates from sql tables but when the location changes of 50 textboxes and labels the entire screen flickers and looks very bad. suggest me a way to change location without flickers. thanks.
-
I want to set location of textboxes and labels at runtime. i get the coordinates from sql tables but when the location changes of 50 textboxes and labels the entire screen flickers and looks very bad. suggest me a way to change location without flickers. thanks.
you can use the form_onload event of the form and set there everything u need for the textboxes and for the labels. this event fires only once when the form is first loaded for the first time. hope it helps jamil abou khalil
-
I want to set location of textboxes and labels at runtime. i get the coordinates from sql tables but when the location changes of 50 textboxes and labels the entire screen flickers and looks very bad. suggest me a way to change location without flickers. thanks.
Maybe this?
theTopLevelForm.SuspendLayout();
// set the locations
theTopLevelForm.ResumeLayout();
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.." -- Mark McCormick
|| Fold With Us! || Pensieve || VG.Net ||