|
-
Jun 5th, 2006, 03:08 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Command Button Font
Does anyone know on how to change the font colour in a command button?
Any help will be great.....
thanx in advance
Last edited by Hack; Jun 5th, 2006 at 10:32 AM.
Reason: Added [RESOLVED] to thread title and green "resolved" checkmark
-
Jun 5th, 2006, 03:32 AM
#2
Re: Command Button Font
go to command button property
And use style as Now cahnge font is displayes on the command button
-
Jun 5th, 2006, 03:39 AM
#3
Hyperactive Member
Re: Command Button Font
To Change the Font Color You Need to Use the CommandButton1 Control in "Microsoft Forms 2.0 Object Library" in the Components.
-
Jun 5th, 2006, 03:41 AM
#4
PowerPoster
Re: Command Button Font
I think you cannot change the font color that way shakti
-
Jun 5th, 2006, 03:50 AM
#5
Re: Command Button Font
 Originally Posted by Simply Me
I think you cannot change the font color that way shakti
FOR CHANGING FONT COLOUR COMMAND BUTTON SYYLE IS 1-GRAPHICAL IS NECESSARY OTHER WISE CHANGE COLOUR NOT DISPLAYES ON BOTTON CHECK IT URSELF BEFOR COMMENT
-
Jun 5th, 2006, 04:01 AM
#6
PowerPoster
Re: Command Button Font
 Originally Posted by shakti5385
FOR CHANGING FONT COLOUR COMMAND BUTTON SYYLE IS 1-GRAPHICAL IS NECESSARY OTHER WISE CHANGE COLOUR NOT DISPLAYES ON BOTTON CHECK IT URSELF BEFOR COMMENT
You check it yourself Shakti. That wont work. binilmb is right you have to use Microsoft Forms 2.0 Object Library and change color using forecolor property
-
Jun 5th, 2006, 04:03 AM
#7
Addicted Member
Re: Command Button Font
setup the graphic like you do with all objects...but remember to set that graphic thing.
-
Jun 5th, 2006, 04:09 AM
#8
PowerPoster
Re: Command Button Font
Shakti what is being asked is how to change the font color not font style
-
Jun 5th, 2006, 04:10 AM
#9
Re: Command Button Font
VB Code:
Microsoft Forms 2.0 Object Library
with using we can do it with
using post 2 and 5
-
Jun 5th, 2006, 04:13 AM
#10
PowerPoster
Re: Command Button Font
 Originally Posted by shakti5385
VB Code:
Microsoft Forms 2.0 Object Library
with using we can do it with
using post 2 and 5
Actually there's no graphical property for Microsoft Forms 2.0 Object Library
-
Jun 5th, 2006, 04:23 AM
#11
Hyperactive Member
Re: Command Button Font
There is no Style Property for CommandButton1 in "Microsoft Forms 2.0 Object Library". There is Font "ForeColor" Property with Which you can change the Font Color
-
Jun 5th, 2006, 04:25 AM
#12
Re: Command Button Font
Actually there's no graphical property for Microsoft Forms 2.0 Object Library
why using without using u can do it there is no need for it
-
Jun 5th, 2006, 04:34 AM
#13
Hyperactive Member
Re: Command Button Font
hello shakti5385
can u please explain how to change the font color of "Command1" button in vb and i don't want to use the CommandButton1 from "Microsoft Forms 2.0 Object Library"
-
Jun 5th, 2006, 04:51 AM
#14
Re: Command Button Font
add a commanf button at ur form
change it's style as graphical from properties
and now change the back colour
soory in this way we are not able to cahnge font colour but we are able to cahnge the
back colour of command button
soory for mistake
i was confused
thanks all for solving my comfusion
-
Jun 5th, 2006, 04:58 AM
#15
Hyperactive Member
Re: Command Button Font
ok shakti5385, i wonder how you do it without api.
-
Jun 5th, 2006, 05:17 AM
#16
-
Jun 5th, 2006, 05:21 AM
#17
Re: Command Button Font
shakti5385 was close - just the wrong control 
use a checkbox. Set it's style to Graphical and then you have control over forecolor. Just remember to have something like this in the click event:
VB Code:
Private Sub Check1_Click()
If Check1.Value = vbChecked Then
Check1.Value = vbUnchecked
' Code for 'Button' Click event
End If
End Sub
-
Jun 5th, 2006, 07:02 AM
#18
Re: Command Button Font
 Originally Posted by binilmb
To Change the Font Color You Need to Use the CommandButton1 Control in "Microsoft Forms 2.0 Object Library" in the Components.
Or you can use Threed32.ocx that will change the button ForeColor easy.
There are a lot of nice features of Threed32.ocx, its a pitting it isn't used that much.
Its on the VB6 CD, do a search.
Keith
I've been programming with VB for 25 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
-
Jun 5th, 2006, 07:06 AM
#19
Re: Command Button Font
 Originally Posted by binilmb
ok shakti5385, i wonder how you do it without api.
You don't do it without API....if fact, you have to subclass the entire control to do it. The same thing is required for changing the Backcolor, only, Microsoft did all of that work for you, but, not for the ForeColor.
Change Command Button Forecolor
-
Jun 5th, 2006, 07:08 AM
#20
Re: Command Button Font
that's just a similar example of what I posted Hack,
did you mean: WM_DRAWITEM: Set Command Button ForeColor
-
Jun 5th, 2006, 07:12 AM
#21
Re: Command Button Font
 Originally Posted by bushmobile
Oops. Didn't see it.
-
Jun 5th, 2006, 09:47 AM
#22
Thread Starter
Hyperactive Member
Re: Command Button Font [resolved]
thanks shakti5385...it worked! i found the commandbutton control in obj library...im now able to change the font colour and make the button transparent...
-
Jun 5th, 2006, 09:51 AM
#23
Re: Command Button Font
If you wouldn't mind clearing this up for me - what method are you using? the commandbutton in Forms 2.0 Object Library?
If so, be aware that the Microsoft Form2 2.0 Object Library is non-redistributable, and you can not include it in an installation package. It comes with MSOffice and if MSOffice is not installed then it will not work.
There is some way of getting round it - i'll see if i can find it.
-
Jun 5th, 2006, 02:19 PM
#24
Thread Starter
Hyperactive Member
Re: [RESOLVED] Command Button Font
sorz for not making it clear....
ive used the command button control in the Microsoft Form 2.0 Object Library
i was able to change its font colour using the Forecolour option in the properties
thanx for d advice tho...i wont prob need to redistribute it to other computr but if u can tell me how to then it'll be great
thanx in advance
Greyskull
-
Jun 5th, 2006, 06:06 PM
#25
Re: [RESOLVED] Command Button Font
Found it.
Here's the info about Fm20.dll (that's the dll in question) - there's a link from there to the Microsoft ActiveX Control Pad which is free and fm20.dll is part of the install.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|