J
jhweb_online
Hello. From a mainform I have a button that opens another little form
with a combobox where the user (name of the firm) can be changed.
This user_id & user name is then put to (hidden) textboxes on the
mainform. This works ok.
I try to change the mainform's caption at the same time, but here is my
problem. The caption changes only if I change the user as described
before twice in a row. The code changing the caption of the mainform
is:
Private Sub Form_Activate()
Me.Caption = "Bla bla bla [ " & txt_firma.Value & " ]"
Me.Refresh
End Sub
(txt_firma is the textbox being updated from the form where user get
tho choose the name of the firm).
The little form with the textbox is the first form to open, you pick
the firm from the combo box and then everything works ok, ie the
caption contains the firms nbame. It's only when I try to change it
from the mainform that the caption won't change if I don't choose it
twice.
with a combobox where the user (name of the firm) can be changed.
This user_id & user name is then put to (hidden) textboxes on the
mainform. This works ok.
I try to change the mainform's caption at the same time, but here is my
problem. The caption changes only if I change the user as described
before twice in a row. The code changing the caption of the mainform
is:
Private Sub Form_Activate()
Me.Caption = "Bla bla bla [ " & txt_firma.Value & " ]"
Me.Refresh
End Sub
(txt_firma is the textbox being updated from the form where user get
tho choose the name of the firm).
The little form with the textbox is the first form to open, you pick
the firm from the combo box and then everything works ok, ie the
caption contains the firms nbame. It's only when I try to change it
from the mainform that the caption won't change if I don't choose it
twice.