when I run program it stars but instead of show onlx massage box show Console window and message box program should show just message box without console window
Well, Dev-C++ asks you when you create a project whether you want a consoile mode project or a GUI project. You need to choose GUI project (or whatever the other selection is besides console project - I forget).
If by some chance you are bypassing the project setup step and just pasting in code into a blank file without setting up a project at all, then it might default to creating a console project. In that case yoyu would get both a message box and a console.