C# Cookie Print C# Print SMTP CGI C# CGI C# CGI Example C# CGI Sample QUERY_STRING Substring GetEnvironmentVariable SmtpMail How to convert UTF8 string to Base64 string MailMessage HttpCookie Base64Encode if WriteLine EnableVisualStyles Enqueue Environment FIFO kmail FileStream FileSystemEventArgs FileSystemEventHandler FileSystemWatcher GetEnumerator GetFieldByName GetLineBreakCharPosition Hash HtmlPrinter Hashtable Hook in the OnIdle method How to terminate application How to exit application ContainsKey addEvent Append Base64Decode BinaryReader BinarySearch C# DLL C# DLL Call C# Graphics CallBack CallBackMethod Character Enable Toolbar Buttons ContainsValue Create PDF CreateGraphics Delphi 2005 Welcome Page Dequeue Disable Button Disable Menu Disable Toolbar Buttons DrawPolygon Enable Button

PHP POST METHOD.ZIP

How to get process id in C# like windows task manager ?   (created at Oct 15, 2009)   104  

Following is simple example to get process name and add process name to listbox control.As you can see below, you can get working process by Process control. But most of the properties are supported on windows platform. If you want to access the similar pr...

How to speed up access to the RichTextBox Lines property   (created at Sep 25, 2007)   52  

Using a foreach loop will be substantially faster than a for loop when accessing the items in a RichTextBox's Lines property. For example, the following code loads a RichTextBox with 1000 lines of text and accesses each line from the Lines property. On a 3...

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

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)   56  

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)   35  

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)   74  

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)   47  

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)   42  

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)   70  

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

String Replace Function For C#   (created at Aug 28, 2007)   48  

A code snippet about how to perform a achieve the same results as the vbScript string function Replaceusing System;using System.Text.RegularExpressions;string myString;myString = "This is a test.";myString = Regex.Replace(myString," is"," was");

How to print character in C# by ASCII code   (created at Aug 28, 2007)   53  

There is really simply to show character by ASCII code just like Visual Basic, and Delphi.string s="" ;for (char c='a' ; c <= 'z' ; ){s  = c.ToString() ;c = (char)((int)c   1) ;}Response.Write(s) ;

Adding Custom Paper Sizes To Named Printers   (created at Aug 27, 2007)   58  

My company needed me to programmatically add a custom paper size (a printer form) to the default printer and set the printer to use the custom paper size. After looking around,the best alternative we could find was to make use of the printing and print spo...

Print HTML In C# With Or Without The Web Browser Control And The Print Dialog   (created at Aug 27, 2007)   64  

Printing with the web browser control in .NET platform is not hard work. But the challenge for me was to navigate to a specific URL and then print the document with a single click event. There was another challenge I had to face,when I tried to print an HT...

A Customizable Printing Text Class   (created at Aug 27, 2007)   30  

At least once,in the life of a programmer,it succeeds that the moment arrives to print a text document. The task is quite simple for a .NET programmer,but even more with PrintTextDocument class. This class was written to help in printing text documents,add...

Simplified .NET Printing In C#   (created at Aug 27, 2007)   70  

This is a .NET approach to Simplified Printing in which,we are going to use a RichTextBox to cache all of our text for printing in printDocument.// Form Loadprivate void Form1_Load(object sender,System.EventArgs e){  

How To Print Text In C#   (created at Aug 27, 2007)   49  

If you want to use MultipadPrintDocument in your own code,it's best to rename the class and its constructor to something more appropriate. Then add a variable of type XXXPrintDocument to your form and implement the menu items as follows:void OnFilePrint(Ob...

C Sharp Lists   (created at Aug 27, 2007)   60  

It is a fairly common programming scenario to find ourselves with a list of identical objects. In the past,without adequate support from programming languages,we found ourselves writing a lot of searching and sorting code,and that may have put you off usin...

Simple Example Of IF/THEN Using C#   (created at Aug 27, 2007)   40  

Simple example of IF/THEN using C#<%@ Page Language="C#" %>