Results 1 to 2 of 2

Thread: form lostfocus?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539

    Unhappy

    this is somewhat complicated for me

    i have 2 forms
    form1, form2

    on form one
    if i RIGHT click on the mouse i want form2 to show
    no problems there

    when form2 shows..
    there is buncha stuff on there.. clickable times..
    no problems there

    when form2 shows i want the mouse to be over that form somewhere
    and if the user moves the mouse out of that form(without selecting an item)
    then i want form2 to unload


    if anyone has any other suggestions, i deas
    greatly appreciated
    thanks

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    put a global variable in a module, call it F2Close and make it Boolean. Then in the code which loads Form2, set it to true, then (in the code of Form1) put:

    Code:
    Private Sub Form_MouseMove('All the stuff here which I can't remember)
    If F2Close Then
        Form2.Hide
        F2Close = False
    End If
    End Sub
    I hope this works,

    Me.

    Courgettes.

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