propertyGrid          System.Windows.Forms.PropertyGridSample:
propertyGrid1.SelectedObject = linkLabel1;

解决方案 »

  1.   

    顺便问一句:我们设置Session["user"]的时候,是不是没有有Global.asax这个文件也行啊?好像不行
      

  2.   

    装了快速入门吗?
    C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\QuickStart\winforms\samples\printing\simplepad\cs
    自己看吧!源代码
    http://localhost/quickstart/util/srcview.aspx?path=/quickstart/winforms/Samples/Printing/SimplePad/SimplePad.src注意option菜单的代码!!!!!!!!!!!!!!!!!!!!!!!namespace Microsoft.Samples.WinForms.Cs.SimplePad {
        using System;
        using System.Drawing;
        using System.Collections;
        using System.ComponentModel;
        using System.Windows.Forms;
        public class OptionsForm : System.Windows.Forms.Form {
            /// <summary>
            ///    Required designer variable.
            /// </summary>
            private System.ComponentModel.Container components;
            protected internal Button okButton;
            protected internal PropertyGrid grid;        private object customizer;        public OptionsForm(object customizer) {
                //
                // Required for Windows Form Designer support
                //
                InitializeComponent();            this.customizer = customizer;
                grid.SelectedObject = customizer;
            }
      

  3.   

    感谢无间道:
    但您所说的是属性的设置方法。
    我想要的是:如果当您把鼠标放进一个文本框时,在右边会出现一个类似与listbox控件的东西,他会自动的列出您在文本框中需要输出的内容,当您双击它时,它会自动跳进文本框,既能给您提醒需要输入什么内容,又能省略掉您的输入。
    谢谢
      

  4.   

    你可以用dropdownlist控件和数据库绑定,而且可以设定显示的值和存放在数据库后台的值不就可以了吗?
    ColorList.DataSource = CreateDataSource()
    ColorList.DataTextField = "ColorTextField"
    ColorList.DataValueField = "ColorValueField"