Click here to Skip to main content
15,917,968 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionSql Query Pin
Gopi.V22-Sep-05 22:46
Gopi.V22-Sep-05 22:46 
Questionenable the protocol for SQL Server Pin
Prafulgoyal22-Sep-05 21:17
Prafulgoyal22-Sep-05 21:17 
QuestionSQL String Pin
dw192822-Sep-05 21:08
dw192822-Sep-05 21:08 
AnswerRe: SQL String Pin
_mubashir22-Sep-05 21:23
_mubashir22-Sep-05 21:23 
AnswerRe: SQL String Pin
Dave Kreskowiak23-Sep-05 4:52
mveDave Kreskowiak23-Sep-05 4:52 
QuestionLoad video in form Pin
Tim Yong22-Sep-05 20:40
Tim Yong22-Sep-05 20:40 
AnswerRe: Load video in form Pin
Dave Kreskowiak23-Sep-05 4:48
mveDave Kreskowiak23-Sep-05 4:48 
AnswerRe: Load video in form Pin
Member 219430723-Sep-05 8:48
Member 219430723-Sep-05 8:48 
'first of all you have to import a called QuartzTypeLib

'declear globle variables

Dim bAudio As IBasicAudio
Dim bvideo As IBasicVideo
Dim mEvent As IMediaEvent
Dim vdoWindow As IVideoWindow
Dim mCtrl As IMediaControl
Dim mpos As IMediaPosition
Public Const WS_VISIBLE = &H10000000
'call remove media to remove oldloded media
********************************************************
Public Sub RemoveMedia()
Try
DisableCtrl()
If Not mCtrl Is Nothing Then
mCtrl.Stop()
End If
If Not vdoWindow Is Nothing Then
'vdoWindow.Owner = Nothing
End If
If Not bAudio Is Nothing Then
bAudio = Nothing
End If
If Not bvideo Is Nothing Then
bvideo = Nothing
End If
If Not mCtrl Is Nothing Then
mCtrl = Nothing
End If
If Not vdoWindow Is Nothing Then
vdoWindow = Nothing
End If
If Not mpos Is Nothing Then
mpos = Nothing
End If

Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
*********************************************************
call loadMedia to load new media file to be plaed prove file name and path as string in the function
**********************************************************

Public Sub LoadMedia(ByVal data As String)
On Error GoTo OpenFileError
mCtrl = New FilgraphManager
Call mCtrl.RenderFile(data)
bAudio = mCtrl
bAudio.Volume = 0 'Loudest
bAudio.Balance = 0 'Centered
bvideo = mCtrl
vdoWindow = mCtrl
vdoWindow.WindowStyle = WS_VISIBLE 'WS_VISIBLE = &H10000000
vdoWindow.Top = 0
vdoWindow.Left = 0
vdoWindow.Width = mainWindow.Width
vdoWindow.Height = mainWindow.Height
vdoWindow.Owner = mainWindow.Handle.ToInt64
mEvent = mCtrl
mpos = mCtrl
mpos.Rate = 1 'Normal forward playback speed
Me.panMedia.Text = "File Loaded"
PosBar.Maximum = mpos.Duration
EnableCtrl()
SetTotalTime()
Exit Sub
OpenFileError:
Err.Clear()
Resume Next
End Sub
********************************************************
user myCtrl.Play(),myCtrl.Stop(),myCtrl.Pause() to play stop and pause.and take only picture box as the window to play the file here "mainWindow" variable is the nmae of the picture box.:cool:



Get back 2 me
QuestionShowing 2nd Form from 1st Form Pin
sanataraj22-Sep-05 19:51
professionalsanataraj22-Sep-05 19:51 
AnswerRe: Showing 2nd Form from 1st Form Pin
enjoycrack22-Sep-05 20:52
enjoycrack22-Sep-05 20:52 
GeneralRe: Showing 2nd Form from 1st Form Pin
Dave Kreskowiak23-Sep-05 4:28
mveDave Kreskowiak23-Sep-05 4:28 
AnswerRe: Showing 2nd Form from 1st Form Pin
Dave Kreskowiak23-Sep-05 4:38
mveDave Kreskowiak23-Sep-05 4:38 
QuestionProblem with Forms Pin
_mubashir22-Sep-05 19:09
_mubashir22-Sep-05 19:09 
AnswerRe: Problem with Forms Pin
Steve Pullan22-Sep-05 19:16
Steve Pullan22-Sep-05 19:16 
GeneralRe: Problem with Forms Pin
_mubashir22-Sep-05 21:20
_mubashir22-Sep-05 21:20 
Questiongenetic algorithm Pin
Member 229845722-Sep-05 18:49
Member 229845722-Sep-05 18:49 
AnswerRe: genetic algorithm Pin
Steve Pullan22-Sep-05 19:09
Steve Pullan22-Sep-05 19:09 
GeneralRe: genetic algorithm Pin
Anonymous25-Sep-05 17:28
Anonymous25-Sep-05 17:28 
QuestionUpdating control properties on the form designer. Pin
Rahsas22-Sep-05 15:24
Rahsas22-Sep-05 15:24 
Questionmore vb grief *sigh* Pin
l a u r e n22-Sep-05 13:57
l a u r e n22-Sep-05 13:57 
AnswerRe: more vb grief *sigh* Pin
Steve Pullan22-Sep-05 14:31
Steve Pullan22-Sep-05 14:31 
Questionodbc enumeration... Pin
l a u r e n22-Sep-05 9:55
l a u r e n22-Sep-05 9:55 
AnswerRe: odbc enumeration... Pin
Joshua Quick22-Sep-05 10:47
Joshua Quick22-Sep-05 10:47 
GeneralRe: odbc enumeration... Pin
l a u r e n22-Sep-05 11:10
l a u r e n22-Sep-05 11:10 
AnswerRe: odbc enumeration... Pin
rwestgraham22-Sep-05 10:53
rwestgraham22-Sep-05 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.