borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (VB.NET Projects)Next Topic (XP VB6 / VB.NET) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : Button unavailable
Poster Message
patriciam
Level: Guest


icon Button unavailable

How can i put a button with Unavailable appearance ?

02-12-2003 at 12:53 PM
| Quote Reply
zimcoder
Level: VB Lord


Registered: 27-10-2003
Posts: 225
icon Re: Button unavailable

You simply set the button's Enabled property to false. You can do this during design time in VS.NET by choosing the Enabled property and setting it to false. or you can set this property at run time by doing the following

Dim btn as Button
btn = New Button()
btn.Enabled = false

your button control will be grayed out and ca not be clicked


____________________________
BrainBench ADO.NET and ASP.NET Certified Developer

02-12-2003 at 01:13 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : Button unavailable
Previous Topic (VB.NET Projects)Next Topic (XP VB6 / VB.NET) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder