Results 1 to 2 of 2

Thread: Smoother Transition Between Forms

  1. #1

    Thread Starter
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657
    I'm experiencing a minor annoyance when my app switches from one form to another. Let's say that Form1 is a "switchboard" screen where the user clicks a command button to choose what they want to do. Let's say Form2 is a form that will show them the contents of various tables and queries from a database (loaded into a combo box, list box, or tree view, etc.) - i.e., a lot of code and data movement takes place before the user sees the form. The code typically looks like this:
    Code:
    'Command Button Array in Form1:
    
    Private Sub cmdUserOption_Click(Index As Integer)
        
        Select Case Index
            Case 0
                Form2.Show vbModal
            Case 1
                Form3.Show vbModal
            etc.
    What I see is that, as Form2 loads, it starts to paint on the screen, but with "holes" in some of the controls (i.e., where the combo box will be, I'll see the Windows desktop or Form1 in the background) until the Form is fully loaded.

    Any suggestions on what I can do to make this transition look smoother? Thanks.

    "It's cold gin time again ..."

    Check out my website here.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    hmm.. I've never had that problem..

    what I usually do is the following if I want to display a new form:

    Code:
    Call Load(Form2)
    Call Form2.Show(vbModal)
    -Shickadance

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width