DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: ActiveMovie Control Run Time Error

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    ActiveMovie Control Run Time Error

    [Originally posted by Tanveer Ahmed Khan]

    I created a System Tray Application. In a main form i draw a ActiveMovie control, runs a ".wav" in a specific time, when the main form is unhide(show) its run the Wave File but when its hide its shows an error.

    Error is:
    --------
    Run Rime Error '76'
    You must Initialize the file name property before
    calling mathod

    In Main Form I draw Timer Control the code is:
    ---------------------------------------------
    private sub Timer1_Timer()
      if SystemTime = MyTime then
      ActiveMovie1.Filename = App.Path & "\ABC.WAV"
      ActiveMovie1.Run
      End If
    End Sub

    Please help me . I am really thankfull to you.(khantanveer786@yahoo.com)

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re:ActiveMovie Control Run Time Error

    [Originally posted by Rich]

    How have you hidden the form? there are 4 ways:

    1 - Form.Hide
    2 - Form.Visble = False
    3 - Unload Form
    4 - Havnt actually opened it yet

    As far as i know, only the third and fourth ones should affect you code.

    Rich.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center