c# get value from textbox
string objTextBox = x.Text;
//Sample:
TextBox objTextBox = (TextBox)sender;
string theText = objTextBox.Text;
c# get value from textbox
string objTextBox = x.Text;
//Sample:
TextBox objTextBox = (TextBox)sender;
string theText = objTextBox.Text;
how to take input in c#
using System;
namespace beginner
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("what is your Name:- ");
string userName = Console.ReadLine();
Console.WriteLine("Hello: " + userName);
}
}
}
how to make an input in c#
string myName;
Console.WriteLine("Please, enter your full name here: ");
myName = Console.ReadLine();
Console.WriteLine("Hello, Mr. " + myName + "!");
Console.Key();
/* OR */
Console.WriteLine("Please, enter your full name: ");
string myName = Console.ReadLine();
Console.WriteLine("Hello, Mr. " + myName + "!");
Console.ReadKey();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us