Delphi C# Cookie Print Display ShellExecute SMTP TIdMessage SmtpServer SendMail SW_SHOW SW_HIDE ContentType CharSet ShowWindow TPrintDialog Print Dialog SmtpMail HttpCookie MailMessage TOSVERSIONINFO Hash free memory size free memory space GetEnumerator GetSystemDefaultLangID GetVersionEx Animated Icon Comma Separator Gradient Filled Form OS Version Information MIME Type Encoding Hashtable Hide Caption Bar Hide Taskbar Open URL JSP Email LIFO MoveNext MimeBodyPart DISP_CHANGE_SUCCESSFUL ContainsValue Comma Create PDF CreateEllipticRgn ChangeDisplaySettings Decimal Separator Dequeue Desktop Wallpaper DISP_CHANGE_FAILED DISP_CHANGE_NOTUPDATED free memory Caption Bar DLL Import C# DLL Call available memory space FIFO 켜져있는시간 available memory FileStream

SMTP.ZIP

Set up an SMTP server on CentOS 7   (created at Jan 15, 2024)   72  

To set up an SMTP server on CentOS 7, you can use a popular mail server software called Postfix. Here are the steps to install and configure Postfix:1. Update System: Make sure your system is up-to-date by running the following commands:2. Install Postfix:...

How to send email by TIdSMTP VCL ?   (created at Jul 07, 2009)   43  

TIdSMTP component is very useful VCL in Delphi 2009. Here's the simple example to send email.uses IdSMTP, IdMessage;;procedure KMAIL( sTo, title, body:string);var  IdMsg : TIdMessage;begin  IdMsg := TIdMessage.Create(nil);  try    ...

Send An Email Using A Bean   (created at Aug 30, 2007)   33  

This JSP snippets shows how to send an email using a reuasable javabean    JSP Sample - Send Email     
 
 ...

Send Email Using C#   (created at Aug 26, 2007)   96  

A code snippet,posted on the dotnet newsgroup,about how to send email using C#.<%@Import namespace="System.Web.Util"%>try{MailMessage MyMail = new MailMessage();MyMail.To = "who";MyMail.From = "you";MyMail.BodyFormat = MailFormat.Html;MyM...

How To Send An E-mail By Code   (created at Aug 25, 2007)   34  

Use this function to send an e-mail through your program. You must have the component TNMSMTP from FastNet tools. This component is included in Delphi 4-5 Professional and Enterpriseprocedure TForm1.Button1Click(Sender: TObject); begin   NMSMTP1.Host ...

HashTable Tutorial In C#   (created at Aug 26, 2007)   40  

Adding objects to a Hashtable is just like adding to a collection since they both inherit from the same parent.Hashtable h = new Hashtable();h.Add("Key1", "Value1");h.Add("Key2", "Value2");h.Add("Key3", "Value3");h.Add("Key4", "Value4");h.Add("Key5", "Valu...

Stack Tutorial In C#   (created at Aug 26, 2007)   57  

stack is a LIFO (Last In First Out) queue, so if you add two items and then ask for an item you would get the second item then the first item. To add items to the Stack you use Push method. This method takes an object of any type but to keep things simple ...

Queue Tutorial In C#   (created at Aug 26, 2007)   34  

Adding Items to the QueueTo add items to the Queue you use Enqueue method. This method takes an object of any type but to keep things simple lets just give it a string object: Queue q = new Queue();q.Enqueue("So");q.Enqueue("This");q.Enqueue("Is");q.Enqueu...

Create PDF Files On the Fly In C Sharp   (created at Aug 26, 2007)   52  

Creation of PDF Document in 5 easy stepsStep 1: First create an instance of document objectDocument myDocument= new Document(PageSize.A4.Rotate());Step 2: Now create a writer that listens to this doucment and writes the document to desired Stream.PdfWriter...

How to call Visual C/C++ implemented DLL functions in C# - Simple DLLImport   (created at Aug 26, 2007)   63  

Managed world is beautiful, I have all classes I want in FrameWork.. But what if I want call some unmanaged code? For instance, I have DLL written in C++, and want use it from C#. Let's look some code. Our DLL exports some function, in CDecl convention, th...

How To Read And Write A Cookie   (created at Aug 26, 2007)   35  

A post on aspngbeta about readingwriting a cookie in C#//To setHttpCookie cookie;String UserID = "foo";cookie = new HttpCookie("UserID");cookie.Values.Add("UserID",UserID);Response.Cookies.Add(cookie);//To readHttpCookie cookie;cookie = Request.Cookies["Us...

Using C# With Cookies   (created at Aug 26, 2007)   75  

A code snippet posted on aspcs about accessing and writing cookies using C#./* Read shopper id from client cookie */public static bool GetCurrentShopperId(ref string id,System.Web.HttpRequest request){try{HttpCookie cookie = request.Cookies["iparts_pa"];if...

How Do I Remove The Application Icon From The Taskbar?   (created at Aug 25, 2007)   38  

To remove the icon from the taskbar, you need to call a Windows API call:BOOL ShowWindow(HWND hwnd,int nCmdShow);Delphi makes it very easy to use this command. All you need to do is supply the Application.handle and SW_HIDE to remove the icon from the task...

How To Show The Print Dialog And Print Text Files   (created at Aug 25, 2007)   55  

This code show an example of how to print a text of a RichEdit component.unit Unit1; interface uses   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,   StdCtrls, ComCtrls; type   TForm1 = class(TForm)     ...

How To Make An Animated Application Icon   (created at Aug 25, 2007)   67  

Show how to create an animated icon in your programvar  icon1:Boolean; ... procedure TForm1.Timer1Timer(Sender: TObject); begin   if icon1=false then   begin     Application.icon:=Image1.Picture.Icon;      icon1:=tru...

How To Pass The Focus To The Next/prior Control   (created at Aug 25, 2007)   58  

Shows how to activate the next or prior control in a formnext control: SendMessage(Form1.Handle, WM_NEXTDLGCTL, 0, 0); prior control: SendMessage(Handle, WM_NEXTDLGCTL, 1, 0);

How To Make Rounded Windows   (created at Aug 25, 2007)   38  

Create a different form in your application...procedure TForm1.FormCreate(Sender:TObject);  var    region: HRgn;  begin    region:=CreateEllipticRgn(1,1,200,200);    SetWindowRgn(handle, region, true);  end;

How To Get Windows Uptime   (created at Aug 25, 2007)   45  

Find how long Windows has been working...function UpTime: string; const ticksperday : integer = 1000 * 60 * 60 * 24; ticksperhour : integer = 1000 * 60 * 60; ticksperminute : integer = 1000 * 60; tickspersecond : integer = 1000; var  t : longword; &nb...

How To Find Out Total And Available Memory   (created at Aug 25, 2007)   39  

Get the total and available memory in your system. (Total free memory space in your system)procedure TForm1.Button1Click(Sender: TObject); var   memory:TMemoryStatus; begin   memory.dwLength:=sizeof(memory);   GlobalMemoryStatus(memory); &nb...

How To Change The System Time   (created at Aug 25, 2007)   40  

This code shows how to set the system time to another value.procedure TForm1.Button1Click(Sender: TObject); var    systemtime : TSystemTime;    NewTime:string; begin    NewTime:='13:58:00';    DateTimeToSystemTime( D...

How To Get The Windows OS Version   (created at Aug 25, 2007)   52  

 Identify the Windows version of your systemfunction GetWindowsVersion : string;  var    OsVinfo   : TOSVERSIONINFO;    HelpStr   : array[0..50] of char;  begin    ZeroMemory(@OsVinfo,sizeOf(OsVinfo));...

How To Change The Desktop Wallpaper   (created at Aug 25, 2007)   41  

Change the wallpaper of your system by codeuses    Registry, WinProcs;  procedure SetWallpaper(               sWallpaperBMPPath : String;               bTile : boolean );&...

How To Get The Windows Language   (created at Aug 25, 2007)   41  

Obtains the language that Windows is using.function Language:string;  var    sLangID:LangID;    sLanguage: array [0..100] of char;  begin    sLangID:=GetSystemDefaultLangID;    VerLanguageName(sLangID,sLang...

How To Make A Gradient Filled Form   (created at Aug 25, 2007)   38  

Show how to paint a form in a different way...procedure TForm1.FormPaint(Sender: TObject); var   Row, Ht: Word;   IX: Integer; begin   iX :=200 ;   Ht:=(ClientHeight + 512) div 256;   for Row := 0 to 512 do   begin   &nbs...

How can I hide the caption bar on a form?   (created at Aug 25, 2007)   36  

To hide the caption bar you need to override on of the default form methods CreateParams (this also exists for other objects).The CreateParams method initializes a window-creation parameter record passed in the Params parameter (ref:Delphi Help).Go to the ...

How To Open Url In Default Webbrowser   (created at Aug 25, 2007)   39  

Use this function to open your browser with a given URL.uses    shellapi;  ....  procedure TForm1.Label1Click(Sender:TObject);  begin    shellexecute(handle,'open','http://www.swissdelphicenter.ch', nil,nil,sw_show); ...

How To Check If A Soundcard Is Installed   (created at Aug 25, 2007)   47  

Use this code to verify if a soundcard is installed in your systemuses mmsystem;  ...  function Soundkarte:Boolean;  begin    Result := WaveOutGetNumDevs >0;  end;

How To Change Screen Resolution   (created at Aug 25, 2007)   74  

Change the resolution of your screen.Actually I've ever used this function for TV-based software development, because of TV-resolution.{ The function NewRes can have the following result: DISP_CHANGE_SUCCESSFUL The settings change was successful. DISP_CHAN...

How To Force The Correct Decimal Separator   (created at Aug 25, 2007)   35  

Some English speaking countries use the "point" as decimal separator, while the rest of the world is using the "comma". How can you make sure that the user will press the correct key when entering a number with a decimal fraction? With the code in this exa...

How To Register Own File Types   (created at Aug 25, 2007)   64  

Use the registry to register your own filetypeuses registry; procedure TForm1.RegisterFileType(prefix:String; exepfad:String); var   reg:TRegistry; begin   reg:=TRegistry.Create;   reg.RootKey:=HKEY_CLASSES_ROOT;  


Page: 1  2