Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: command button control


Message #1 by ramesh sridharan <mr_sriramesh@y...> on Thu, 14 Feb 2002 08:38:28 -0800 (PST)
HI,

It is very simple 
place command button in a form.
open property window for command button.
change style property to graphical ( default  0-standard)
change picture property to required icon
change backcolor property to required color.
now you will notice that the backcolor of button is changed and 
icon is added to button

murugan.

----- Original Message ----- 
From: "ramesh sridharan" <mr_sriramesh@y...>
To: "professional vb" <pro_vb@p...>
Sent: Thursday, February 14, 2002 10:08 PM
Subject: [pro_vb] command button control


> Hi,
>   I would like to change the background color or add a
> picture for a command button control in VB. But the
> control doesn't respond to it. Please clear my doubts
> if anyone came across sam problem.
> 
>   Thank you. 
> 
> 
> 
> --- Mark Roworth <mark@d...> wrote:
> > Set a flag from the piece of code where the decision
> > is made to skip the
> > events. Then in those events check to see if the
> > flag is true or not. e.g.:
> > 
> > 
> > Dim mbDoChange As Boolean
> > 
> > 
> > ... (decision code)
> > mbDoChange = False
> > ... or
> > mbDoChange = True
> > ...
> > 
> > 
> > Private Sub txtBox_Change()
> > If mbDoChange Then
> > ' normal txtBox_Change code in here
> > End If
> > End Sub
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Mukul Jain [mailto:mukul@d...]
> > Sent: 14 February 2002 15:03
> > To: professional vb
> > Subject: [pro_vb] How can skip events
> > 
> > 
> > Dear programmers,
> >                 There are many events related to a
> > text box but sometimes
> > i want skip some events to be occured.can any body
> > suggest me how can i
> > skip a perticular event.
> > -Mukul
> > $subst('Email.Unsub').
> > 
> > 
> > 
> $subst('Email.Unsub').
> 
> 
> =====
> Sincerely,
> Ramesh S
> 
> ************************************************************
> *      If you give a mouse a cookie, it will ask for a     *
> *         glass of milk. Remember, i said MOUSE.           *
> ************************************************************
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 


  Return to Index