The default port that MySQL database server is running under Linux and Unix is 3306/TCP. In order to change the default MySQL/MariaDB database port in Linux, open MySQL server configuration file for editing by issuing the below command.Search for the line ...
Simplest way to change file name in C# is using File.Move() function.Here's the simple example change file name for Samsung Black Jack Phone. However it may work on another platform if it supports .NET compact framework.In addition, File creation time can ...
It is possible for Forms to have resource leaks even though they are running in managed code. To determine if a form is leaking resources: 1. Run the Windows Task Manager 2. Select the Processes tab. 3. Select the View /...
Write an OnIdle method and put your GUI enable/disable code there. The OnIdle method is called every time your application's message queue becomes empty.Hook in the OnIdle method in a Form's constructor by instantiating an EventHandler and adding that hand...
Use Environment.Exit to immediately return from a console application with a specified result code.using System;namespace ConsoleApplication1{ class Class1 { [STAThread] static void Main(string[] args) {&n...
In the program's Main method, call ProcessUtils.ThisProcessIsAlreadyRunning() to determine if another instance of the program is already running. ThisProcessIsAlreadyRunning attempts to create a Mutex object with the same name as the program (Application.P...
A couple of days ago, I had to store some very big strings in an XML file. To keep the file size down I wanted to compress the strings using a GZipStream and then decompress them later when needed.I modified the methods from Papenoo pa so they handled stri...
Quite frankly, I think this topic is a lot of fun...the thought of making an app look completely different from the usual rectangular-formed layout really appeals to me.Drawing an irregular form, like drawing anything, requires four things : a surface, a s...
Notes: If you want to run this sample,you should copy the Ip address to driver c:. Using the codePart 1.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows....