HOME C# C++ Cookie Print C# Print SMTP C# CGI Example C# CGI Sample C# CGI CGI if HttpCookie QUERY_STRING MailMessage Substring SmtpMail GetEnvironmentVariable getenv GetFieldByName GetLineBreakCharPosition Hash HtmlPrinter GetEnumerator EnableRaisingEvent PDF Creation LIFO LinearGradientBrush List MFC CGI Example MoveNext PDF PathGradientBrush OnFilePrint OnMediaChanged OnPrintPage PageSetupDialog ContainsKey addEvent Base64Decode BinaryReader BinarySearch WriteLine C# DLL Call C# Graphics C# List CallBackMethod CGI Example CGI Sample Character FileSystemWatcher ContainsValue Create PDF CreateGraphics Dequeue DLL Import DLLImport DrawPolygon .NET Print FIFO FileStream

BINARYREADER.ZIP

How to send binary data through C# CGI app?   (created at Aug 27, 2007)   66  

Following example implemented binary data downloading.using System;using System.Collections.Generic;using System.Text;using System.IO;namespace cscgi{  class CsCGI  {    private static string dbgString = "id=1234&pic=123.gif";  &nb...

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

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

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

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

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

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

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

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

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

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

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

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