• λ我爱Aspx >> Asp.Net >> 在系统菜单中添加自定义菜单项
  • 在系统菜单中添加自定义菜单项

  • :未知  Դ:internet  :2007-5-20 16:44:31  ؼ:
  • /// </summary>

    private void InitializeComponent()

    {

    //

    // Form1

    //

    this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);

    this.ClientSize = new System.Drawing.Size(571, 441);

    this.Name = "Form1";

    this.Text = "Form1";

    this.Load += new System.EventHandler(this.Form1_Load);

    }

    #endregion

    /// <summary>

    /// 应用程序的主入口点。

    /// </summary>

    [STAThread]

    static void Main()

    {

    Application.Run(new Form1());

    }

    private void Form1_Load(object sender, System.EventArgs e)

    {

    int m=GetSystemMenu(this.Handle.ToInt32(),0);

    AppendMenu(m,0,0,null);

    AppendMenu(m,0,901,"C# Menu");

    }

    protected override void WndProc(ref Message m)

    {

    base.WndProc (ref m);

    if(m.Msg==0x112)

    {

    if(m.WParam.ToInt32()==901)

    {

    MessageBox.Show("被Click!");

    }

    }

    }

    }

    }

    Ҷƪл˵?
  • һƪ使用ASP.NET中调用WebService时不能以Name为数据库中的字段
    һƪ利用SOAP(Webservice)上传文件