c0smyn Posted October 14, 2008 Report Posted October 14, 2008 Inchidere aplicatieapplication.mainform.close; sauapplication.terminate;Minimize/Maximize/Restoreapplication.minimize; [color=green]//minimize[/color]ShowWindow(application.MainForm.Handle, SW_MAXIMIZE) ; [color=green]//maximize[/color]ShowWindow(application.MainForm.Handle, SW_RESTORE); [color=green]//restore[/color]MesajeShowMessage('Test' ); [color=green]//mesaj normal[/color]raise exception.create('Test' ); [color=green]//mesaj eroare[/color]MessageDlg('Test', mtinformation, [mbOk], 0); [color=green]//mesaj informatie[/color][color=green][u]//mai sunt si altele dar acestea sunt cele mai folositoare[/color][/u]Cum incarcam/salvam un text intr-un memomemo1.lines.loadfromfile('C:\windows\test.txt' ); [color=green]//pt a incarca[/color]memo1.lines.savetofile('C:\windows\test.txt' ); [color=green]//pt a salva[/color]Cum incarcam/salvam o imagine intr-un TImageimage1.picture.loadfromfile('C:\windows\test.bmp' ); [color=green]//pt a incarca[/color]image1.picture.savetofile('C:\windows\test.bmp' ); [color=green]//pt a salva[/color]Cum ne conectam cu un tcpclient pe un tcpservertcpclient1.remotehost := 'Adresa IP';tcpclient1.remoteport := 'Port';tcpclient1.connect; [color=green]//Conectare ...[/color]Cum declaram o variabilavar NUME_VARIABILA: tip(string , integer , boolean , single , double etc..);[b]EXEMPLU[/b]var a: boolean;begina := false;if a = true then showmessage('True')elseshowmessage('False');end; Quote