|
-
Oct 6th, 2009, 03:54 AM
#1
Thread Starter
New Member
Scriptlet control
I am using scriptlet control in my project. while run mode it works fine.
After deploying the application scriptlet control is not working.
can u pls help me in this regard
-
Oct 6th, 2009, 06:11 AM
#2
Re: Scriptlet control
Welcome to the forums. 
What "scriplet control"?
How is it being used?
What does "not working" mean?
-
Oct 7th, 2009, 01:25 AM
#3
Thread Starter
New Member
Re: Scriptlet control
In VB 6.0 scriptlet control to view the html text. i am sending my code.pls see
Code:
Private Sub btnhome_Click()
Unload Me
frmMain.Show
End Sub
Private Sub Form_Load()
Scriptlet1.Visible = False
MMControl1.fileName = App.path & "\Time Line1.mpg"
MMControl1.hWndDisplay = Picture1.hwnd
MMControl1.Command = "Open"
End Sub
Private Sub Form_Unload(Cancel As Integer)
MMControl1.Command = "Stop"
MMControl1.Command = "Close"
End Sub
Private Sub Home_Click()
Unload Me
frmMain.Show
End Sub
Private Sub MMControl1_StatusUpdate()
Dim strMode As String
strMode = ""
Select Case MMControl1.Mode
Case mciModeReady
strMode = "Ready."
Case mciModeStop
strMode = "Stopped."
Scriptlet1.Visible = False
Case mciModeSeek
strMode = "Seeking."
Case mciModePlay
strMode = "Playing."
Scriptlet1.Visible = True
'Scriptlet1.url = "file://" & App.path & "\fish1.html"
Case mciModeRecord
strMode = "Recording."
Case mciModePause
strMode = "Paused."
End Select
Label1.Caption = strMode
End Sub
Private Sub Scriptlet1_onscriptletevent(ByVal name As String, ByVal eventData As Variant)
End Sub
-
Oct 7th, 2009, 03:26 PM
#4
Re: Scriptlet control
you need to package your application so that the script control is included in the installation, rather than just copying the exe file to another computer
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|