Results 1 to 12 of 12

Thread: hiding/showing form[***SOLVED***]

  1. #1

    Thread Starter
    Lively Member angel of dark's Avatar
    Join Date
    Dec 2002
    Location
    Leon guanajuato Mexico
    Posts
    74

    Question hiding/showing form[***SOLVED***]

    Hi I want to know if sombody know how to hide a form when the mouse isn't over the form, and when the mouse is over the form show the form

    thanks
    Last edited by angel of dark; May 6th, 2003 at 02:17 AM.
    al peor programador hasta el HELLO WORLD le marca error.....

    event to the worst programmer the Hello world marks him error..

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    One suggestion is set X,Y co-ordinates and if the mouse is moved outside those co-ordinates the form hides and when the mouse moves back into the co-ordinates the form shows. Sounds good in theory but not sure how to put it into action......Something to work with.

  3. #3

    Thread Starter
    Lively Member angel of dark's Avatar
    Join Date
    Dec 2002
    Location
    Leon guanajuato Mexico
    Posts
    74
    I try to do it, but It doesn't works, here is what I did, could you tell where is the mistake
    Attached Files Attached Files
    al peor programador hasta el HELLO WORLD le marca error.....

    event to the worst programmer the Hello world marks him error..

  4. #4
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    I figure that to be a bit complicated, since a form that is hidden does not recieve any mouse_events. So you need other forms to take the event that will show your form again. But those othr forms could be outside you'Re application.

    Could you give some more details, maybe there is another way of doing what you really want to do.
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  5. #5

    Thread Starter
    Lively Member angel of dark's Avatar
    Join Date
    Dec 2002
    Location
    Leon guanajuato Mexico
    Posts
    74
    I want to do an Autohiding window, like the task bar, when you put the mouse closer the task bar you can see it, but if you take out the mouse, the task bar is hide, in mi window or form I will have bottons that will restart the computer or log off an user
    al peor programador hasta el HELLO WORLD le marca error.....

    event to the worst programmer the Hello world marks him error..

  6. #6
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    Whe you move the mouse over the form you've got it to move up towards the top of the screen as per your code below. As of a way to get waht you want, i'm not sure. Why do you want to hide a form when the mouse is moved over it??

    Code:
    Me.Top = (Me.Top - 10)

  7. #7

    Thread Starter
    Lively Member angel of dark's Avatar
    Join Date
    Dec 2002
    Location
    Leon guanajuato Mexico
    Posts
    74
    Well I do that to change the position of the form, It mus be like 500 to hide the form complety but I used 10 to see if the function was working
    al peor programador hasta el HELLO WORLD le marca error.....

    event to the worst programmer the Hello world marks him error..

  8. #8
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    Gilberto... I am sorry... Here it is as I promised.

    Enjoy... Cheers and Good Luck!
    Attached Files Attached Files
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  9. #9
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    Gilberto, tell me if it is what you needed so I can go to sleep... I did not forget about you... I was working on it.

    Sorry!
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  10. #10
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    I am going to sleep... Good luck.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  11. #11

    Thread Starter
    Lively Member angel of dark's Avatar
    Join Date
    Dec 2002
    Location
    Leon guanajuato Mexico
    Posts
    74

    Red face

    Thanks Tec-Nico jejej Jeorge thats great, I was finishing the other part of the project, with this I will finish It satisfactory

    Thanks everybody
    al peor programador hasta el HELLO WORLD le marca error.....

    event to the worst programmer the Hello world marks him error..

  12. #12
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192
    For all who downloaded the attachment of the last post... Well, it works but when you go over a control (A button, a textbox, etc) the form will hide too... So I solved this in the following attachment.

    Cheers!
    Attached Files Attached Files
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

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