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!

Search results for query: *

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

    MDI Forms

    That i what i currently have but it isnt working : Here is my exact code :-- frmPCRStatus form1 = new frmPCRStatus(); form1.MdiParent = this.MdiParent; form1.StartPosition = FormStartPosition.CenterScreen; form1.WindowState = FormWindowState.Maximized...
  17. danielkelly

    MDI Forms

    Now that i have all the above working the issue i have found is with regards to Form Size. My Main menu Bar is a small form that looks like a toolbar. When i click on one of the buttons on the bar it opens up a form which i have set its WindowState to Maximised. When I close this form down...
  18. danielkelly

    MDI Forms

    Thanks, that works like a treat. How would I go about checking if a particular form is already open?? If a user minimizes one of the MDI children forms, and then clicks on the main menu to open it. I dont want it to open a new form but restore the minimized version. Thanks..
  19. danielkelly

    Form Methods

    I have followed the above code but have still yet to get it working. Here is my code sample :- frmPCRStatus = Main Form frmEdit = Editing Form In the frmEdit I have at the top public event EventHandler UpdateStatus; In the Parent (calling form frmPCRStatus) I have the following :-...
  20. danielkelly

    Sockets

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

Part and Inventory Search

Back
Top