
Originally Posted by
Doogle
If frmNumber is already loaded then when you execute 'frmNumber.Show' the _Load event is not triggered so your code will not be executed. It'll work on the first time (i.e. when frmNumber is first Loaded) but not on subsequent ones (i.e. when it is Shown). You'd be better off moving the code from the _Load event to the _Activate event.
yes thats my problem once the main form is already open the load event is not trigger.... im thinking if it can be refresh like adding in the
Code:
Private Sub cmdsend_Click()
'to send the announcement to form2
Text1.Text = frmnumber.lblannounce.Caption
frmnumber.Show
frmnumber.lblannounce.Refresh
Unload Me
End Sub
i tried it but its not still working... if im going to remove it in the form_load() ill put the code in the lblannouncement directly? sorry im not yet good at vb6 just starting to learn and its my first project...
by the way the startup object is the frmannounce....
thank you again...