windows media player |
Post Reply |
Author | |
gbattig
Newbie Joined: 25 September 2007 Location: Canada Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 29 September 2007 at 2:32pm |
Hi Guys, I am currently in the process of creating an app and need to show the windows media player as a custom control in the ribbon bar example that is shipped with the samples when you purchase the control, how do I do this? I know it is something to do with the
xtpControlCustom Thanks,
Greg
|
|
gbattig
Newbie Joined: 25 September 2007 Location: Canada Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Hi Guys, I am trying to show a wmp player in the ribbon bar so far I have no luck here is the code I am using can you please shed some light?
GroupClipboard = TabPageLayout.Groups.AddGroup( "&Video/Music", ID_GROUP_CLIPBOARD) Dim MyMusicPlayer As XtremeCommandBars.CommandBarControlCustomMyMusicPlayer = GroupClipboard.Add(XtremeCommandBars.XTPControlType.xtpControlCustom, 113, "Music player")AxWindowsMediaPlayer1 = New AxWMPLib.AxWindowsMediaPlayerAxWindowsMediaPlayer1.Visible = TrueAxWindowsMediaPlayer1.Width = 300 AxWindowsMediaPlayer1.CreateControl() MyMusicPlayer.Handle = AxWindowsMediaPlayer1.Handle.ToInt32()
Thanks, |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Its ActiveX control and have to be put in .NET object, so create some panel, put ActiveX to panel and attach panel to group:
MediaPanel = New Panel()MediaPanel.Size = New Size(200, 66) Me.AxWindowsMediaPlayer1 = New AxWMPLib.AxWindowsMediaPlayer() CType(Me.AxWindowsMediaPlayer1, System.ComponentModel.ISupportInitialize).BeginInit() Me.AxWindowsMediaPlayer1.Name = "AxWindowsMediaPlayer1" Me.AxWindowsMediaPlayer1.Size = New System.Drawing.Size(200, 66)MediaPanel.Controls.Add( Me.AxWindowsMediaPlayer1) CType(Me.AxWindowsMediaPlayer1, System.ComponentModel.ISupportInitialize).EndInit() Dim MyMusicPlayer As XtremeCommandBars.CommandBarControlCustomMyMusicPlayer = GroupClipboard.Add(XtremeCommandBars.XTPControlType.xtpControlCustom, 113, "Music player") MediaPanel.CreateControl() AxWindowsMediaPlayer1.CreateControl() MyMusicPlayer.Handle = MediaPanel.Handle.ToInt32() |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |