Thanks, my old code is
*******************************
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Timer1.Interval = 100
Timer1.Enabled()
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Timer1.Dispose()
getData()
End Sub
*******************************
But i dont want to use the timer control, how to do?
Thank you
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> дÈëÏûÏ¢ÐÂÎÅ:eF**************@TK2MSFTNGP12.phx.gbl ...
"yxq" <ga***@163.net> schrieb: How to get data to listview after the form has been shown, i dont want to
use Timer control.
\\\
Private Sub Form1_Activated( _
ByVal sender As Object, _
ByVal e As EventArgs _
) Handles MyBase.Activated
Static IsActivated As Boolean
If Not IsActivated Then
IsActivated = True
Application.DoEvents()
' Fill the listview control here.
End If
End Sub
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>