Jan 10th, 2007, 02:32 PM
#1
Thread Starter
Lively Member
option boxes in a frame
I have a game, and i have two option boxes in a frame. I need to do a check to see that one of them has been checked.
How would i go about this?
Jan 10th, 2007, 02:37 PM
#2
Re: option boxes in a frame
VB Code:
If Option1.Value = -1 Then
'Selected
ElseIf Option2.Value = -1 Then
'Selected
Else
'No selection made
End If
Last edited by RobDog888; Jan 10th, 2007 at 02:48 PM .
Reason: forgot the negative sign
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 10th, 2007, 02:40 PM
#3
Thread Starter
Lively Member
Re: option boxes in a frame
These are my two option boxes in the frame
If Option1.Value = vbchecked Then
Green = Green + 1
End If
If Option10.Value = vbChecked Then
Yellow = Yellow + 1
End If
I cant see how that could would go in there????
Sorry
Jan 10th, 2007, 02:49 PM
#4
Re: option boxes in a frame
In my code a True is the same as a -1. I forgot the negative sign. Updated my post already.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 10th, 2007, 03:13 PM
#5
Thread Starter
Lively Member
Re: option boxes in a frame
If Option1.Value = vbchecked Then
Green = Green + 1
End If
If Option10.Value = vbChecked Then
Yellow = Yellow + 1
End If
they are the option boxes in one frame. the words yellow and green are variables. Where would your code go?
L
Jan 10th, 2007, 03:16 PM
#6
Re: option boxes in a frame
I guess your loosing me as your code is basically the same thing. Does it not work for you?
What event do you need to check for th option values? A button click, checking of the option button? etc.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 10th, 2007, 03:19 PM
#7
Thread Starter
Lively Member
Re: option boxes in a frame
ah i see where im confusing you! haha
I have 18 frames all with 2 option buttons (36 option buttons).
before the user can exit this form via a button. I need to make sure that 18 boxes have been selected.
1 option button per frame
how do i do this?
Jan 10th, 2007, 03:26 PM
#8
Re: option boxes in a frame
Easy way is to just do an If Then ElseIf block on each pair and keep track with a boolean variable. Set it to True if there is a pair that is missing a selection.
VB Code:
Private Sub cmdClose_Click()
Dim bMissingSelection As Boolean
bMissingSelection = False
If Option1.Value = vbChecked Or Option2.Value = vbChecked Then
'One selection is present
Else
bMissingSelection = True
End If
If Option3.Value = vbChecked Or Option4.Value = vbChecked Then
'One selection is present
Else
bMissingSelection = True
End If
'...
If bMissingSelection = True Then
MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
End If
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 10th, 2007, 03:36 PM
#9
Thread Starter
Lively Member
Re: option boxes in a frame
But
if option1 is checked then i need green = green + 1
how can i code that in
Jan 10th, 2007, 07:10 PM
#10
Re: option boxes in a frame
Just add the line of code to the option(s) where it should be increased.
VB Code:
Private Sub cmdClose_Click()
Dim bMissingSelection As Boolean
bMissingSelection = False
If Option1.Value = vbChecked Then
'One selection is present
green = green + 1
ElseIf Option2.Value = vbChecked Then
'One selection is present
green = green + 1
Else
bMissingSelection = True
End If
If Option3.Value = vbChecked Or Option4.Value = vbChecked Then
'One selection is present
Else
bMissingSelection = True
End If
'...
If bMissingSelection = True Then
MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
End If
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 10th, 2007, 09:51 PM
#11
Re: option boxes in a frame
Don't use VBChecked, it's for Checkboxes not OptionButtons. vbChecked = 1, what you need is -1 (-1 = True) like Rob did in post #2, so it should be..
VB Code:
If Option1.Value = True Then
'Or
If Option1.Value Then
Jan 10th, 2007, 11:39 PM
#12
Re: option boxes in a frame
Good catch jcis! I started out good and its been a while since I really used VB 6 so I assumed it was correct for the option button to have vbChecked when that is just for the checkbox control.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 02:55 AM
#13
Re: option boxes in a frame
VB Code:
Dim Option1_Index as Integer
Sub Option1_Click(Index as Integer)
Option1_Index=Index
End Sub
You can easily keep track this way for each option pair.
BTW: You should default one selection in each pair.
Last edited by randem; Jan 11th, 2007 at 02:58 AM .
Jan 11th, 2007, 05:12 AM
#14
Thread Starter
Lively Member
Re: option boxes in a frame
Private Sub cmdClose_Click()
Dim bMissingSelection As Boolean
bMissingSelection = False
If Option1.Value = vbChecked Then
'One selection is present
green = green + 1
ElseIf Option2.Value = vbChecked Then
'One selection is present
green = green + 1
Else
bMissingSelection = True
End If
If Option3.Value = vbChecked Or Option4.Value = vbChecked Then
'One selection is present
Else
bMissingSelection = True
End If
'...
If bMissingSelection = True Then
MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
End If
End Sub
but i need option1 to add to green and option10 to add to yellow.
but only one can be selected
how do i do this?
Jan 11th, 2007, 05:21 AM
#15
Re: option boxes in a frame
If eash of the two pairs can or are needed to be selected at the same time then you should switch over to checkboxes as option buttons only allow one of the group to be selected at a single time.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 05:23 AM
#16
Thread Starter
Lively Member
Re: option boxes in a frame
what?
can i have help with the coding?
im really lost now
Jan 11th, 2007, 05:24 AM
#17
Re: option boxes in a frame
Do you need option1 and option10 to both be selected at the same time? If so then they dont work that way. This is why I suggested switching over to use heckbox controls instead.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 11:50 AM
#18
Thread Starter
Lively Member
Re: option boxes in a frame
no
i need either option1 or option10 selected.
If option1 is selected then i need green = green +1
If option10 is selected then i need yellow = yellow + 1
Jan 11th, 2007, 12:46 PM
#19
Re: option boxes in a frame
VB Code:
Private Sub cmdClose_Click()
Dim bMissingSelection As Boolean
bMissingSelection = False
If Option1.Value = -1 Then
'One selection is present
green = green + 1
ElseIf Option10.Value = -1 Then
'One selection is present
yellow = yellow + 1
Else
bMissingSelection = True
End If
'...
If bMissingSelection = True Then
MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
End If
End Sub
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 12:58 PM
#20
Thread Starter
Lively Member
Re: option boxes in a frame
how do you clear everything you do, because when i tested it out it says the msgbox and when you click ok. it saves the points and goes back to the screen. How do i get around this?
Jan 11th, 2007, 01:01 PM
#21
Re: option boxes in a frame
In what event do you have the code? What do you mean clear everything ?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 01:50 PM
#22
Thread Starter
Lively Member
Re: option boxes in a frame
ok
I have this code in the submit button
When the user clicks on the OK button of the msgbox "Not all selections have been made!" it goes back to the menu screen and also it adds on to the variables.
I want it to clear the screen so the user can just start again.also i want to take the points off of the variables. I hope this makes sense.
Jan 11th, 2007, 01:57 PM
#23
Re: option boxes in a frame
Then you will have to write a procedure to loop through all your controls needing resetting and resetting then to whatever status you desire.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 01:59 PM
#24
Thread Starter
Lively Member
Re: option boxes in a frame
i dont know how to do that
Jan 11th, 2007, 02:04 PM
#25
Re: option boxes in a frame
VB Code:
Private Sub ResetMe()
'Go through your controls needing resetting
Option1.Value = 0
Option10.Value = 0
'... etc
End Sub
Then after the MsgBox from your other procedure you can just call the sub.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 02:34 PM
#26
Thread Starter
Lively Member
Re: option boxes in a frame
Its not working
this is a snip of the code
If Option27.Value = -1 Then
'One selection is present
Green = Green + 1
ElseIf Option36.Value = -1 Then
'One selection is present
Yellow = Yellow + 1
Else
bMissingSelectionSelection = True
End If
If bMissingSelection = True Then
MsgBox "Not all selections have been made!", vbOKOnly + vbExclamation
Call Reset
End If
If bMissingSelection = False Then
frmMainMenu.cmdcribbage.Visible = False
frmMainMenu.Show
Me.Hide
End If
End Sub
Reset is that option1 = 0
i put it in the module and then it calls it
Its not finding any thing wrong with it, its not finding the errors!
Whats wrong with it?
Jan 11th, 2007, 02:37 PM
#27
Re: option boxes in a frame
It would be more helpful to post your project...
Jan 11th, 2007, 02:40 PM
#28
Re: option boxes in a frame
Am Option button will generate a -1 for True and a 0 for False. Step through your code and see where the code execution goes. I see this is for Option27 and Option36 now?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 02:41 PM
#29
Thread Starter
Lively Member
Re: option boxes in a frame
well they are all the same, cause there are 18 pairs on option boxes. look want me to upload it for you too see?
Jan 11th, 2007, 02:42 PM
#30
Re: option boxes in a frame
Yes, please. They are all the same in what respect?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 02:44 PM
#31
Thread Starter
Lively Member
Re: option boxes in a frame
here it is
has to be rar as its to big to be zipped
Attached Files
Jan 11th, 2007, 02:46 PM
#32
Re: option boxes in a frame
I dont have winrar so I can not view it. Why is it so large?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 02:48 PM
#33
Thread Starter
Lively Member
Re: option boxes in a frame
you got msn?
if so add me
[email protected]
and then i can send it to you over there
Jan 11th, 2007, 03:15 PM
#34
Re: option boxes in a frame
A few things...
Why are your frx files so large?
What form are you having trouble with? (frmscribbage)
What exactly do you want it to do?
You should start each module, form and class with Option Explicit.
It won't start for things are missing.
Jan 11th, 2007, 03:22 PM
#35
Re: option boxes in a frame
One thing, for each pair that you only want one selected. Place the pair on a picturebox or frame. Picturebox if you may use the manifest file later. In that way only one will allowed to be selected.
Better names for each option pair would be helpful also. Currently you have an option array that encompasses all options.
Jan 11th, 2007, 03:32 PM
#36
Re: option boxes in a frame
No MSN but sounds like Randem has access to the code. Sounds like you option buttons are not actually grouped as child objects of your frames (if you have frames). If not then cut and paste the option buttons into repesctive frames to isolate the exclusivity of each pair.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 03:34 PM
#37
Thread Starter
Lively Member
Re: option boxes in a frame
its not working still
i really dont know what to do
Jan 11th, 2007, 03:48 PM
#38
Re: option boxes in a frame
As per my last post, add some frames to your form. Cut and paste two pairs of option buttons inside each frame. That should take care of it.
please state more then "it doesnt work" as its really hard to etermine how and whats going on with such a generic statement.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 11th, 2007, 04:12 PM
#39
Re: option boxes in a frame
Actually, answers to my question would go a long way to help you.
BTW: delete those frx files you do not need them.
Jan 14th, 2007, 01:18 PM
#40
Thread Starter
Lively Member
Re: option boxes in a frame
here is the work
I was wondering if you could help me with them now?
Lx
Attached Files
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