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

    on update cascade does not update foreign key columns

    Do i create this procedure as a trigger that occurs each time i insert values into the primary table?
  2. nishasp

    on update cascade does not update foreign key columns

    Hi all, I am using an identity for a primary key. I have a foreign key in another table which references this primary key and for which the on update cascade is enabled. Does this mean that when i enter in a row for the table with the primary key, the table with the foreign key should also...
  3. nishasp

    Does a thread affect timer tick event

    Hi, I am running a thread that goes to sleep every 150ms. At some point in my application I enable a timer for it to make a button flash different colours. Although the timer gets enabled, it is not stepping through to the timer tick event to make the button flash. Does a thread affect the...
  4. nishasp

    Timer interval keeps changing

    Hi, I am running a serial communications application which should effectively run 24/7. I am using a timer tick event to send messages to the serial port, however i am finding that after the app has been running for 15-30mins, the messages are not being sent at the correct interval of 150ms...
  5. nishasp

    retaining the last state of a form when you re-open it

    Hi JC, How would i go about writing to a delimited text file with the settings stored? I would appreciate if you could show me some sample code. Thanks, nisha
  6. nishasp

    retaining the last state of a form when you re-open it

    Does anyone know how i can open up a form that keeps the last state of its controls as they were before the form was closed eg buttons are disabled when the form is closed, but when the form loads, the buttons are enabled, but need them to be disabled???
  7. nishasp

    Auto Complete text box

    Does anyone know how to create auto complete functionality for a text box??
  8. nishasp

    instance of form does not pass values to another form

    I don't want a new instance of the form as this then doesn't have the associated tag value that indexes the buttons. I have tried to create a new instance of form2 in form1, but then i am unable to get multiple instances of the same form...
  9. nishasp

    instance of form does not pass values to another form

    And another question again... I have the button control array that opens up different instances of form2. The problem is that if i click on a button more than once, it will keep opening up that same form. I need to click on a button, open up its associated form and only when it is closed can...
  10. nishasp

    instance of form does not pass values to another form

    It's really weird, but i restarted the computer and now the messages seem to be going through fine! So, thanks for that anyway!
  11. nishasp

    instance of form does not pass values to another form

    private void WaitTimer_Tick(object sender,System.EventArgs e) { if((this.Port.IsOpen) && (iJIGMsgString <32)) { //SendStr("a10e<2"); if(JIGString.Count == 31) { SendStr(JIGString[iJIGMsgString].ToString()); iJIGMsgString++; if(iJIGMsgString >=31) //keeps on polling {...
  12. nishasp

    instance of form does not pass values to another form

    Yes! In form2 i have set parentForm.resultString = StartRemoteTest.ToString(); I remove this value from the arraylist once i have used it in form1, so the count will only ever be say 30 and 31.
  13. nishasp

    instance of form does not pass values to another form

    I store the add the value to an arraylist, but this value gets removed. Does this not clear the element? If i close one form and then send the value from another form, there is no problem. However if i send a value from the first form and do not close it, then when i send a value from the...
  14. nishasp

    instance of form does not pass values to another form

    One more question regarding this topic... Because i have multiple instances of the same form, if i pass a value from instance1 of form2 to form1, and then do not close that screen, then the same value gets passed across when i try and send a different value from instance2 of form2. Is there...
  15. nishasp

    instance of form does not pass values to another form

    Thank you for all your help. I would have been stuck on this for days otherwise! :-D
  16. nishasp

    instance of form does not pass values to another form

    Do you mean i should uncomment this line: parentForm = new SerialJIG(); ?? This passes the value to form1, but it sets the count to 0 and this string becomes the first element in the arraylist. I don't think that it is reading the other elements that i have added to the list. I need these to...
  17. nishasp

    instance of form does not pass values to another form

    If you don't mind, I'm going to send you a copy of my code to have a look at...i am totally confused now!
  18. nishasp

    instance of form does not pass values to another form

    I think i got it figured, but now i have another problem :-( This is what i did: parentForm = new SerialJIG(); //newline parentForm.resultString = StartRemoteTest.ToString(); I must not have declared it as a new instance of the form. The problem now however is that i can't still look at...
  19. nishasp

    instance of form does not pass values to another form

    It says in a microsoft article that the following error: An unhandled exception of type 'System.NullReferenceException' occurred in <project name>.exe Additional information: Object reference not set to an instance of an object. is sometimes caused because the Set method of a control...
  20. nishasp

    instance of form does not pass values to another form

    I have a general click handler for the buttons in form1, but this is written in the class where i have created the ButtonArray. JIGButtonArray = new ButtonArray(btnTransmit.FindForm()); This line is declared in the Constructor of form1 where btnTransmit is a button on the form. A button on...

Part and Inventory Search

Back
Top