|
Making an array of arrays
11/13/2009 2:39:46 PM
(Total replies: 1)
|
| Hello
<br />
<br />
I need to implement an array of arrays which are textbox so that i can reuse some of the code by being able to pass this array of arrays.
<br />
<br />
I have functions that take a textbox as a parameter, right now the way i am making is work is ...
<br />
<br />
private void UpdateDAC(TextBox tb_UpdateDAC)
<br />
{
<br />
TextBox[] tbArray_DAC_DBO_Gain = new TextBox[] { DAC_DB0_Gain_TextBox_0, DAC_DB0_Gain_TextBox_1, DAC_DB0_Gain_TextBox_2, ... |
|
|
|
How to make a timed state machine in C#?
11/12/2009 4:22:12 PM
(Total replies: 1)
|
| Hello
<br />
<br />
I need to make something like a state machine ..
<br />
<br />
I basically want the timer to run in the background. I want the timer to be sort of like an interrupt.
<br />
It should not affect how the user uses the program. Infact, they shouldn't even be aware it is running. It should basically run, verify the board (hardware coonedted thru USB) is connected, then exit. I will need to implement some sort of state machine, where it knows the result of the last call, ... |
|
|
|
How to disable multiple textboxes at the same time?
11/11/2009 10:19:05 AM
(Total replies: 1)
|
| Hey!
<br />
<br />
Firstly, I want to create an array of textboxes, so that i can use there index value in the array to represent them. how can this be done?
<br />
Once i have an array of textboxes, i want to enable and disable each of the textbox based conditions.
<br />
<br />
Can anyone help me with this? Please let me know if my question is unclear =)
<br />
<br />
Thanks =)
<br />
Muhu |
|
|
|
Re: How to disable multiple textboxes at the same time?
11/11/2009 12:21:35 PM
(Total replies: 1)
|
| Hey!
<br />
<br />
Thanks for the textbox code =)
<br />
<br />
I have a quick question, if i wanted to leave an event before it was comlpeted, how can i do this?
<br />
<br />
Like, when i click an Enter button, i want it to do a few comparisons. So if the first statement is executed, i want to leave without proceeding forward with the next function call. Would you please help me with this?
<br />
<br />
Thanks
<br />
Muhu
<br />
|
|
|
|
Re: How to disable multiple textboxes at the same time?
11/12/2009 11:02:25 AM
(Total replies: 1)
|
| Hey Thanks
<br />
<br />
I used the array code to make an array of a bunch of textboxes.
<br />
<br />
Now i have a function which takes a textbox as a parameter does some conditional checks. The problem is how do i pass an array of textbox to this function, and tell it to check only the textboxes that i wish for it to check. I dont want all the text boxes to be checked but some particular ones of the array..
<br />
<br />
Thanks
<br />
Muhu |
|
|
|
Re: How to disable multiple textboxes at the same time?
11/12/2009 1:15:04 PM
(Total replies: 1)
|
| how can you iterate? I have been trying this for a while now but the syntax is not correct.
<br />
<br />
I tried using ElementAt function of the array but it doesnt seem to work.
<br />
Can you please paste the code that will allow me to get one textbox at a time from the array?
<br />
<br />
Thanks
<br />
Muhu |
|
|
|
Numeric and decimal text box
11/5/2009 11:32:25 AM
(Total replies: 1)
|
| I have bunch of textbox that i need to make numeric and accepts decimals too. Is there any suggestion on how i can do this for a group of controls?
<br />
Is there something like making an array of controls and doing this kind of thing?
<br />
<br />
I am using Visual C# Express Edition 2008!
<br />
<br />
Help will be much appreciated
<br />
<br />
Thanks
<br />
Muhu |
|
|
|
Re: Numeric and decimal text box
11/6/2009 7:50:19 AM
(Total replies: 1)
|
| Hey ryafel
<br />
<br />
Thanks, but i am using Visual C# Express Edition ... any other suggestions ?
<br />
<br />
Muhu |
|
|
|
Re: Numeric and decimal text box
11/6/2009 9:41:39 AM
(Total replies: 1)
|
| Hello Foamy
<br />
<br />
Well, since i am using Express Edition, the creation of this custom control is not possible. This is because the Microsoft.WindowsCE.Forms.dll is not supported by Express Editions.
<br />
<br />
Thanks a lot anyways =)
<br />
Muhu
<br />
<br />
I am looking into other possibilities, and will post it if i can find something =) |
|
|
|
Re: Numeric and decimal text box
11/9/2009 8:54:43 AM
(Total replies: 1)
|
| Thanks Guys!
<br />
<br />
It compiled now, when i saved it in a separate .cs file.
<br />
Earlier i tried to put it in the same Form class.
<br />
But however, my next question would be, how do i use it? As in how can i call this control and actually see it on the form?
<br />
<br />
Thanks for you help =) |
|