Hi All,
Im hoping someone can assist me with a project I am working on. I have a device connected to the serial port which is continuously sending data. I have included relevant code below.
I am trying to read this data into a buffer for processing as I will be looking for certain characters...
Hi All,
I hoping someone can assist me with the problem I am having. I have an application which Im writing that has a timer which on its tick event updates a label which displays the time on the screen. This worked perfectly until I decided to change the form to make it global.
I have a...
Hi,
Im having some difficulties understanding how best to get around my problem. Basically inside a method I am checking for the existance of various Registry Keys to ensure the correct structure is in place. The actual Method below is called CheckRegistryKeys().
Here is a code Snippet :-...
Hi All,
I have created my first custom user control which is basically a CheckBox displayed as a button with a few labels on it. Now Im struggling a bit with understanding the concepts of how events should be working.
When I go into my User Control and click on the CheckBox, I created an...
Hi,
Im populating a Rich Text Box from a Database and I want to draw a line / write a series of underscores ( eg ------) to indicate a seperation between certain lines in the Textbox.
My issue is I want this line to fill the complete Richtextbox width. I cant figure out how to calculate this...
Hi,
I have a DataGridView control on a POS application I am writing as a project. I am having issues when trying to remove certain items from the control. Below is an example :-
1 Item 1 $5.00
-Extra 1
-Extra 2
1 Item 2 $10.00
1 Item 3...
Hi All,
Im developing a POS application as part of a personal project. The project has a Datagridview which has the items being sold (Quantity,Item Name, Price etc). The Datagridview is on the left of the screen and on the bottom right is my virtual keypad which is basically just a series of...
Hi All,
Im hoping someone can give me an idea on what I may be doing wrong (if anything). In my project I have a Combo Box which I populate from a SQL Database (using a Dataset and a for statement looping through each record). I have done it on form load and it works well however I decided to...
Hi All,
I'm having some problems finding the correct Forms event from which to fire my code. I want to run a sequence of code automatically once a form is displayed on the screen.
Form_load isn't correct as my code finished before the form is displayed.
Form_Shown doesn't seem to trigger...
Hi,
Im after some advice on how to handle my Text File Operations. I have a Windows Service that writes log information to a text File. Events such as Service Stop / Start, Diagnostic Information etc.
My question is should I open the log file and keep it open while the service is running and...
I was hoping someone may be able to give me some feedback on my design principles. I have done alot of applications relating to databases etc in c# but this is my first try at a Client / Server application. I wannted to check some of the recommended ways of performing client / server actions...
I am trying to create an application that simply starts listening on a specific port number on the local machine, and writes all data received to a text box on the form. There will be a 3rd party application that is sending data th my IP address on a specifi port number.
From what ive been...
I have an application that shows a datagrid and when i double click on a cell, it opens a new form with the details of the selected row so i can edit the values.
The question i have is how can I tell the main datagridview to refresh once i save the record.
I am populating the datagridview from...
Hoping someone can provide some assistance with an MDI application I am creating.
Basically i have a parent container and my first child form is a login form where the user enters their logni credentials. This is done by
frmLogin form1 = new frmLogin();
frmLogin.mdiParent = this...
I am trying to communicate with a serial device using Net Framework 2 and the Serial Port Class. I have a protocol definition written in VB which I am having problems converting to C#. The main problem I seem to be having is in the ASCII conversion.
The VB code is Chr$(255) //Hex Value 255...
I have a series of textboxes on a Windows Form and a Series of buttons aswell. What I am trying to achieve sounds quite simple but I cannot figure out how to do it. Basically all Im trying to achieve is each button has some predefined text associated with it and when the user clicks the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.