We will show how to set mouse position (Cursor Position) to a specific point (X,Y)  programmatically in delphi, some times you need to move the mouse to a position you want with coordinates of X and Y, to that, write only the following function that is built in delphi

We will show how to add images to DropDownlist (Combo box) in delphi, The first thing go to style property of your DropDownlist (Combo box) and change it to “lbOwnerDrawVariable” , this is to Draw in list box

How to make a form in front of all other forms, this so easy in delphi, just go to the form properties tool bar and choose the property “FormStyle” you will find it “fsNormal” as default

how to add images to listbox in delphi

We will show how to add images to listbox in delphi, The first thing go to style property of your listbox and change it to “lbOwnerDrawVariable” , this is to Draw in list box, suppose we pot a Listbox names ‘lst1′, Add now Image List and name it ‘il1′ , go to the event “onMeasureItem” […]

Delphi TrayIcon example, Some times you want your program to be minimized to system tray beside clock , here I will give you an example to do that using TrayIcon control

how to disable the maximize button in delphi

how to disable the maximize button in delphi ?! … to that, go to the form options and then choose the group BorderIcons, under this group you will see the item ‘biMaximize’, change it to false

How to add background to form in delphi

How to add background to form in delphi?! , there is no property to do this directly, the best way to do that insert a new TImage then change it’s picture property to the background you ant and then move the TImage to the back of the form (right click, order -> send to back).

Php current date now() function

In this post I will make the function now($format) to get the current date using php, the current date is needed to check expiration of some thing, you can see what you can do with the format parameter of the now($format) function from the following post

Php date comparison functions example

Date comparison is mostly needed by the programmer, for example to determine expiration of some thing, I will use the php built in function strtotime() to compare two date variable $date1 and $date2

Php date format examples, convert and compare

1- Php date format examples: I firstly will show some php date format examples, the php date() functions takes a format parameter as the table listed in the page : http://php.net/manual/en/function.date.php , the table contains format letters and it’s mean and use, for example