Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,454 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,961 people online right now. Registration is fast and FREE... Join Now!




give me example program using option button, and check

 
Reply to this topicStart new topic

give me example program using option button, and check

jomar2010
30 Jul, 2008 - 03:17 AM
Post #1

New D.I.C Head
*

Joined: 11 Jul, 2008
Posts: 5

give me example program using option button, and check!!
for example i use option button and check box
and the output will display in msgbox rush can anyone gave me an example?
User is offlineProfile CardPM
+Quote Post

Zhalix
RE: Give Me Example Program Using Option Button, And Check
30 Jul, 2008 - 03:44 AM
Post #2

D.I.C Head
**

Joined: 7 May, 2008
Posts: 218



Thanked: 9 times
My Contributions
Really all you need to know about is the value property of the checkbox and the option button.

Checkbox has three possible values:
0 = Unchecked
1 = Checked
2 = Grey

Option Button has two possible values:
True
False


All you need to do to work with these controls is check what their value is and act on it depending on that.

CODE
Private Sub Command1_Click()

    If Check1.Value = 1 Then
        MsgBox "Checked"
    Else
        MsgBox "Unchecked"
    End if

End Sub


This post has been edited by Zhalix: 30 Jul, 2008 - 03:44 AM
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Give Me Example Program Using Option Button, And Check
30 Jul, 2008 - 07:18 AM
Post #3

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,993



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:19PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month