+
۲

برنــــــــــــامه نویسی تمرکز - بدست آوردن طول یک رشته در سی شارپ (اینجا کلیک کنید)

برنــــــــــــامه نویسی تمرکز - بدست آوردن طول یک رشته در سی شارپ

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 test_test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button4_Click(object sender, EventArgs e)
{

string strData;
strData = textBox1.Text;
MessageBox.Show(strData.Length + "charecter(s)", "string");
}
}
}

 

رای دهندگان

دیدگاهتان را بنویسید