blah blah blah is here! blah blah » Close

0
votes
2 answers

C# Database Connection String for Server

MySqlConnection myConn = new MySqlConnection("server=192.168.1.103;database=productcatalog;uid=root;password=12345678"); // where 192.168.1.103 is the PC's IP address. above code does not give me any problem. but when I have ...

1
votes
2 answers

MySQL Server updates field values on its Client constantly.

I could do the implementation such that the client is being updated constantly from its Server, when it reads from the MySQL database and update on the client, by using the Timer. Upon each ticks, it would read from the server database and ...

0
votes
1 answers

Client Updates Server Database (MySQL) using Private APN and Static IP addresses

using our office Local Area Network (192.168.1.xxx), I have no problem with the client updating the server database, when I set the MySqlConnection string "server=IP_Addresses_of_Server". However, when I switch to GPRS Connecti ...

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

0
votes
5 answers

C# application, Read from MySQL Database. Deployed into other machines

if I have a C# application which reads from a local MYSQL database, and when I compiled that C# application, I want to deploy that compiled application into another machine or notebook. Does that mean that I have to re-create the same datab ...

1
votes
2 answers

C# Printing

I thought that C# printing is straightforward.. but when I try it, it does not work. where did I go wrong? Upon click of the button, it is able to feed in the paper in the printer, but out come the paper is blank. When I open the test.txt f ...

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

0
votes
1 answers

C# Video & Audio Application

How easy is it to create such a video and audio application in C#? I would need Video and Audio to be transferred from one notebook to the other in real-time, over Local Area Network. Any sample code is fully appreciated. thanks. A ve ...

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

C# .NET Scheduled Timer

I am looking for something similar to the below link http://www.codeproject.com/KB/dotnet/ABTransClockArticle.aspx but the above link source code seems not easy to use. I want to do some scheduled tasks easily in C#.NET, e.g to perfo ...

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

Search Database from given String Array and Update correct table at correct row.

Assume that I have a database productcatalog with 4 tables (Fruits, Brreads, Milks, Drinks). From a given string array string[] AllItems with its fields of (Description, Price), AllItems {string[4]} [0]: "Strawberries $0.05&q ...

0
votes
1 answers

Inter-link btw Forms and Buttons inside

Say I have 2 Forms, Form1 and Form2. Inside Form1, there is a button1, which when clicked goes to Form2. Inside Form2, there is a button2, which when clicked goes to Form1. Also, inside Form2, there is another button3, which when click ...

0
votes
1 answers

C# Winforms to detect sudden power shutdown.

if a Winform is running, and sudden power shutdown occurs, would it able to send alert, such as email alert. I attached some sample code which is able to detect the system log-off and send email alert, but I would like it to be able to dete ...

0
votes
1 answers

Load Pictures into PictureBox from DataGridView

I have a table from a database, with fields like Description and Price and Picture. I am able to load different rows of Description and Price onto the DataGridView. As the Picture size is too big to insert into the rows, I have to put the p ...

Feedback