Information générale
Titre:
Too much textbox1 focus
I thought I had this program finished last night. I has a textbox which
has a format property of "K!" which of course accepts data. There
are two other sources of the stock number input listbox1 and listbox2.
The balance of the textboxes are read only calculted or looked up.
The program works with only one list box already. The second
divides the stock numbers into same and different price catagories.
Basically the same series of events is triggered by either the textbox's
lost focus event or either of the listboxes double click event. Everything seemed to work except that the focus was no returned
to textbox 1 at the end of its own event ( but was at the end of the
listbox events). I found a typo which said nodefault the thisform.listbox.setfocus when it should have said textbox 1 at the end
of the textbox1 routine. Changing it fixed that but suddendly listbox1
and 2 couldn't start their routines instead starting the textbox1 routine.
I have removed the two focus setting statements from everywhere
except the end of the textbox1, listbox1 and 2 routines and the
reight click event of the form.
Help- Derek
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement