blah blah blah is here! blah blah » Close

1
votes
3 answers

Convert Double Values to Char

I want to convert Double Values (including the decimal place) to Character and store them as bytes. I follow the simple instructions from http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/d606a107-d093-4f00-b585-cdf97f09 ...

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

1
votes
3 answers

load database from text file

say I have a table named XY_values with columns X_values and Y_values. now, I have a text file xy.txt which contains those x values and y values, with x values in the 1st column and y values in the second column. is there any SQL comm ...

1
votes
4 answers

C# load textfile contents to ListBox

My code below is able to easily load textfile contents to a textBox, with Multiline. FileInfo myFile = new FileInfo(@"D:\output.txt"); TextReader myData = myFile.OpenText(); textBox1.Text = myData.ReadToEnd(); myData.Close ...

1
votes
11 answers

Peak detection in C#

assume that I have my XY-values stored in a file XY.txt, with the first column being the X-values and the second column being the Y-values, I would like to detect those peaks (postive and negative) from the file. I would like to store those ...

1
votes
1 answers

Export database from SQL Server to MySQL

from SQL Server, pointing to specific database, then, Task, -> Export Data... it comes out with this SQL Server Import and Export Wizard: The data type could not be assigned to the column "xxxxxxx" in ".NET Framework D ...

0
votes
0 answers

Execute an XBAP application.

I am following the codes from http://blogs.msdn.com/b/tolong/archive/2006/12/27/how-to-embed-video-into-wpf-application.aspx I can run and execute the application from Visual Studio itself, it is able to load in the static image (test. ...

0
votes
14 answers

WPF Questions

not sure whether it is correct place here to pose WPF Questions. (a) in WPF Application, how do I disable the Right Top Close (x) button, Maximize and Minimize buttons? (b) in WPF Application, how do I ensure that the application is n ...

0
votes
4 answers

C# Network Printing

I am able to get the list of network printers via this code: private void Form1_Load(object sender, EventArgs e) { foreach (String printer in PrinterSettings.InstalledPrinters) { li ...

0
votes
0 answers

Database Replication

I have tried to follow the steps outlined in http://www.howtoforge.com/mysql_database_replication for Database Replication. I have created the database exampledb, and create some tables and load them with values. But when I execute USE e ...

0
votes
1 answers

C# program to switch updating from Master server to Slave server

assuming that I have setup the Database (MySQL) Replication using Master-Slave configuration, and have synchronized those Master and Slave servers, how can my C# program know that it has to update the Slave server when the Master server fai ...

0
votes
1 answers

Realign ListView contents.

I have this in my code to retreive the ListView contents and save to a file. But the alignment is wrong. How do I set it to be right? // save to textfile StreamWriter sw = new StreamWriter(@"D:\test.txt" ...

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
6 answers

C# WinForms: Embed NumericUpDown control inside a ListView

Would it be easier if I change my ListBox to ListView? In another words, I want to embedded NumericUpDown control inside a ListView such that the 3rd column (Quantity) of the ListView is controlled by the NumericUpDown. The item for Quan ...

0
votes
0 answers

C# WinForms: Customized ListBox

in my C# Winforms, when user presses a first button, a first item is added to the ListBox. When user presses another second button, another second item is added to the ListBox. I would want all those items added to the ListBox to have strai ...

Feedback