Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by danielkelly

  1. danielkelly

    Buffering Serial Port Data

    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...
  2. danielkelly

    Global Windows Form

    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...
  3. danielkelly

    Global Windows Form

    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...
  4. danielkelly

    Custom User Control and Events

    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...
  5. danielkelly

    Custom User Control and Events

    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...
  6. danielkelly

    Returning To Start of Method / Function

    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 :-...
  7. danielkelly

    Custom User Control and Events

    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...
  8. danielkelly

    RichText Box Line

    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...
  9. danielkelly

    DataGridView And Deleting Rows

    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...
  10. danielkelly

    DataGridView and On Screen Keyboard

    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...
  11. danielkelly

    Thread Performance

    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...
  12. danielkelly

    Windows Form Events

    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...
  13. danielkelly

    To Close Text File or Not To Close

    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...
  14. danielkelly

    Client / Server Design Principles

    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...
  15. danielkelly

    MDI Forms

    If you dont mind, could you give me a brief example.. I have never heard of a Singleton and how it is used. Regards, Daniel.

Part and Inventory Search

Back
Top