Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21264

Help on how to update or refresh text in my animated label text

$
0
0
hi i need some help again... i have 2 forms, first form is the "insert announcement", 2nd form is my "main form" in my main form you can find a LABEL "LBLANNOUNCEMENT" here is the situation, one you add a announcement in 1st form then click add announcement in the 2nd form it will show in the lblannouncement, it working but my problem is updating it, i add menu editor and put announcement there, so once you click announcement in the menu the form 1 will again appear but when you click the send announcement button, the text in the lblannouncement is not changing.. here is my code:

Form 1 is frmannounce
Form 2 is frmnumber

in my menu editor i added Announcement it is located at the frmnnumber

Code:

Private Sub Announce_Click()
frmannounce.Show
End Sub

Code:

'it is located the frmannoune
Private Sub cmdsend_Click()
    'to send the announcement to form2
        Text1.Text = frmnumber.lblannounce.Caption
            frmnumber.Show
        Unload Me
End Sub

'it is located at the frmnumber
Private Sub Form_Load()
    lblannounce.Caption = "Default Message" & frmannounce.Text1.Text
End Sub

i tried to add
Code:

lblannounce.refresh
in my form load but it is not updating

thnx hope you get my point.....

Viewing all articles
Browse latest Browse all 21264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>