|
-
Apr 22nd, 2006, 04:24 PM
#1
Thread Starter
Junior Member
Phone keypad
Hi All,
Im in the middle of making a simple mobile phone in vb, but im stuck on a few things -
1, I have two frames, one has a number keypad and a display, and the other frame is for where I want to store numbers entered. I have a listbox. At the moment i am able to store numbers in the listbox, but i need to be able to add a number using the call button which also adds a name of "unnamed" in listbox. Also i am not letting the user add less than 3 numbers when call is pressed, the msgbox comes up saying enter a vaild number but it is still adding it to the listbox.
Private Sub cmdcall_Click()
If Len(lbldisplay) < 4 Then
MsgBox "Please enter a valid phone number"
cmdend.Enabled = True
End If
cmdend.Enabled = True
lstlist1.AddItem lbldisplay
End Sub
2, As you already know i have two frames, i want to be able to press a command button on the keypad which loads up the the phonebook, is this possible??
any help would be helpful thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|