How to Check and uncheck check box through code
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 | 'System & API - How to Check and uncheck check box through code Private Const BM_SETCHECK = &HF1& Private Const BST_UNCHECKED = &H0& Private Const BST_CHECKED = &H1& Private Const BST_INDETERMINATE = &H2& Private Sub Command1_Click() x = FindWindow("#32770", vbNullString) Button = FindWindowEx(x, 0&, "button", "New") Call SendMessageLong(Button, BM_SETCHECK, BST_UNCHECKED, 0&) End Sub |
Related posts:
- How to keep your form always on bottom
- How to open a folder in explorer in particular folder view
- How to Show/Hide the Start Button from the task bar
- How to close the child windows in an external application.
- How to check which option button is selected in a group of option buttons with one line of code
- Check & Terminate Process using Window Title
- How to add CheckBox to ComboBox
- How to visually click Command button through code
- How to check the window state of an external application
- How to set Option Button and Check Box Style Property At run time