Jan 5th, 2008, 12:19 PM
#1
Thread Starter
PowerPoster
[RESOLVED] Slider for movie?
Hey guys I have a media program and I was wondering how do I make a slider so I don't have to start over at the beginning of a movie? I am using MMcontrol. Thank you!
Jan 5th, 2008, 12:22 PM
#2
Frenzied Member
Re: Slider for movie?
Originally Posted by
Guy off Google
Code:
I'm not going to post any further regarding Fullscreen using MMControl.
A Slider is easy.
It works prettymuch the same as in the demo I posted
when you open a file :
MMControl1.Command = "Open"
Slider1.Max = MMControl1.Length
In the Timer Event
Private Sub Timer1_Timer()
Slider1 = MMControl1.Position
End Sub
(4 char)
Jan 5th, 2008, 12:31 PM
#3
Thread Starter
PowerPoster
Re: Slider for movie?
Thansk Zach, what is the slider component called in VB?
Jan 5th, 2008, 12:34 PM
#4
Frenzied Member
Re: Slider for movie?
I don't know.
But there is a Slider component if you look at "Microsoft Windows Common Controls 6.0 (SP6)"
Jan 5th, 2008, 01:05 PM
#5
Re: Slider for movie?
The slider control in VB 6 is the Slider control mentioned. There isnt any other builtin MS one.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 5th, 2008, 06:54 PM
#6
Thread Starter
PowerPoster
Re: Slider for movie?
Ok I added a slider, but when I tried to open any movie I get the error invalid property value and it highlights the code Slider1.Max = MMControl1.Length
Jan 5th, 2008, 08:06 PM
#7
Re: Slider for movie?
Check the values at that line by placing a breakpoint or doing a Debug.Print MMControl1.Length
Did you set the Slider.Max property to the MMControl1.Length?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 5th, 2008, 11:08 PM
#8
Thread Starter
PowerPoster
Re: Slider for movie?
I did, but i have been told it would be better to use media player control, how would a slider1 work with thaT?
Jan 5th, 2008, 11:10 PM
#9
Re: Slider for movie?
Yes, I told you to use the MP control
Why do you need a slider when MP has the play line built in?
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 5th, 2008, 11:31 PM
#10
Thread Starter
PowerPoster
Re: Slider for movie?
lol its a good thing you told me that too, while a move was playing with MMcotnrol my main form would freeze.
I am user Bytes project and expanding from there.
Originally Posted by
BytePtr
Check attachement for simple example i coded for you.
You can change the
Code:
wmp.URL = "C:\WINDOWS\CLOCK.AVI"
to something else of course.
I don't think there is a slider in that proj, there s volume control, but thats it.
edit whoops the attached proejct
Attached Files
Jan 5th, 2008, 11:38 PM
#11
Re: Slider for movie?
I think its an older version of WMP or there may be a setting to hide the controls. When I add a new WMP control to the form I get it just as you would expect: Play button, timeline slider, volume control etc.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 5th, 2008, 11:42 PM
#12
Thread Starter
PowerPoster
Jan 5th, 2008, 11:45 PM
#13
Re: Slider for movie?
Me too. Maybe Bytes can post what version or how he got it to be control-less.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 5th, 2008, 11:49 PM
#14
Re: Slider for movie?
Ah found it.
Custom properties > General tab > Controls layout > Select a mode (dropdown) > select "Full" > click OK.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 6th, 2008, 12:01 AM
#15
Thread Starter
PowerPoster
Re: Slider for movie?
Thanks for finding it, umm where are the custom properties? lol
Jan 6th, 2008, 12:10 AM
#16
Frenzied Member
Re: Slider for movie?
In Properties Explorer, I think it is Custom
Jan 6th, 2008, 12:11 AM
#17
Re: Slider for movie?
Select the WMP on your form. Then in the propertygrid its the first property - "Custom" and there will be an elipsis button "(...)". Click it and then you will be at the property page to change the setting.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Jan 6th, 2008, 12:38 AM
#18
Thread Starter
PowerPoster
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