VB.Net MDI Child form loading issue...
-
I am have an MDI application where I have several child forms that open under the parent MDI form. When the child form is opened in the MDI parent form it flickers. The child form has many controls on it which gets filled by querying from the database when the form loads. Also the child form has a grid displaying all the records from database. I am using dataset to fetch more than 2000 records from database and bind it to grid. I am having problem during loading of this form. I have tried using following to avoid form flickering: > DoubleBuffering technique > Using Datareader instead of Dataset for fetching records > Fetching records from database after form is loaded using Form_Shown() event and used BackgroundWorker to Asynchronously fetch records from database. Can anyone please help me out to avoid the form flickering issue. Thanks in advance !!!!!!!!
-
I am have an MDI application where I have several child forms that open under the parent MDI form. When the child form is opened in the MDI parent form it flickers. The child form has many controls on it which gets filled by querying from the database when the form loads. Also the child form has a grid displaying all the records from database. I am using dataset to fetch more than 2000 records from database and bind it to grid. I am having problem during loading of this form. I have tried using following to avoid form flickering: > DoubleBuffering technique > Using Datareader instead of Dataset for fetching records > Fetching records from database after form is loaded using Form_Shown() event and used BackgroundWorker to Asynchronously fetch records from database. Can anyone please help me out to avoid the form flickering issue. Thanks in advance !!!!!!!!
Double buffering, Suspend and Resume layouts are the option I can suggest. Clever fetching of data might help as well. "When" depends on the functionality of your application. Moreover, if you are using a grid, use Dataset. Using reader wont do any change. After said all this, wait for other replies. I am not sure if my reply is 100% correct.
Time is the best teacher; unfortunately it kills all of its students. जय हिंद
-
I am have an MDI application where I have several child forms that open under the parent MDI form. When the child form is opened in the MDI parent form it flickers. The child form has many controls on it which gets filled by querying from the database when the form loads. Also the child form has a grid displaying all the records from database. I am using dataset to fetch more than 2000 records from database and bind it to grid. I am having problem during loading of this form. I have tried using following to avoid form flickering: > DoubleBuffering technique > Using Datareader instead of Dataset for fetching records > Fetching records from database after form is loaded using Form_Shown() event and used BackgroundWorker to Asynchronously fetch records from database. Can anyone please help me out to avoid the form flickering issue. Thanks in advance !!!!!!!!
Hi! On which Event of Form are you fetching the data, Can we ;) know that? Thanks!
Develop2Program & Program2Develop
-
Hi! On which Event of Form are you fetching the data, Can we ;) know that? Thanks!
Develop2Program & Program2Develop