Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Simple ESC Menu


farrel24
 Share

Recommended Posts

I do not know it was there or not.
but I was just fun to share. :cheesy:

sorry I did not put the photos because my connection is very slow

**Only Client Side**

All the way just in **frm.Main**

1.first of all you create and name the **Picture box** = **picExitOptions**
- Apperance = Flat
- Width = 313
- Height = 233
- Visible = False

2.and create a command button in the Picture box
- Name = **cmdResume**
- Caption = **Resume Playing**

3.further, and if you want to make Exit command
you create a command button
- Name = **cmdExit**
- Caption = **Exit Game**

4\. Insert this Code to **cmdResume**

```
Private Sub cmdResume_Click()
picExitOptions.Visible = False
End Sub
```
6\. Insert This code to **cmdExit**

```
Private Sub cmdExit_Click()
Call DestroyGame
End Sub
```
7\. and go to frm.Main-> View Code
and Search
```
    Select Case KeyCode
        Case vbKeyInsert
            If Player(MyIndex).Access > 0 Then
                frmAdminMenu.Visible = Not frmAdminMenu.Visible
            End If
    End Select
```
under that add

```
' Exit Options
If KeyCode = vbKeyEscape Then
        frmMain.picExitOptions.Visible = True
    End If
```
Next up, you can create a command button suit your taste! :cheesy:
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...