-
Change button colour
[Originally posted by Nico_nz]
Hey dudes
Does anyone know the code for changing a button colour when it is pressed, i.e. once the user presses a button the button changes colour to let the user know that the button has been pressed.
Cheers in advance.
-
Re:Change button colour
[Originally posted by Chris Klopotowski]
I'm a newb but it should work:
* * Private Sub cmdExit_Click* * * * cmdExit.BackColor = System.Drawing.Color.Red
* * End Sub
or in VB6...
* * Private Sub cmdExit_Click* * * * cmdExit.BackColor = vbRed
* * End Sub
Hope this helps...
-
Re:Change button colour
[Originally posted by Chris Klopotowski]
I'm a newb but it should work:
* * Private Sub cmdExit_Click* * * * cmdExit.BackColor = System.Drawing.Color.Red
* * End Sub
or in VB6...
* * Private Sub cmdExit_Click* * * * cmdExit.BackColor = vbRed
* * End Sub
Hope this helps...
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks