![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |||
| [SOLVED] I need help with programing with Visual Basic?? I need to write a program that -asks if you use a cell phone -If the asnwer is yes, program display message telling you not to use cell phone in restaurants -If the aswer is no, program displays message "Thank you" I really need HELP!! |
| |
| |||
| on the form, put three controls, a list, a label, and button. the items that the list contains should be Yes and No, this is where the user selects his answer. The label says your question. and the button says Submit. now, give the following names to the controls: the submit button: cmdSubmit The Yes and No List is: lstAnswer Double click the Submit button and wirte the following code: if lstAnswer.text = "Yes" then msgbox "Do not use cellphone at the resturant" Else msgbox "Thank you" End If |
![]() |
| Thread Tools | |
| Display Modes | |
| |