About 9,780,000 results
Open links in new tab
  1. c# - Add label inside textbox control - Stack Overflow

    May 26, 2014 · I want to make a control which inherits from TextBox and which has a label inside which "sticks" to the right side of the text box and which text is not user-editable but rather is …

  2. How to provide name to the TextBox in C#? | GeeksforGeeks

    Apr 17, 2023 · Design-Time: It is the simplest way to set the Name property of the TextBox as shown in the following steps: Step 1: Create a windows form. As shown in the below image: …

  3. Display text in a box in a document with a button - Visual Studio ...

    Jan 11, 2024 · On the View menu, select Properties Window. Find TextBox1 in the Properties window drop-down box and change the Name property of the text box to displayText. Drag a …

  4. TextBox In C# - C# Corner

    Jun 20, 2024 · The following code snippet sets and gets the name and text of a TextBox control. dynamicTextBox.Name = "DynamicTextBox"; string name = dynamicTextBox.Name; Text, …

  5. How to set the Text in TextBox in C#? | GeeksforGeeks

    Apr 17, 2023 · Following steps are used to set the Text property of the TextBox: Step 1 : Create a textbox using the TextBox () constructor provided by the TextBox class. Step 2 : After creating …

  6. C# TextBox Controls - GeeksforGeeks

    Mar 25, 2025 · In C#, RichTextBox control is a textbox which gives you rich text editing controls and advanced formatting features also includes a loading rich text format (RTF) files. Or in …

  7. c# - Linking a Text Box to a variable? - Stack Overflow

    Mar 28, 2010 · You could use a property instead to read directly from your TextBox. That way you don't need an extra variable at all. public string Text { get { return richTextBox1.Text; } } Add a …

  8. How do you change the title or name of form1 in C#

    Aug 7, 2011 · You can use Form.Text property to get/set the title of the form either in design time or at runtime depending upon your requirement.

  9. c# - Adding placeholder text to textbox - Stack Overflow

    Aug 8, 2012 · public static void AddPlaceholderText(this TextBox textBox, string placeholderText) { if (string.IsNullOrWhiteSpace(textBox.Text)) textBox.Text = placeholderText; …

  10. TextBox Control Overview - Windows Forms | Microsoft Learn

    Learn how the TextBox control is used for editable text and can display multiple lines, wrap text to the size of the control and add basic formatting.

Refresh