|
-
Nov 20th, 2004, 07:53 PM
#1
Thread Starter
New Member
Use picture as a command button?
Is it possible to use an image as a command button? I have a few command buttons on my form and don't really like the boring look of the default buttons. Id like to be able to design my own button to use, any ideas?
Bryan
-
Nov 20th, 2004, 08:12 PM
#2
You could use the Graphical style of the standard command button.
You can assign an image to the button.
You could use a picturebox with a up picture and when the pic is
clicked you can change it to a down image. Not quite that simple,
but that would be the logic.
HTH
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 20th, 2004, 08:26 PM
#3
Hyperactive Member
Or you can just do:
Code:
Private Sub Image1_Click()
'Code Here
End Sub
But changing the graphics of a command button would be better, since commands buttons are made to do this.
Then you can also change the images, MouseOver, MouseDown, MouseUp status' to do diffrent effects or show diffrent pics for each thing.
If my post was helpful please rate it 
-
Nov 22nd, 2004, 03:56 AM
#4
Addicted Member
Take a look at my submission on http://www.planetsourcecode.com/vb/s...20043545056452
It will not be hard to implement what you are trying to do. Only need to change RECT for placing a picture in all the command button
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
|