HTML Javascript C# Print DateTime C# Print today CentOS7 C# CGI C# CGI Example C# CGI Sample mysql CGI if Substring How to convert UTF8 string to Base64 string QUERY_STRING Base64Encode GetEnvironmentVariable AUTO_INCREMENT FileSystemWatcher GetLineBreakCharPosition FileSystemEventArgs FileStream Filename Change FIFO Enqueue EnableVisualStyles Force Single Instance getDay GetEnumerator GetFieldByName DrawPolygon getMonth Hash Hashtable Hook in the OnIdle method How to exit application addEvent Create PDF BinaryReader C# DLL C# DLL Call C# Graphics CallBack CallBackMethod WriteLine click ContainsKey ContainsValue EnableRaisingEvent CreateGraphics Base64Decode Dequeue Disable Button .NET Print DLL Import DLLImport BinarySearch Enable Button

MYSQL.ZIP

Change MySQL port number for security purpose   (created at Jan 15, 2024)   131  

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

How to set AUTO_INCREMENT ID in mySQL ?   (created at Jul 01, 2011)   126  

In case that you need to set AUTO_INCREMENT ID manually, you can set it as below: 

How to rename(change file name) in C# ?   (created at Mar 12, 2008)   63  

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

How to detect resource leaks in a Form   (created at Sep 25, 2007)   59  

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

The best way to enable and disable buttons, menu items and toolbar buttons   (created at Sep 25, 2007)   65  

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

How to exit from a console application   (created at Sep 25, 2007)   41  

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

How to restrict a program to a single instance   (created at Sep 25, 2007)   92  

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

Compress and decompress strings in C#   (created at Sep 25, 2007)   67  

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

Graphics in C# - Irregular Forms   (created at Sep 25, 2007)   49  

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

Extracting the Country from IP Address   (created at Sep 25, 2007)   91  

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

How to get date time in Javascript ?   (created at Aug 30, 2007)   36  

Following is the simple example you can easily use.