Computing.Net > Forums > Programming > frmUserform.Hide VB

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

frmUserform.Hide VB

Reply to Message Icon

Name: Nate
Date: April 25, 2003 at 05:44:35 Pacific
OS: 2000
CPU/Ram: enough
Comment:

I am currently have a problem with Hiding a Form. I have a textbox on one form and when you hit CTRL-F, it displays a smaller form. I would like to hide this smaller form when the ESC key is hit. I can't seem to get this to work. The code that I have in the textbox of the form is as follows:

If KeyAscii = 6 Then
frmSmallerForm.Show
End If
If KeyAscii = 27 Then
frmSmallerForm.Hide
End If



Sponsored Link
Ads by Google

Response Number 1
Name: hoang79vn
Date: April 25, 2003 at 17:01:22 Pacific
Reply:

Try this:
'Put this in textbox's code
If KeyAscii = 6 Then
frmSmallerForm.Show vbModal
End If


'Put this in frmSmallerForm's code
If KeyAscii = 27 Then
frmSmallerForm.Hide
End If


0

Response Number 2
Name: BelAnWel
Date: April 25, 2003 at 20:23:23 Pacific
Reply:


put this in ur textbox_keyup event
'vbKeyF -> F
'Shift=2 -> Ctrl
If KeyCode = vbKeyF And Shift = 2 Then
Load Form2
Form2.Show
End If

and put this in your form_keyup event
'vbKeyEscape=Esc
If KeyCode = vbKeyEscape Then
Me.Hide
End If


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: frmUserform.Hide VB

How do I hide a form on load vb.net www.computing.net/answers/programming/how-do-i-hide-a-form-on-load-vbnet/4597.html

Hide Another App's Process www.computing.net/answers/programming/hide-another-apps-process/14645.html

VB form icon not going away www.computing.net/answers/programming/vb-form-icon-not-going-away/11441.html