I got error wen compiling this source code c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cp0462
    New Member
    • Aug 2013
    • 1

    I got error wen compiling this source code c#

    Code:
    amespace USS.Controls
    {
        partial class cWatchVideo
        {
            /// <summary> 
            /// Required designer variable.
            /// </summary>
            private System.ComponentModel.IContainer components = null;
    
            /// <summary> 
            /// Clean up any resources being used.
            /// </summary>
            /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
            protected override void Dispose(bool disposing)
            {
                if (disposing && (components != null))
                {
                    components.Dispose();
                }
                base.Dispose(disposing);
            }
    
            #region Component Designer generated code
    
            /// <summary> 
            /// Required method for Designer support - do not modify 
            /// the contents of this method with the code editor.
            /// </summary>
            private void InitializeComponent()
            {
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(cWatchVideo));
                this.Wmp1 = new AxWMPLib.AxWindowsMediaPlayer();
                ((System.ComponentModel.ISupportInitialize)(this.Wmp1)).BeginInit();
                this.SuspendLayout();
                // 
                // Wmp1
                // 
                this.Wmp1.Dock = System.Windows.Forms.DockStyle.Fill;
                this.Wmp1.Enabled = true;
                this.Wmp1.Location = new System.Drawing.Point(0, 0);
                this.Wmp1.Name = "Wmp1";
                this.Wmp1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("Wmp1.OcxState")));
                this.Wmp1.Size = new System.Drawing.Size(480, 360);
                this.Wmp1.TabIndex = 0;
                this.Wmp1.Enter += new System.EventHandler(this.Wmp1_Enter);
                // 
                // cWatchVideo
                // 
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.AutoSize = true;
                this.Controls.Add(this.Wmp1);
                this.Name = "cWatchVideo";
                this.Size = new System.Drawing.Size(480, 360);
                ((System.ComponentModel.ISupportInitialize)(this.Wmp1)).EndInit();
                this.ResumeLayout(false);
    
            }
    
            #endregion
    
            private AxWMPLib.AxWindowsMediaPlayer Wmp1;
        }
    }

    the error is :
    Error 1 The type name 'AxWindowsMedia Player' does not exist in the type 'USS.Controls.A xWMPLib' C:\Users\Pincha s\Desktop\ultra tlast\Code\Cont rols\cWatchVide o.Designer.cs 62 26 USS
    Last edited by Rabbit; Aug 6 '13, 02:31 AM. Reason: Please use code tags when posting code.
  • vijay6
    New Member
    • Mar 2010
    • 158

    #2
    Hey cp0462, did you added 'AxWMPLib' reference to your project?

    Comment

    Working...