Command Buttons
If you use a Microsoft Forms 2.0 command button, there is an option to TakeFocusOnClick. If you set it to false, the dotted line that goes around a button when it is clicked is not there. The problem is, Microsoft Forms 2.0 only works if you have ms office. How can I make regular command buttons not have that dotted line go around them when they are clicked?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Option Buttons And Command Buttons On A Different Form
Hi all!
my problem is, im making a quiz setter/taker.
i have 1 form to set the questions and 1 form to take the test.
on the set form, i have 5 text boxes, 1 for the question and 4 for 4 possible answers. next to the 4 text boxes i have an option button to select for which the correct answer is.
then i press the save button and go to the test form.
there i have 1 text box and 4 command buttons. the 4 answers appear in the command buttons to click. which ever button is clicked, the button changes yellow to indicate the buttons has been selected.
then i press a submit button to reveal the correct answer.
what i want to do it make the option i selected, if the command button chosen is wrong or right then it will change either red or green.
this will be a small peice of code probably but ive been trying all night and cant figure it out
Command Buttons
ive put some command buttons in my vb app, but they like very dull.
how can i make them look better and more eye appealing
Command Buttons
I am working on a form in VBA for excel -
I know you can group option buttons on a frame , so you can reference them easily -can you do the same for regular buttons ? - i looked for a groupname property like on the option buttons , but failed to find one
any help appreciated
thanks
VBA/Command Buttons
How do I return a value for which command button was clicked without having to create a global variable?
Command Buttons
How do you put an & on a button
I want to make a button with the caption
Save & Close = the S will be the hot key
Command Buttons
Listed below is the code for a form I created. The name of the form is frmSampType. The form has one label and four buttons described below.
The label text is “Choose type of sample”
The button names and captions are as follows:
cmdCancel, Cancel
cmdCalibrator, Calibrator
cmdControl, Control
cmdStandard, Standard
When I come to an appropriate point in the main macro I have a statement, Call SampForm, which simply calls the subroutine that shows the form on the screen (frmSampType.Show). The button selected will then determine future actions that occur in the main macro.
Ideally, I would have liked for certain values to be carried along to the main macro, such as the value of Q and the value of Cal when the Calibrator button is chosen, for example. Unfortunately, I’ve discovered that these values are lost after leaving the button-selected subroutine. Is there a way to carry these over?
Originally, I thought I could just select the appropriate button, then go to the main macro and then set values of Q and/or Cal there based on the caption property of the button I chose. That is, if the Calibrator button is chosen then I want the value of Q set to 3 and the value of Cal set to the input value. These values are then used later in the main macro. Couldn’t figure out appropriate code.
Any suggestions?
Private Sub cmdCancel_Click()
Unload Me
End Sub
______________________________
Private Sub cmdCalibrator_Click()
Dim Q As Integer
Dim Cal As String
Q = 3
frmSampType.Hide
Cal = InputBox("Enter Calibrator Concentration", "Calibrator Concentration", "47", 3500, 3000)
End Sub
________________________________
Private Sub cmdControl_Click()
Dim Q As Integer
Q = 5
frmSampType.Hide
End Sub
_________________________________
Private Sub cmdStandard_Click()
Dim Q As Integer
Q = 5
frmSampType.Hide
End Sub
__________________________________
Private Sub UserForm_Click()
End Sub
___________________________________
Private Sub Label1_Click()
End Sub
I Need Help With Command Buttons
I need someone who knows how to make it so that when a command button is selected, highlighted, tabbed to, whatever u wanna say..., make it so that you cant hold down the enter button to make it click super fast and what not.
I would rather have code juss givin to me....
But ideas on how to work the code or suggestion would bbe much appreciated
Command Buttons
Hi
I'm new to this forum and i'm sorry if this has been discussed already.
I have recently started to create an autorun program and would like to be able to execute external programs from command buttons.
I would be very greatful for any suggestions.
Cheers
Ashley
Command Buttons
Is there a way to change the caption color on a command button
Command Buttons
this is my first day using these programsd and i was wondering wen u want to place a button on your program i place the button on the prodjest and on it it says Command1
how do i get that to sayclick to enter
Command Buttons
G'day,
Does anyone know where there is a good command button download or code? I want the command button to be able to be any shape. Thankyou in advance.
Phatt
Command Buttons
Can I make a command button not work until an event happens
when loading the Form module
Code:
Command1.Enable = False
then a selection is made some where and at the start of that code
Code:
Command1.Enable = True
Command Buttons
I am working on a program and what i want to do is once the user clicks on the command button and while the command is running in the background i want the command button to go grey to prevent extra clicking. i would appreciate any help
Thanks
Command Bar/Buttons
I am creating an instance of excel from within a VB program, in excel I disable the "worksheet menu bar" and create my own command bar with exit button on using the following code. When I do this it creates an error message saying cannot find "toolbars" macro. I want it to call a procedure in VB called "toolbars" not a macro.
Dim cbarScorecard As CommandBar
Dim cbtnExit As CommandBarButton
Set cbarScorecard = CommandBars.Add ("ScorecardMonitoringToolbar", msoBarTop)
cbarScorecard.Visible = True
With cbarScorecard
Set cbtnExit = .Controls.Add(msoControlButton)
cbtnExit.Style = msoButtonIconAndCaption
cbtnExit.Caption = "&Exit"
cbtnExit.FaceId = 41
cbtnExit.OnAction = "Toolbars"
cbtnExit.ToolTipText = "Return to menu"
End With
Any ideas would be much appreciated
Thanks
John
Command Buttons
Hello everyone,
I'm trying to create a command button, but have it more vertical than horizontal with each character in the caption on top of each other. Here is an example
<pre>
___
| |
| C | Does anyone know how this can be done?
| L |
| O |
| S |
| E |
|___|
</pre>
"And the day shall come when the Viper will take his throne"
Command Buttons =-.-'=
Hi, i've got a column of command buttons which change the picture on the buttons when you click on them (its has loops in so the user can easily see which tool they are using)
anyways while its in graphics style and flat mode when you run it its still 3D looking, do you know when you press the command buttons while its running (i'm talking about the 'down picture') is there anyway of keeping the 3D downess (i know its probably not even a word) on when the user depresses the mouse (mouse up)? i've tried to figure it out but couldn't,
and i don't think my explaination of the problem is making any sence.. anyone know what i'm talking about? (if not i'll get some screen shots)
Command Buttons
Im trying to perform the following task, if we take today as an example. My form will have a dtpicker and 7 command buttons as follows:
today tommorrow Fri Sat Sun Mon Tues
so that if you click, lets say fri the dtpickers value will change to that of next fri, or whatever day. I also wish that when the dtpicker if lets say thursday the command buttons will change to:
today tommorrow Sat Sun Mon Tues Wed
Would i be better off coming up with something different or do you think this is ok to accomplish
Any help would be great
Command Buttons Please Help
i need to use 1 command button to start a timer when clicked on, then stop the timer when the same command button is clicked again.
thanks 4 the help
kevin
Help With Command Buttons
Hello everyone..
I know how to make a command button disappear when i press it once..
but i would like to know how to do this..
I have 3 command buttons on the form..
i want only the first command button available to press.and the others not availab le until the first command button is pressed..
where do i have to enter in the false values for the comman dbuttons
thanks..
Command Buttons
Hello everyone..i need a little help
how do i make a command button inactive after pressing it once
eg...
I press the command button Enter, and it becomes unpressable..so you can only press it once.
thanks
ADO And Command Buttons
I have a database with only 20 records. I have 20 command buttons for which I would like to display the names of the each of the products to the caption property for each of the command buttons. I'm using ADO with an Access database.
below is the code that I have started with:
Do Until adoProducts.Recordset.EOF = True
cmdKey(Index).Caption = adoProducts.Recordset.Field(3).Value
adoProducts.Recordset.MoveNext
Loop
Any help much appreciated.
How To Run 2 Command Buttons
i have two command buttons
i hav one check box
i want to run that two comman button when i tick the check box 200times
how can i do that
Command Buttons??!!!
yes, i was wondering how would i make it so that i have 2 forms(Form1 and Form2) and 1 command button in each(Command1 and Command2), and when you click the command button in Form2 it automatically calls the same action in Form1 (Command2_click)...how would i do this??
Command Buttons And OR
Hey, part of the code i commented out because if i use Or..i get a type mismatch error.
and the other problem is "cmdpawnshop" which is a button...how do i like call a button, i want to run the code within the button without pressing it.
Code:
Private Sub lstShop_DblClick()
If lstShop.Text = "Ammo" Then ' Or "Melee" Or "Guns" Or "Misc" Or "Armor" Then
frmMain.wsk.SendData Chr$(254) & Chr$(2) & lstShop.Text & Chr$(0)
DoEvents
ElseIf lstShop.Text = "<<< back" Then
lstShop.Clear
cmdPawnShop
Else
cmdBuy.Enabled = True
cmdSell.Enabled = False
frmMain.wsk.SendData Chr$(254) & Chr$(4) & lstShop.ListIndex & Chr$(0)
DoEvents
End If
End Sub
Get Command Buttons Value
hey,
i ve created Commandbuttons at run time based on DB value through a loop, now i wnt to show its name in a message Box as it is clicked... bt as i code for that button... control not found error arais please help me to solve this problem...
hope for reply soon
regards,
fims
Command Buttons
im using 9 command buttons for my game of tic tac toe, i dont have to implement the rules, it is a network game using UDP. i had some code but lost it. they command buttons are a control array. i just need to display an x or an o on what ever button the each player had picked.
any ideas?
Command Buttons - Can It Be Done?
Hi all,
I was wondering.. Is it possible to make a round or oval command button?
Has anyone done this before? If so can you show me an example?
Thanks
Rudy
Help With Command Buttons
i´m doing an .exe with 3 command buttons,one for open a .swf file,another for open an htm file and th other to close the exe.
is this right?:
Private Sub Command1_Click()
Documents.Open ("menu.swf")
End Sub
Private Sub Command2_Click()
Documents.Open ("web.htm")
End Sub
Private Sub Command3_Click()
End
End Sub
if not please help
i need one for opening the .swf other for open the html file, the problem is taht , how to make a command buttons open a file in the same directory as the .exe??
sorry but i´m a beginner
best regards
santi
Command Buttons
Does anybody know of a command button that will either manifest or already has the XP look. It would be useful if there was an option to revert to the W2K look as well.
I have tried the VB Smart .Net Button, but it does not look like XP.
I have tried the Chameleon button, but is does not support graphics.
Before anyone suggests the standard command button in common controls, it doesn't manifest when in graphical mode.
Any Ideas????
Regards
Gif Command Buttons
I've Looked and Looked through all the Posts and Nothing Helped me out so I'm going to start my own Thread...
Question: How do I get a .Gif Control to Work like a Command Button. I need any sort of "Click" or "MouseDown" Option.
Please Help Me out. Please, and Thank you.
Command Buttons
Is there a way to align the command button text to the left? It seems like it always is centered. Also, is there a difference between a flat command button and and 3D command button? It doesn't look like it.
Command Buttons
Is there a way to create a command button and then when you click it make it stay down ?? like make it stay clicked down...but if you click it again it comes up ??
I'm sure I could play with the images to change them.. I was just wondering if there was a quick property I didnt see to do this..
Command Buttons......
Ok, I want to have my Command Button change from flat to raised on Mouseover.
An example might be in a Messenger chat window, with the Block, Font and Emotions buttons.
I don't mean using the Appearance properties....
Command Buttons
I'm attempting to conditionally set a comand button to enable=True or False on my form load. Basically, I want to conditionally"lock" a button to prevent the user from clicking the key. It seems simple enough, but the setting doesn't seem to have an effect. Suggestions? Thanks in advance for any help.
For Each.....Command Buttons
On a button click iam trying to disable every single command button on a form... but instead of typing out every single button name and a setting enabled to false i was hoping to use a for each loop
Dim cmd As CommandButton
For Each cmd In Me.Controls
cmd.Enabled = False
Next cmd
Dim cmd As Button
For Each cmd In Me.Controls
cmd.Enabled = False
Next cmd
but neither of them seem to work??
thanks
Regarding Command Buttons
Hi,
I've some problems with the command buttons in VB.Could anyone please help me in this.
I've 3 forms in Visual Basic.
first form has 2 command buttons(cmd1frm1,cmd2frm1)
second form has 2 command buttons(cmd1frm2,cmd2frm2)
third form has one command button(cmd1frm3)
when the program is executed form 3 has been displayed first.
My problem:
when I click the button in form3 the buttons in form 2 and form 3 has to be executed automatically.that is the click events of the buttons in form 2 and form 3 has to occur when I click the button in form 3.
can anyone please tell me how to do this
venu...
Command Buttons
now look, i'm a realll newbie
but how do i open a new form through a command button?
Command Buttons
How do i get a command button to look depressed when it has been clicked?
Command Buttons
Using the code to make forms translucent (alphablending..i've attached the module) how could you make a command button translucent instead of the whole form?
Command Buttons.....
I have a Command Button on my form, which for some strange reason needs me to double click on it, instead of single click.
On the form I have a MonthView, a label, a Timer and a Command Button.
Can anyone explain *** is going on?
Command Buttons
1) Can they be colored? I don't see any such options in the properties.
2) Can the text be aligned left and right? I want to put a picture on a button and I don't want it to go on top of the text, which seems to be the only option.
Command Buttons
In Internet Explorer, if you put your cursor over the Back button or the stop button, refresh, home, etc buttons, you'll see that the buttons go from just a picture to a 3-d command button. Does anyone understand that? if so, how can you make command buttons do that in VB?
Command Buttons
How do I make a command button once click go to the next form without a new window appearing. Example I have a command button on form3 and I want the button to go to form4 but I dont want another window to appear and I want form3 to disappear once the command button is clicked. Like when you making a homepage or website.
Command Buttons
I have a command button on my main form (used to exit the project). Occasionally you need to click on this button twice before it actually works. It seems to happen after I have loaded and unloaded another form. Its like it needs some sort of gotfocus event or something before it recognizes its been clicked on. I have also linked it to a function key through the menu, but you also have to press the function key twice before it works as well.
I am using Sheridan threeD buttons if that helps.
any ideas would be greatly appreciated, thanks
Command Buttons On The FLY?
Is there any way to create a command button using code?
The reason I need this is to dynamically create a form using database fields....
thanks
On The Fly Command Buttons
How could I insert a command button on-the-fly?
Here's an example of what I'm trying to do:
Dim Button As CommandButton
Button.Caption = "On the fly button!"
|