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. VB.Net MDI Child form loading issue...

VB.Net MDI Child form loading issue...

Scheduled Pinned Locked Moved Visual Basic
helpcsharpcssdatabase
4 Posts 3 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.
  • T Offline
    T Offline
    Tej Aj
    wrote on last edited by
    #1

    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 !!!!!!!!

    D N 2 Replies Last reply
    0
    • T Tej Aj

      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 !!!!!!!!

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      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. जय हिंद

      1 Reply Last reply
      0
      • T Tej Aj

        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 !!!!!!!!

        N Offline
        N Offline
        Navneet Hegde
        wrote on last edited by
        #3

        Hi! On which Event of Form are you fetching the data, Can we ;) know that? Thanks!

        Develop2Program & Program2Develop

        T 1 Reply Last reply
        0
        • N Navneet Hegde

          Hi! On which Event of Form are you fetching the data, Can we ;) know that? Thanks!

          Develop2Program & Program2Develop

          T Offline
          T Offline
          Tej Aj
          wrote on last edited by
          #4

          Thanks for replying, I am fetching data during form load event.

          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