Is there a Post Load event? Trying to set selected indeces on bound combo boxes.

  • Thread starter Thread starter Glorfindel
  • Start date Start date
G

Glorfindel

I've discovered that if you bind a data table to a combo box, and set the
selected index to -1 and or the Text to "", it doent work during The Load
event. If you do it somewhere later, it does. That brings up the question
of is there a post load event in the .NET framework. I looked for one but
didnt find it. MFC has something like that, though the name escapes me at
the moment, something like PostInit or something.

Thanks,
Glorfindel
 
Hello,

Glorfindel said:
I've discovered that if you bind a data table to a combo
box, and set the selected index to -1 and or the Text to
"", it doent work during The Load event. If you do it
somewhere later, it does. That brings up the question
of is there a post load event in the .NET framework.

\\\
Private Sub Form1_Activated( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles MyBase.Activated
Static p_blnActivated As Boolean
If Not p_blnActivated Then
p_blnActivated = True
MsgBox("Foo")
End If
End Sub
///

HTH,
Herfried K. Wagner
 
Back
Top