Enlarge Combobox button

me1258

Registered User.
Local time
Today, 10:00
Joined
Apr 6, 2004
Messages
37
Hi I am creating a program that will be used with a touch screen. I am not sure what you call the button you push to get the combobox to open. I want to make that button bigger so that it can be used more easily with touch screen.

I also need to know how to change the background color... not the forground color... of a command button
Thanks


:D
 
The combo box doesn't have a property to enlarge the drop down arrow. However, you might be able to search for a third-party ActiveX control (probably have to purchase) that might do it (or you could create one yourself if you have VB6 or VB.NET).

Also, the command buttons backgrounds are controlled by Windows appearance settings for each user. There are workarounds and you can find one in this post (which a search of this site reveals):
http://www.access-programmers.co.uk/forums/showthread.php?t=120398
 
Here's a kludge for the dropdown arrow part of your problem. Place a command button on your form. Size it as big as you like. Move it over so that it sits partially on top of and to the right of and below the dropdown arrow. In the property box go to the Format tab and set the Transparent Property to Yes. Now got to the events tab and click on the OnClick property. Select Code and in the sub that pops up put this code

Code:
Private Sub YourTransparentCommandButton_Click()
   YourComboBoxName.SetFocus
   YourComboBoxName.Dropdown
End Sub

You won't see this button when you open your form, because it's transparent, but if you click anywhere within it (or touch it with your finger since you're using a touch screen) it'll drop down the combo box.
 
Here's a kludge for the dropdown arrow part of your problem. Place a command button on your form. Size it as big as you like. Move it over so that it sits partially on top of and to the right of and below the dropdown arrow. In the property box go to the Format tab and set the Transparent Property to Yes. Now got to the events tab and click on the OnClick property. Select Code and in the sub that pops up put this code

Code:
Private Sub YourTransparentCommandButton_Click()
   YourComboBoxName.SetFocus
   YourComboBoxName.Dropdown
End Sub

You won't see this button when you open your form, because it's transparent, but if you click anywhere within it (or touch it with your finger since you're using a touch screen) it'll drop down the combo box.

Great idea!
 
Awesome Idea
Thanks I will do it that way

Anyone else have any suggestions for the background color???:D
 

Users who are viewing this thread

Back
Top Bottom