Chris,
Maybe the problem is that I'm trying to set the property twice within one
proc in the tick event???
Here's the code:
This timer fires every five minutes. IT makes about a thirty second trip to
the server to grab fresh data....I want to alert the user in a more
pronouced way that they need to leave the device cradled until after the
sync.....
Private Sub tmrRefreshData_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles tmrRefreshData.Tick
Dim objLocalDB As New LocalDB
Dim ds As New DataSet
Dim blnUsersRetrieved As Boolean
lblWait.Text = "WAIT"
Try
CheckConnection()
Catch ex As Exception
'MsgBox("Unable to verify connection")
End Try
If g_blnConnected = True And g_blnLocalDBExists = True Then
Try
ds = objLocalDB.GetUsers
If ds.Tables(0).Rows.Count > 0 Then
blnUsersRetrieved = True
g_dsUsers = ds
End If
If g_blnLocalDBExists And blnUsersRetrieved Then
Try
RefreshLocalDatabase()
Catch ex As SqlServerCe.SqlCeException
MsgBox(ex.Message.ToString)
Finally
End Try
End If
Catch ex As Exception
End Try
End If
lblWait.Text = " "
Dim TimeNow As DateTime = DateTime.Now
Dim MyString As String = TimeNow.ToString("hh:mm")
lblLastSync.Text = "Last Sync : " & MyString.TrimStart("0")
End Sub
"Chris Tacke, eMVP" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Post some code.
>
> --
> Chris Tacke
> Co-founder
> OpenNETCF.org
> Has OpenNETCF helped you? Consider donating to support us!
> http://www.opennetcf.org/donate
>
>
> "Harry Simpson" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>>I am trying to display/hide a label either by visible or manipilating the
>>Left property.
>>
>> Why would a label not appear at runtime on a panel. I've right clicked
>> and done the Bring to Front deal.
>>
>> I even used a label that I am able to change the text in. When I add
>> code to change the text, it won't work for the original function either.
>> What's going on! I've been trying to solve this all afternoon..
>>
>> TIA
>> Harry
>>
>>
>
>