PC Review


Reply
Thread Tools Rate Thread

display hidden controls once check box activated

 
 
=?Utf-8?B?Z2JwZw==?=
Guest
Posts: n/a
 
      27th Aug 2007
I want users to answer a yes no question and if they choose yes the following
controls that are on my form (but not visible) to appear. So the sequence
would be:
when click button
display ListBox4,Label12,CommandButton10, CommandButton11

Any quick solutions?
 
Reply With Quote
 
 
 
 
JW
Guest
Posts: n/a
 
      27th Aug 2007
On the Click event of the button, place something like this for each
item you want to display.
Me.ListBix4.Visible = True

You might want to do a check so that clicking the button when they are
not visible will make them visible. Clicking them when they are
visible will make then invisible.
If Me.ListBox4.Visible = True Then
Me.Listbox4.Visible = False
Me.Label12.Visible = False
Me.CommandButton10.Visible = False
Me.CommandButton11.Visible = False
Else
Me.Listbox4.Visible = True
Me.Label12.Visible = True
Me.CommandButton10.Visible = True
Me.CommandButton11.Visible = True
End If
gbpg wrote:
> I want users to answer a yes no question and if they choose yes the following
> controls that are on my form (but not visible) to appear. So the sequence
> would be:
> when click button
> display ListBox4,Label12,CommandButton10, CommandButton11
>
> Any quick solutions?


 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      27th Aug 2007
Private Sub commandbutton1_Click()
me.ListBox4.Visible = True
me.,Label12.Visible = True
me.CommandButton10.visible = True
Me.CommandButton11.visible = true
end Sub

--
Regards,
Tom Ogilvy

"gbpg" wrote:

> I want users to answer a yes no question and if they choose yes the following
> controls that are on my form (but not visible) to appear. So the sequence
> would be:
> when click button
> display ListBox4,Label12,CommandButton10, CommandButton11
>
> Any quick solutions?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some controls can't be activated Lem Microsoft Powerpoint 5 8th May 2010 11:58 PM
Events - controls visible/hidden depending on a check box =?Utf-8?B?TmV3S2lkb250aGVCbG9jaw==?= Microsoft Access Form Coding 2 8th Aug 2006 02:02 PM
Some controls on this presentation can't be activated. =?Utf-8?B?T0NSRkZNYW5hZ2Vy?= Microsoft Powerpoint 7 1st Aug 2006 05:54 PM
Some controls can't be activated rob davis Microsoft Powerpoint 5 6th Feb 2004 10:09 PM
Hidden text activated by hyperlinks (you know, like in Office Help pages) James Microsoft Word Document Management 1 20th Sep 2003 11:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:34 PM.