How to search through all items of a combobox in C#?امتیاز دهی به این نوشته بدست آوردن متن همه آیتمهای داخل یک کومبو باکس در برنامه نویسی با C# I have a combobox, and I would like to search through every element in it. How can I do this? (also the number of items is not the same everytime, but …
ادامه نوشته »بایگانی برچسب: c#
خطا در زمان بیلد پروژه RROR OCCURRED WHILE SIGNING
خطا در زمان بیلد پروژه RROR OCCURRED WHILE SIGNINGامتیاز دهی به این نوشته VISUAL STUDIO 2015 – AN ERROR OCCURRED WHILE SIGNING: FAILED TO SIGN SIGNTOOL ERROR: NO CERTIFICATES WERE FOUND THAT MET ALL THE GIVEN CRITERIA Getting An error occurred while signing: Failed to sign file.exe. SignTool Error: No certificates were found that met all the given criteria در …
ادامه نوشته »split ، تقسیم و جدا کردن یک متن بر اساس یک کاراکتر
split ، تقسیم و جدا کردن یک متن بر اساس یک کاراکتر5 (100%) 1 vote How do I split a string by a multi-character delimiter in C# ? What if I want to split a string using a delimiter that is a word? string source = “[stop]ONE[stop][stop]TWO[stop][stop][stop]THREE[stop][stop]”; string[] stringSeparators = new string[] {“[stop]”}; string[] result; // … result = source.Split(stringSeparators, …
ادامه نوشته »Asp.net webforms 4.5 TreeView Populate from Database SQL
Asp.net webforms 4.5 TreeView Populate from Database SQL5 (100%) 1 vote نمایش ساختار درختی سلسله مراتبی در asp.net webforms ورژن ۴٫۵ string str_ConnectionStrings; protected void Page_Load(object sender, EventArgs e) { str_ConnectionStrings = ConfigurationManager.ConnectionStrings[“Atlas_PublicConnectionString”].ConnectionString; BindTreeViewControl(); } DataSet P_Dataset(string str_SQL) { SqlDataAdapter adp = new SqlDataAdapter(str_SQL, str_ConnectionStrings); DataSet obj_DataSet = new DataSet(); adp.Fill(obj_DataSet, “TableName”); return obj_DataSet; } private void BindTreeViewControl() { try …
ادامه نوشته »Search and Highlight Text in a RichTextBox
Search and Highlight Text in a RichTextBoxامتیاز دهی به این نوشته tep 1: Create a new Windows Forms application. Drag and drop a RichTextBox(rtb) control, a textbox(txtSearch) and a button(btnFind) control to the form. The textbox will be used to enter the search string and on the button click, we will be performing a search in the RichTextBox. Add a …
ادامه نوشته »Get plain text from an RTF text
Get plain text from an RTF textامتیاز دهی به این نوشته
ادامه نوشته »بدست آوردن مشخصات فلش مموری در C# Finding a USB mass storage devices “disk letter” by its PID and VID number or name
بدست آوردن مشخصات فلش مموری در C# Finding a USB mass storage devices “disk letter” by its PID and VID number or nameامتیاز دهی به این نوشته void P_Add(string str_Input) { txt_new_Temp.Text += Environment.NewLine + str_Input; } private void button2_Click(object sender, EventArgs e) { ManagementObjectSearcher diskDrives = new ManagementObjectSearcher(“SELECT * FROM Win32_DiskDrive WHERE InterfaceType=’USB'”); foreach (ManagementObject diskDrive in diskDrives.Get()) { …
ادامه نوشته »اضافه کردن آیتم به لیست باکس در C# How might I add an item to a ListBox?
اضافه کردن آیتم به لیست باکس در C# How might I add an item to a ListBox?امتیاز دهی به این نوشته list.Items.add(new ListBoxItem("name", "value")); The internal (default) data structure of the ListBox is the ListBoxItem. You can choose what do display using the DisplayMember of the ListBox. List<SomeData> data = new List<SomeData>(); data.Add(new SomeData() { Value = 1, Text= "Some …
ادامه نوشته »خواندن یک فیلد فایل xml در in C#C# :: Read All rows of one field from XML
خواندن یک فیلد فایل xml در in C#C# :: Read All rows of one field from XMLامتیاز دهی به این نوشته یک کد کاربردی برای خواندن همه رکوردهای یک فیلد فایل XML در C# XML File: ۱ گروه فنی مهندسی پرهاست http://www.ParHost.net گروه فنی مهندسی پرهاست ارائه دهنده خدمات و سرویسهای اینترنتی ۲۸۵۸ ۱ <Null> <Null> ۲ یادداشتها و …
ادامه نوشته »تغییر زبان اتوماتیک بصورت اتوماتیک از فارسی به انگلیسی و برعکس در نرم افزار
تغییر زبان اتوماتیک بصورت اتوماتیک از فارسی به انگلیسی و برعکس در نرم افزارامتیاز دهی به این نوشته فرض کنید که دو نرم افزاری که دارید مینویسید چند تا TextBox بر روی فرم دارید و قرار است در یکی از آنها ایمیل (انگلیسی) بنویسید و در دیگری نام خود را به صورت فارسی تایپ کنید، برای اینکه از دکمه های …
ادامه نوشته »