blah blah blah is here! blah blah » Close

0
votes
1 answers

C# programming issue "A project with an output type of class library cant be started directly".

Hello! I am using Microsoft Visual C# 2008 Express edition. I recently downloaded the C# code from link: http://www.florian-leitner.de/index.php/projects/usb-hid-driver-library/ After compiling the code I got no error nor warning mess ...

0
votes
1 answers

Need help with Linq to remove an xml tag

I have the following: <section name="Test"> <Statement Type="XX"> <Names> <Proper Name="My Name" /> </Names> <AccountPeriods> <Period Ty ...

1
votes
1 answers

Index was out of range. Must be non-negative

I'm trying to copy values from a cell in my datagrid to a new form when clicked, I have this working apart from this one line of code: [code]GridClick.Descrip.Text = row.Cells[8].Value.ToString();[/code] Throwing this error: " ...

0
votes
2 answers

Out of memory exception in C#

How can we avoid out of memory exception while doing Dataset.WriteXML(stringbuilder); Here the size of dataset data is 80 mb

2
votes
12 answers

Loading millions of rows of data from MySQL database into C# application

I have to load in millions of rows of data from MySQL database into a C# application. It takes more than 5 minutes for the complete set of data to be loaded. Does it make sense to do multi-threading for my case? If yes, how should I do it? ...

0
votes
3 answers

Null Element in a Generic List

Hi I want to create a class that will get a custom type generic list and will add an value of 0 in a specified element. To be more clear here is an example: I have the following: public class Clients { public int Clie ...

0
votes
1 answers

C# Winform: How to print the content of a ListView?

how do I print the contents of a ListView (with all the ColumnHeaders), but remove the Scrollbar? thanks.

1
votes
2 answers

How do I see ALL of My Questions?

I would like to see ALL of My Questions in www.debugging.com. How do I enable it? I can only see those latest questions. I would like to view those earlier questions also. thanks.

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

Feedback