Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

windows form textbox password

public void CreateMyPasswordTextBox()
{
    // Create an instance of the TextBox control.
    TextBox textBox1 = new TextBox();
  
    // Set the maximum length of text in the control to eight.
    textBox1.MaxLength = 8;
  
    // Assign the asterisk to be the password character.
    textBox1.PasswordChar = '*';
  
    // Change all text entered to be lowercase.
    textBox1.CharacterCasing = CharacterCasing.Lower;
  
    // Align the text in the center of the TextBox control.
    textBox1.TextAlign = HorizontalAlignment.Center;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# list 
Csharp :: dns ttl meaning 
Csharp :: c# list declaration 
Csharp :: wpf arrow button 
Csharp :: how to make a enter in C# string 
Csharp :: how to open onscreen keyboard c# 
Csharp :: c# execute shell command 
Csharp :: how to save a dictionary as a csv file in c# 
Csharp :: c# remove rows from datatable 
Csharp :: how use unity interfaces 
Csharp :: C# monogodb 
Csharp :: system linq c# 
Csharp :: website link c# 
Csharp :: how c# connection 
Csharp :: c# get all namespaces in assembly 
Csharp :: unity 2d 
Csharp :: exceldatareader example c# 
Csharp :: c# char 
Csharp :: C# clear console input buffer 
Csharp :: c# check if char is string 
Csharp :: while c# 
Csharp :: c# constructor call another constructor 
Csharp :: c# xml to json 
Csharp :: c# read all lines from filestream 
Csharp :: Reverse Coding Challenge 1 
Csharp :: all Substring of String 
Csharp :: unity vector3 to array 
Csharp :: httpget query parameters c# 
Csharp :: c# remove all items from list where item value is null 
Csharp :: regex for accepting a file name c# 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =