Page 1 of 2 12 LastLast
Results 1 to 40 of 48

Thread: option boxes in a frame

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: option boxes in a frame

    VB Code:
    1. If Option1.Value = -1 Then
    2.     'Selected
    3. ElseIf Option2.Value = -1 Then
    4.     'Selected
    5. Else
    6.     'No selection made
    7. 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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?

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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:
    1. Private Sub cmdClose_Click()
    2.     Dim bMissingSelection As Boolean
    3.     bMissingSelection = False
    4.     If Option1.Value = vbChecked  Or Option2.Value = vbChecked Then
    5.        'One selection is present
    6.     Else
    7.         bMissingSelection = True
    8.     End If
    9.  
    10.     If Option3.Value = vbChecked  Or Option4.Value = vbChecked Then
    11.        'One selection is present
    12.     Else
    13.         bMissingSelection = True
    14.     End If
    15.     '...
    16.  
    17.     If bMissingSelection = True Then
    18.         MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
    19.     End If    
    20. 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    Re: option boxes in a frame

    But
    if option1 is checked then i need green = green + 1
    how can i code that in

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: option boxes in a frame

    Just add the line of code to the option(s) where it should be increased.
    VB Code:
    1. Private Sub cmdClose_Click()
    2.     Dim bMissingSelection As Boolean
    3.     bMissingSelection = False
    4.     If Option1.Value = vbChecked  Then
    5.         'One selection is present
    6.         green = green + 1
    7.     ElseIf Option2.Value = vbChecked Then
    8.         'One selection is present
    9.         green = green + 1
    10.     Else
    11.         bMissingSelection = True
    12.     End If
    13.  
    14.     If Option3.Value = vbChecked  Or Option4.Value = vbChecked Then
    15.         'One selection is present
    16.     Else
    17.         bMissingSelection = True
    18.     End If
    19.     '...
    20.  
    21.     If bMissingSelection = True Then
    22.         MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
    23.     End If    
    24. 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  11. #11
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    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:
    1. If Option1.Value = True Then
    2. 'Or
    3. If Option1.Value Then

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: option boxes in a frame

    VB Code:
    1. Dim Option1_Index as Integer
    2.  
    3. Sub Option1_Click(Index as Integer)
    4.    Option1_Index=Index
    5. 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.

  14. #14

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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?

  15. #15
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  16. #16

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    Re: option boxes in a frame

    what?
    can i have help with the coding?
    im really lost now

  17. #17
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  18. #18

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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

  19. #19
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: option boxes in a frame

    VB Code:
    1. Private Sub cmdClose_Click()
    2.     Dim bMissingSelection As Boolean
    3.     bMissingSelection = False
    4.     If Option1.Value = -1 Then
    5.         'One selection is present
    6.         green = green + 1
    7.     ElseIf Option10.Value = -1 Then
    8.         'One selection is present
    9.         yellow = yellow + 1
    10.     Else
    11.         bMissingSelection = True
    12.     End If
    13.  
    14.     '...
    15.  
    16.     If bMissingSelection = True Then
    17.         MsgBox "Not all selections have been made!", vbOkOnly+vbExclamation
    18.     End If    
    19. 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  20. #20

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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?

  21. #21
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  22. #22

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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.

  23. #23
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  24. #24

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    Re: option boxes in a frame

    i dont know how to do that

  25. #25
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: option boxes in a frame

    VB Code:
    1. Private Sub ResetMe()
    2.     'Go through your controls needing resetting
    3.     Option1.Value = 0
    4.     Option10.Value = 0
    5.     '... etc
    6. 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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  26. #26

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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?

  27. #27
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: option boxes in a frame

    It would be more helpful to post your project...

  28. #28
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  29. #29

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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?

  30. #30
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  31. #31

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    Re: option boxes in a frame

    here it is
    has to be rar as its to big to be zipped
    Attached Files Attached Files

  32. #32
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  33. #33

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    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

  34. #34
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  35. #35
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  36. #36
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  37. #37

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    Re: option boxes in a frame

    its not working still
    i really dont know what to do

  38. #38
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  39. #39
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  40. #40

    Thread Starter
    Lively Member
    Join Date
    Nov 2006
    Posts
    109

    Re: option boxes in a frame

    here is the work
    I was wondering if you could help me with them now?

    Lx
    Attached Files Attached Files

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width