blah blah blah is here! blah blah » Close

0
votes
1 answers

How can I handle an empty textbox for the following code?

private void setSingleDACVoltage(TextBox tb_OutputNumber_DAC, TextBox tb_Voltage_DAC) { double Volt_Value_DAC = Convert.ToDouble(tb_Voltage_DAC.Text); String hexNumber = tb_OutputN ...

0
votes
1 answers

ERROR: You can only take the address of an unfixed expression inside of a fixed statement initializer

Hello I wrote the following code, and got an error: unsafe void Get_ADC_Samples_From_All_Enabled_Channels(TextBox tb_OutputNumber_ADC, TextBox tb_Voltage_ADC) { bool got; double[,] chan ...

0
votes
1 answers

Can C# do an array of pointers?

Hello So i need to declare an array of pointers, like in C++ i would use double* voltagePointerArray[64]; I need to do the same for C#, but i am not sure of the syntax or for that matter even if i can actually do it. Help wil ...

0
votes
2 answers

How can I call a function which takes pointer to pointer in C# from a dll?

Hello I need to write a function that will pass 2 parameters to a dll function. The dll function is below: getADCSamplesFromAllEnabledChannels(int sampleToCapture, double **voltagePointerArray) it takes a pointer to pointer as a ...

0
votes
1 answers

Multi-dimensional array declaration

Hello I want to have a multi-dimensional array that I want to declare such that I can access it from all the other functions in the program. I am designing a windows application. I have a form with 16 tabs, and i want to be able to decla ...

0
votes
1 answers

how to know what item is selected in a combobox?

Hey I wish to show some messagebox based on the selected item in a combo box usinf if statements, how can i do this? Thanks Muhu

0
votes
1 answers

Embedding images on a WIndows form and controlling it with Checkbox Controls

Hey Guys! I wish to embed an image of one central board, and 4 smaller boards connected to the central one. Then i wish to control this image, i.e. when i select "board 1" using a checkbox, i want that board to get highlighted, i ...

0
votes
1 answers

Enabling/Disabling buttons on a form based on selection from combobox

Hey guys i am new to Visual C#, and would like to get some help. I have two forms, Form1 and Form2 Form1 has a comboBox where numbers can be selected. and Form2 has a bunch of buttons which are disabled. Once i select a number from the ...

Feedback