Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > making a button remains on press


Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2004, 08:42 PM
Mald Mald is offline
Regular
 
Join Date: Dec 2003
Posts: 40
Lightbulb making a button remains on press


hi.. I've seen a program that if you clicked on the command button it remains on press, not just like an ordinary button than if you've clicked it, it return to its original phase or it pops out to its original form.
How can i do it?
Reply With Quote
  #2  
Old 01-27-2004, 08:45 PM
Myth's Avatar
Myth Myth is offline
Contributor
 
Join Date: Oct 2003
Location: Under your bed
Posts: 792
Default

that would be a checkbox, and its style set to graphical
__________________
Please use [vb][/vb] tags when posting.
Reply With Quote
  #3  
Old 01-28-2004, 09:36 PM
Mald Mald is offline
Regular
 
Join Date: Dec 2003
Posts: 40
Exclamation

i mean if you clicked it, it remains clicked.. get it?
Reply With Quote
  #4  
Old 01-28-2004, 09:40 PM
an5w3r's Avatar
an5w3r an5w3r is offline
Senior Contributor
 
Join Date: Jan 2004
Location: Romania
Posts: 1,342
Default

something like:

Code:
Private Sub Check1_Click() If Check1.Value = 1 Then Check1.Enabled = False End If End Sub
__________________
Fully customizable and easy to use .NET WPF charting library http://www.SoftwareGFX.com
Reply With Quote
  #5  
Old 01-28-2004, 09:52 PM
Mald Mald is offline
Regular
 
Join Date: Dec 2003
Posts: 40
Default

see this, the button remains pressed
Attached Images
File Type: bmp untitled.bmp (47.1 KB, 13 views)
Reply With Quote
  #6  
Old 01-29-2004, 03:33 AM
herilane's Avatar
herilane herilane is offline
Unashamed geek

Retired Moderator
* Expert *
 
Join Date: Jul 2003
Location: London, England
Posts: 8,988
Default

As has been said already, you'd get that effect if you used a checkbox or option button instead of a commandbutton, and set its style to graphical. Did you try that?
Reply With Quote
  #7  
Old 02-04-2004, 01:36 PM
schlesien schlesien is offline
Newcomer
 
Join Date: Nov 2003
Posts: 7
Thumbs up Depressed box

I was looking for this option also. Thanks for explaining about the graphical checkbox or option box.

Quote:
Originally Posted by herilane
As has been said already, you'd get that effect if you used a checkbox or option button instead of a commandbutton, and set its style to graphical. Did you try that?

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How many command buttons are too many on a form? Scanbid Interface and Graphics 15 12-30-2003 12:09 PM
Help! Dr Jones API 13 11-18-2003 11:40 PM
making a button of the toolbar a drop down button Cyber_Boy General 7 09-24-2003 09:50 AM
Adding Button to Titlebar alehawk General 0 08-29-2003 11:12 AM
Making my own button control, hover issue.... Andi Interface and Graphics 9 08-22-2003 09:20 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->