Best place to load a control
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, Thx a lot for the previous answer. For loading a pack of records into comboBox ,which event is best ? form_load or InitializeComponent. Could you pls explain it? regards, aB
Definitely on the
Load()
InitializeComponent()
is called from the constructor, and as the name says, it does construct the form, that means the form is not completely created.Load()
is called afterNew()
. I use to compare it to theOnInitDialog()
handler in C++ Dialog based applications. so, create whatever you want in theNew()
, and initialize them on theLoad()
TOXCCT >>> GEII power
[toxcct][VisualCalc]