blah blah blah is here! blah blah » Close

1
votes
11 answers

C# Progress Bar Example with Percentage of Completion

hi, Could I have some C# code example of how to use the progress bar, with the percentage of completion? For example, during execution of some code, says in Counting Down from 1000 to Zero, I would like to send the progress bar moving wi ...

1
votes
8 answers

Check for existence of file, incremental filename till loop of 65535

I want to do something like this: (1) Check for existence of file with certain extension ".txt" in a directory D:\test (2) If a file does not exist, create a initial one, write something to it, and name it test_1.txt (2) If a ...

2
votes
3 answers

C# to display different texts at different time, with a click of a button.

this may seem trivial, but I still have not figured out how to do it. private void button1_Click(object sender, EventArgs e) { textBox1.Text = "Waiting..."; System.Threading.Thread.Sleep(5000 ...

0
votes
1 answers

Counting the Occurrence of Same Bytes in a Binary File

say I have the below binary file name test.bin. I want to count the occurrence of the same bytes [44 04 85 44 10 10 01 01 10 00 08] in that file. how do I do that? The answer should be 3. Some sample could be be greatly appreciated. thanks. ...

0
votes
3 answers

Align Arrays of Strings in ListBox

say I have a string array as: string[] AllFruits = {"Apples $1.50", "Oranges $1.80", "Kiwis $3.10", "Bananas $1.00}; I add them t ...

0
votes
0 answers

Animate the showing of WinForms

how do I animate the showing of Winforms such that when a button is click, the next WinForm shows out can come out in Animation like PowerPoint such as Custom Animation-> Add Effects->Entrance->Blinds, Box, CheckerBoard, Diamond, F ...

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

2
votes
1 answers

Overwrite part of existing Binary File

if I have a existing binary file of 20 bytes, and I want to replace (over-write) portion of that file, say 4 bytes, from index 10 to index 13, how could I do that? I understand that FileMode.Append could be used, but it always append at ...

Feedback