Results 1 to 6 of 6

Checkboxes, selecting

Threaded View

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177

    Checkboxes, selecting

    I dont see what I am doing wrong. If I select checkbox1 I want checkbox3 to be false and vice versa, thats simple enough. Everytime I click on one or the other checkboxes I have to reselect the one I want.

    It takes two clicks to get a checkbox checked (True).
    My listbox will be populated by both lists in the "Checkboxes" code once I select a checkbox, then reselct to repopulate.

    Checkboxes:
        ListBox1.Clear
        CheckBox3.Value = False
        TextBox11.Font = "Tahoma"
        SaveSetting "GdtFcfBuilder", "Variables", "sStdFont", CheckBox1.Value
        SaveSetting "GdtFcfBuilder", "Variables", "sIMSFont", CheckBox3.Value
    
        ListBox1.Font = "Tahoma"
        With ListBox1
            .AddItem "- (Straigtness)"
            .AddItem "Flat (Flatness)"
            .AddItem "Rnd (Roundness)"
            .AddItem "ProL (Profile Line)"
            .AddItem "ProS (Profile Surface)"
            .AddItem "Ang (Angularity)"
            .AddItem "// (Parallelism)"
            .AddItem "Per (Perpindicularity)"
            .AddItem "TP (True Position)"
            .AddItem "Con (concentricity)"
            .AddItem "Sym (Symetry)"
            .AddItem "CiRo (Circular Runout)"
            .AddItem "ToRo (Total Runout)"
        End With
    End Sub
    
    Private Sub CheckBox3_Click()
        ListBox1.Clear
        CheckBox1.Value = False
        TextBox11.Font = "IMS"
        SaveSetting "GdtFcfBuilder", "Variables", "sStdFont", CheckBox1.Value
        SaveSetting "GdtFcfBuilder", "Variables", "sIMSFont", CheckBox3.Value
    
        ListBox1.Font = "IMS"
        With ListBox1
            .AddItem "³ (Straigtness)"
            .AddItem "ä (Flatness)"
            .AddItem "Î (Roundness)"
            .AddItem "ü (Profile Line)"
            .AddItem "æ (Profile Surface)"
            .AddItem "² (Angularity)"
            .AddItem "á (Parallelism)"
            .AddItem "ã (Perpindicularity)"
            .AddItem "û (True Position)"
            .AddItem "â (concentricity)"
            .AddItem "ÿ (Symetry)"
            .AddItem "ç (Circular Runout)"
            .AddItem "è (Total Runout)"
        End With
    End Sub
    Initialize userform:
    Private Sub UserForm_Initialize()
    'Set checkbox values on initialize
        CheckBox1.Value = GetSetting("GdtFcfBuilder", "Variables", "sStdFont")
        CheckBox3.Value = GetSetting("GdtFcfBuilder", "Variables", "sIMSFont")
    
        'Tahoma font
        If CheckBox1.Value = True Then
            TextBox11.Font = "Tahoma"
        End If
        'IMS Font
        If CheckBox3.Value = True Then
            TextBox11.Font = "IMS"
        End If
    
        CommandButton1.Caption = "Paste"
        CommandButton2.Caption = "Cancel"
        CommandButton3.Caption = "Information"
    
        With ListBox2
            .AddItem "Ø"
            .AddItem "Na"
        End With
    End Sub
    Any hints, tips or examples are appreciated.
    Last edited by Rick_Stanich; 08-15-2009 at 10:27 AM.
    Regards

    Rick
    Win10, Office 365

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1