using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using RMS;namespace VIP
{
/// <summary>
/// VIPInfo_Update 的摘要说明。
/// </summary>
public class VIPInfo_Query : System.Windows.Forms.Form
{

private System.Windows.Forms.ComboBox yesno;
private System.Windows.Forms.ComboBox marrige;
private System.Windows.Forms.ComboBox sex;

private System.Windows.Forms.TextBox profession;
private System.Windows.Forms.TextBox vipname;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
VIPInfo v;// public string str1="";//会员编号
public string str3="";//会员姓名
public string str4="";//加入日期
public string str5="";//职业
public string str6="";//性别
    public string str7="";//婚否
public string str8="";//生日
public string str9="";//是否员工
public string str2;
private System.Windows.Forms.DateTimePicker birthday1;
private System.Windows.Forms.DateTimePicker enterdata1;
private System.Windows.Forms.TextBox enterdata;
private System.Windows.Forms.TextBox birthday;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private PinkieControls.ButtonXP buttonXP1;
private PinkieControls.ButtonXP buttonXP2;

解决方案 »

  1.   

    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.Container components = null; public VIPInfo_Query(VIPInfo vi)
    {
    //
    // Windows 窗体设计器支持所必需的
    //
    InitializeComponent();
    v=vi;
              
    //
    // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
    //
    } /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    protected override void Dispose( bool disposing )
    {
    if( disposing )
    {
    if(components != null)
    {
    components.Dispose();
    }
    }
    base.Dispose( disposing );
    }
      

  2.   

    private void InitializeComponent()
    {
    System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(VIPInfo_Query));
    this.yesno = new System.Windows.Forms.ComboBox();
    this.marrige = new System.Windows.Forms.ComboBox();
    this.sex = new System.Windows.Forms.ComboBox();
    this.birthday1 = new System.Windows.Forms.DateTimePicker();
    this.enterdata1 = new System.Windows.Forms.DateTimePicker();
    this.profession = new System.Windows.Forms.TextBox();
    this.vipname = new System.Windows.Forms.TextBox();
    this.label11 = new System.Windows.Forms.Label();
    this.label10 = new System.Windows.Forms.Label();
    this.label9 = new System.Windows.Forms.Label();
    this.label5 = new System.Windows.Forms.Label();
    this.label4 = new System.Windows.Forms.Label();
    this.label3 = new System.Windows.Forms.Label();
    this.label2 = new System.Windows.Forms.Label();
    this.enterdata = new System.Windows.Forms.TextBox();
    this.birthday = new System.Windows.Forms.TextBox();
    this.panel1 = new System.Windows.Forms.Panel();
    this.label7 = new System.Windows.Forms.Label();
    this.label6 = new System.Windows.Forms.Label();
    this.buttonXP1 = new PinkieControls.ButtonXP();
    this.buttonXP2 = new PinkieControls.ButtonXP();
    this.panel1.SuspendLayout();
    this.SuspendLayout();
    // 
    // yesno
    // 
    this.yesno.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    this.yesno.Items.AddRange(new object[] {
       "是",
       "否"});
    this.yesno.Location = new System.Drawing.Point(280, 185);
    this.yesno.Name = "yesno";
    this.yesno.Size = new System.Drawing.Size(152, 20);
    this.yesno.TabIndex = 130;
    // 
    // marrige
    // 
    this.marrige.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    this.marrige.Items.AddRange(new object[] {
     "是",
     "否"});
    this.marrige.Location = new System.Drawing.Point(280, 160);
    this.marrige.Name = "marrige";
    this.marrige.Size = new System.Drawing.Size(152, 20);
    this.marrige.TabIndex = 127;
    // 
    // sex
    // 
    this.sex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    this.sex.Items.AddRange(new object[] {
     "男",
     "女"});
    this.sex.Location = new System.Drawing.Point(80, 160);
    this.sex.Name = "sex";
    this.sex.Size = new System.Drawing.Size(120, 20);
    this.sex.TabIndex = 124;