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

  • :未知  Դ:internet  :2007-5-20 16:44:31  ؼ:
  • Dim systemMenu As Integer = GetSystemMenu(Me.Handle.ToInt32(), 0)

    ' Create a separator

    AppendMenu(systemMenu, &HA000, 0, Nothing)

    ' Add the about menu item

    AppendMenu(systemMenu, 0, 100, "&About...")

    ============================

    上面是他的代码.

    但是我自己试了试.

    在添加分隔符的时候,参数2用 0也可以..一切正常.

    还没搞懂为什么要指定 0xA00 .

    嗬嗬...

    下面是我的代码:

    using System;

    using System.Drawing;

    using System.Collections;

    using System.ComponentModel;

    using System.Windows.Forms;

    using System.Data;

    using System.Runtime.InteropServices;

    namespace 包含程序

    {

    /// <summary>

    /// Form1 的摘要说明。

    /// </summary>

    public class Form1 : System.Windows.Forms.Form

    {

    /// <summary>

    /// 必需的设计器变量。

    /// </summary>

    [DllImport("user32.dll")]

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