|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Popup Menu
Hi
I'm trying to create a popup menu in VB. But when I run the code I get the following error: Compile Error: Arguement Not Optional - this error points to the code in red below. Any advice would be grateful P.s I have checked the names of everything and they seem to be ok. Private Sub frmMenu(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = vbRightButton Then Me.PopupMenu mnuPopupMenu, vbPopupMenuRightButton End If End Sub Private Sub mnuBlue_Click() frmMenu.BackColor = vbBlue End Sub Private Sub mnuExit_Click() End End Sub Private Sub mnuFirstName_Click() lblFirstName.Caption = "Donna" End Sub Private Sub mnuGreen_Click() frmMenu.BackColor = vbGreen End Sub Private Sub mnuPopupExit_Click() End End Sub Private Sub mnuRed_Click() frmMenu.BackColor = vbRed End Sub[COLOR=Red] Private Sub mnuSurname_Click() lblSurname.Caption = "Agnew" End Sub Last edited by dinivan : October 9th, 2006 at 05:33 PM. Reason: add come text |
|
#2
|
|||
|
|||
|
Did you get this resolved?
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Sorted
yeah i did thanks, was a stupid mistake wrong name.
thanks anyways |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Popup Menu |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|