Hi, I have a strange unexpected error coming up with my app only on Vista! I have tracked down the bug, when my main form is minimized a MSN Messenger style popup appears (frmReminder) to give the user a reminder message, the process giving off the error is below, the specific line is (Me.Left = Screen.Width - Me.Width).
VB Code:
Public Function Iniciar(Texto As String, Index As Integer) If frmMain.ManualClick = False Then Unload Me Else Dim WindowRect As RECT SystemParametersInfo SPI_GETWORKAREA, 0, WindowRect, 0 taskbar = ((Screen.Height / Screen.TwipsPerPixelX) - WindowRect.PAbj) * Screen.TwipsPerPixelX Me.Left = Screen.Width - Me.Width '<---- Line giving off the error! <---- Me.Top = Screen.Height '- Me.Height - taskbar resto = Screen.Height - Me.Height - taskbar a = Me.Height lblCaption.Caption = Texto Me.Show Timer1.Enabled = True SetTopMost SetTranci Me.Top = Screen.Height - taskbar tmrSlideIn.Enabled = True Me.Left = Screen.Width - Me.Width Me.Height = 0 End If End Function
Any ideas? This one has me stumped...![]()




Reply With Quote