blah blah blah is here! blah blah » Close

0
votes
1 answers

Removing part of a string from a file

I am creating a file with some text codes. In the file if I encounter "G95" in the following format: "G95X-0.4323Y-0.3791I-0.2162J-0.1896" Then how can I just remove "G95" from the above line stored in a ...

0
votes
3 answers

Button Click events

Hi, I have the following code to select the file and display the content in a text box: private void Open_File_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog1 = new OpenFileDialog(); ...

0
votes
1 answers

displaying only filename in a label

I have a label that is used to display name of the file in the textbox. I am selecting the file and displaying it on a textbox using openfile dialog box and streaming through the file using streamreader. When the user selects the file fr ...

0
votes
1 answers

Removing carriage return and displaying in textbox

I have a text box that displays value from a set of variables. It displays values with a carriage return in only one text box. How do we remove the carriage return and display the values in their respective text boxes. The values are ...

0
votes
1 answers

List<T> class

Could anyone explain the concept of System.Collections.Generic.List<T> class?

0
votes
1 answers

ASP.NET insertion and joining between tables

I have the following tables: 1.) PRODUCT_INFORMATION: "ID", "CUST_ID", "DISTR_ID", "PROD_ID", "CNC_ID" 2.) CUSTOMERS: "ID", "CUSTOMER_NAME" 3.) DISTRIBUTORS: &qu ...

0
votes
1 answers

Inserting data from text box

Hi All, I am trying to insert data in one of the tables using SQL Server. Below is the sql command: string insertSQL = "Insert into CUSTOMERS (" + " CUSTOMER_NAME" + ") VALUES ...

1
votes
0 answers

inserting data in multiple tables

Dear ALL, I have an issue with SQL queries but it is directly related to ADO.NET objects for our ASP page. I am using C# to create a customer service portal to track telephone calls from our customers. I am creating the database using sq ...

0
votes
1 answers

ADO.NET displaying items in DropDown list control

Hi, I am using MS SQL for database. I have made appropriate connection string and able to connect to the database. I have created an EMPLOYEE table and in my sql command I have issued: SELECT First_Name, Last_Name FROM EMPLOYEE. Us ...

0
votes
1 answers

Sending data on ASCII based protocol

Dear All, I have strings for data on windows forms stored in list boxes and text boxes. I want to communicate with a hardware through RS-232 serial communication and want to send data on ASCII-based protocol. Could anyone suggest where ...

0
votes
1 answers

XML data binding in Windows Form textbox

Hi, I have an XML file that looks like following: <Speed> <maxspeed>50</maxspeed> <highjogspeed>10</highjogspeed> <mediumjogspeed>10</mediumjogspeed> <slowjogspeed>10</slowjogspee ...

0
votes
0 answers

Data Binding with Windows Form

Dear All, I have created a dataset and datatables using Visual Studio Designer Tools. The database is from a SQL Server express edition. I have created windows form with combo boxes and text boxes where I would like to display the dat ...

1
votes
3 answers

Decimal place in textbox

Hi, I would like to display 4 decimal places in a textbox. Following is the code I have written: Y_Encoder_Pos.Text = System.Convert.ToString(Globals.motorPos); Y_Encoder_Pos.Text = String.Format("{0:0.0000}"); There is ...

0
votes
2 answers

Custom User Controls on Windows Form

Hi, Is there anyone to guide my how to draw a user control on windows form to display code generated images such as rectangle, circle or triangle.

0
votes
1 answers

Displaying double value in Textbox

Following is the code: private void button1_Click(object sender, EventArgs e) { Globals.Turbo.GetPosition(Globals.device_number, 1, 0, out Globals.motorPos); X_Encoder_Pos.Text = Global ...

Feedback