1
任何人都可以解釋如何在c#.net winforms應用程序中嵌入64位VLC ActiveX控件。對於32位版本,添加來自設計者的控件添加了對AxAxVLC和AXVLC的引用。對於64位,我只能弄清楚如何手動添加AXVLC引用,它似乎沒有winforms控件屬性和方法,如vlc.CreateControl()或vlc.Location。如何將64位VLC ActiveX控件添加到c#winform
下面是32位嵌入代碼:
vlc1 = new AxAXVLC.AxVLCPlugin2();
vlc1.CreateControl();
((System.ComponentModel.ISupportInitialize)(vlc1)).BeginInit();
vlc1.Location = new Point(10, 10);
vlc1.Name = "vlc1";
vlc1.OcxState = ((System.Windows.Forms.AxHost.State) (resources.GetObject("vlc.OcxState")));
vlc1.Size = new System.Drawing.Size(240, 180);
vlc1.TabIndex = 0;
this.Controls.Add(vlc1);