Results 1 to 8 of 8

Thread: [RESOLVED] Error 50003 Vista Only on Minimize

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2006
    Posts
    37

    Resolved [RESOLVED] Error 50003 Vista Only on Minimize

    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:
    1. Public Function Iniciar(Texto As String, Index As Integer)
    2.     If frmMain.ManualClick = False Then
    3.         Unload Me
    4.     Else
    5.        
    6.      
    7.         Dim WindowRect As RECT
    8.         SystemParametersInfo SPI_GETWORKAREA, 0, WindowRect, 0
    9.        
    10.         taskbar = ((Screen.Height / Screen.TwipsPerPixelX) - WindowRect.PAbj) * Screen.TwipsPerPixelX
    11.        
    12.        
    13.         Me.Left = Screen.Width - Me.Width '<---- Line giving off the error!  <----
    14.         Me.Top = Screen.Height '- Me.Height - taskbar
    15.         resto = Screen.Height - Me.Height - taskbar
    16.      
    17.         a = Me.Height
    18.         lblCaption.Caption = Texto
    19.        
    20.    
    21.        
    22.         Me.Show
    23.         Timer1.Enabled = True
    24.        
    25.        
    26.         SetTopMost
    27.         SetTranci
    28.         Me.Top = Screen.Height - taskbar
    29.         tmrSlideIn.Enabled = True
    30.         Me.Left = Screen.Width - Me.Width
    31.         Me.Height = 0
    32.     End If
    33. End Function

    Any ideas? This one has me stumped...
    Last edited by Cbyte; Jun 3rd, 2007 at 06:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width