Re: How to Change the Caption of a Command button
- From: "Phill. W" <P.A.Ward@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 2 Nov 2005 14:42:24 -0000
<dibyendu.tiwary@xxxxxxxxx> wrote in message
news:1130938159.554549.202000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> when i click on Edit button then the corresponding text box gets populated
> frm a treeView and changes the Caption of the Respective button to Save.
> When i Click on Save the Caption changes to edit again by updating the
> treeView.
Sub Command1_Click()
With Command1
If .Caption = "Edit" Then
UpdateEditFieldsFromTreeView()
.Caption = "Save"
Else
UpdateTreeViewFromEditFields()
.Caption = "Edit"
End If
End With
End Sub
HTH,
Phill W.
.
- Follow-Ups:
- References:
- How to Change the Caption of a Command button
- From: dibyendu . tiwary
- How to Change the Caption of a Command button
- Prev by Date: Re: Newline in tooltip
- Next by Date: Re: Newline in tooltip
- Previous by thread: Re: How to Change the Caption of a Command button
- Next by thread: Re: How to Change the Caption of a Command button
- Index(es):