Controls Disappearing

DarrenK

Member
Joined
Sep 9, 2008
Messages
10
Programming Experience
Beginner
I have a problem with any vb.net application running on my windows 2003 vps. I've tested this by creating the simplest form with just a button on it and executing the following code...

VB.NET:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Button1.Enabled = False
        Switchboard()
        timMain.Start()
    End Sub

    Sub Switchboard()

        Try

        Catch e As Exception
            LogError(e.Message, Now)
        End Try

    End Sub


    Private Sub Form1_FormClosed(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles Me.FormClosed
        End
    End Sub

    Private Sub timMain_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timMain.Tick
        Application.DoEvents()
        Switchboard()
    End Sub
End Class

The program will run fine for hours, maybe a day, but then for no reason the controls will just disappear. The app is still running, can be moved around the screen, it's just the controls are missing. This is happening to ANY vb.net app running on the VPS.

Anybody seen this before? Any suggestions how to fix it?

Thanks


DK
 
Do these same apps have the same problem on other systems? If not then it's not a VB problem but rather an issue with the server.

Also, I suggest that you get rid of that End statement and never use End again.
 
No it doesn't do it on my local XP machine so I'm sure it's a problem with the server but I just thought somebody here might have come across it before.

DK
 
No it doesn't do it on my local XP machine so I'm sure it's a problem with the server but I just thought somebody here might have come across it before.

DK
If it's a problem with the server then it doesn't belong in the WinForms forum because it's not a WinForms issue. The first thing I'd do is reinstall the Framework.
 
Back
Top