亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

C#-TextBox-登錄表單password無形---ShinePans

系統(tǒng) 1985 0
      using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TextBox_1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            textBox1.PasswordChar = '@'; //設(shè)置文本框的PasswordChar屬性為字符@
            textBox2.UseSystemPasswordChar = true;
            //設(shè)置文本框的UseSystemPasswordChar屬性為True;
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
    




program.cs:

      using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace TextBox_1
{
    static class Program
    {
        /// <summary>
        /// 應(yīng)用程序的主入口點(diǎn)。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //Enabled 獲取或設(shè)置一個(gè)值,該值指示控件能否夠?qū)τ脩艚换プ龀鲰憫?yīng)
            //ForeColor:獲取或設(shè)置控件的前景色
            //Modifiers:指示TextBox控件的可見性級(jí)別
            //Multiline://獲取或設(shè)置字符,該字符用于
            //PasswordChar:獲取或設(shè)置字符
            //                          :public char PasswordChar{get; set;}
            //ReadOnly:獲取或設(shè)置一個(gè)值,該值指示文本框中的文本是否為僅僅讀
            //               :public bool ReadOnly{get ; set; }
            //               :TextBox.ReadOnly=true;  將文本設(shè)置為僅僅讀
            //RightToLeft:獲取或設(shè)置一個(gè)值.該值指示是否將控件的元素對(duì)齊以支持使用從右向左的字體區(qū)域設(shè)置
            //ScrollBars:獲取或設(shè)置哪些滾動(dòng)欄應(yīng)出如今多行TextBox控件中
            //Text:獲取或設(shè)置TextBox控件的文本
            //UseSystemPasswordChar:獲取或設(shè)置一個(gè)值,該值指示TextBox控件中的文本是否應(yīng)該以默認(rèn)的password字符顯示
            //                                              :public Bool UseSystemPasswordChar{get ;set ;}
            //Visible:獲取或設(shè)置一個(gè)值,該值指示是否顯示該控件及其全部父控件
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());

        }
    }
}

    

Form設(shè)計(jì):

      namespace TextBox_1
{
    partial class Form1
    {
        /// <summary>
        /// 必需的設(shè)計(jì)器變量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理全部正在使用的資源。
        /// </summary>
        /// <param name="disposing">假設(shè)應(yīng)釋放托管資源,為 true。否則為 false。
      

</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows 窗口設(shè)計(jì)器生成的代碼 /// <summary> /// 設(shè)計(jì)器支持所需的方法 - 不要 /// 使用代碼編輯器改動(dòng)此方法的內(nèi)容。 /// </summary> private void InitializeComponent() { this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(155, 27); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(121, 21); this.textBox1.TabIndex = 0; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(155, 77); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(121, 21); this.textBox2.TabIndex = 1; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(66, 30); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(83, 12); this.label1.TabIndex = 2; this.label1.Text = "PassWordChar:"; this.label1.Click += new System.EventHandler(this.label1_Click); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(12, 80); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(137, 12); this.label2.TabIndex = 3; this.label2.Text = "UseSystemPassWordChar:"; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(318, 151); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.textBox2); this.Controls.Add(this.textBox1); this.Name = "Form1"; this.Text = "登錄"; this.Load += new System.EventHandler(this.Form1_Load); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; } }


C#-TextBox-登錄表單password無形---ShinePans

版權(quán)聲明:本文博客原創(chuàng)文章。博客,未經(jīng)同意,不得轉(zhuǎn)載。

C#-TextBox-登錄表單password無形---ShinePans


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦?。?!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 亚洲国产精品悠悠久久琪琪 | 国产精品久久久久秋霞影视 | 国产农村妇女毛片精品久久久 | 精品精品国产理论在线观看 | 欧美特黄a级高清免费大片 欧美特黄a级猛片a级 | 国产精品免费看久久久麻豆 | 亚洲精品6久久久久中文字幕 | 欧美日韩亚洲国产无线码 | 国产精品人人视频 | 欧美中文在线 | 天天插天天干天天操 | 亚洲欧美一区二区三区麻豆 | 日本免费的一级绿象 | 国内精品哆啪啪 | 国产成人在线视频免费观看 | 国产v视频| 男人深夜网站 | 韩国高清不卡一区二区 | 四虎最新在线 | 精品综合久久久久久99 | 久久69| 色网址在线| 99精品高清视频一区二区 | 91福利片| 精品一区二区在线欧美日韩 | 国产高清一级毛片在线不卡 | 同性女女黄h片在线播放 | 色综合久久中文色婷婷 | 亚洲香蕉国产高清在线播放 | 亚洲欧美久久精品 | 婷婷夜夜躁天天躁人人躁 | 在线欧美视频免费观看国产 | 玖玖精品视频在线 | 久久996re热这里有精品 | 噜噜色噜噜色 | 亚洲视频www | 欧美色xxx| 亚洲视频一区在线 | 宅男噜噜噜66一区二区 | 香蕉视频在线看 | 亚洲精品色婷婷在线影院麻豆 |