VB6 - MSPropshell Tab displaying improperly when Second WME
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
VB6 - MSPropshell Tab displaying improperly when Second WME

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders
Author Message
Bill N.
Guest





Posted: Tue Sep 21, 2004 12:23 am    Post subject: VB6 - MSPropshell Tab displaying improperly when Second WME Reply with quote

Using Visual Basic 6 - MSPropshell Tab displaying improperly when Second WME
file is loaded into it.

Have a WME Editing Program that I wrote that will load selected WME File,
allow the end-user to edit it, then allow saving WME Data.

Problem comes in when the second time through for the MSPropShell where the
First Tab shows nothing until you click on another tab in it and then click
on the First Tab.

This is a partial listing from the Subroutine that builds the MSPropShell...
(PageShell is the MSPropShell on the Form.) All appropriate variables are
initialized and defined properly.

This routine is used every time I build a load a WME File.

Everything else works in my WME Editor Program except for the annoyance of
Blank on the first tab when the second WME file is loaded.

---
..
..
..

' Clear Encoder Buffer
Encoder.Flush

' Load Selected WME File
Encoder.Load (ProcessFile)

On Error GoTo err_handler

' Remove All associated objects and pages so we don't end up with multiple
' sets of tabs
PageShell.RemoveAllObjects
PageShell.RemoveAllPages

' Create the Encoder Property Pages
Dim PpgSources As New WMEncSourcesAltPage
Dim PpgDesc As New WMEncDisplayInfoPage
Dim PpgAttr As New WMEncAttributesPage
Dim PpgEnc As New WMEncProfilePage
Dim PpgOutput As New WMEncOutputPage
Dim PpgVidSize As New WMEncVideoSizePage
Dim PpgProcessing As New WMEncProcessingPage
Dim PpgPlugins As New WMEncPluginsPage
Dim PpgSecurity As New WMEncDRMPage
Dim PpgAdvanced As New WMEncAdvancedPage

' Add the Encoder to the Page Shell
PageShell.AddObject Encoder

' Add the Encoder Property Pages to the Page Shell
PageShell.AddPage PpgSources
PageShell.AddPage PpgDesc
PageShell.AddPage PpgEnc
PageShell.AddPage PpgOutput
PageShell.AddPage PpgVidSize
PageShell.AddPage PpgProcessing
PageShell.AddPage PpgPlugins
PageShell.AddPage PpgSecurity
PageShell.AddPage PpgAdvanced

PageShell.Refresh

Exit Sub

err_handler:

MsgBox "Error adding encoder property pages"

..
..
..
---

Any hints on how to resolve this?

Bill N.

Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB