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