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...
I need to have access to my Main Form from all other forms. This is because of the design and layout of the application.
For forms that open directly from the Main Form I can pass an instance of the main form in as a constructor but what about sub-forms of those forms?
I thought global...
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...
I will try to explain a bit better what I am trying to do and how I am currently doing it
1) I have created a new CustomUserControl called PageButton
2) On this control i have placed the following items :-
Checkbox (chkButton) displayed as a button
Label (lblName)
Label...
An update one the above. I realised that the code actually works perfectly but what I was missing was the design of the custom control..
I have a checkbox with 2 labels on it and it I click on the labels nothing happens, obviously as they have no events to fire when clicked.
Im not quite...
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...
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.