To display a message when form is opened

Hi ,

I want to display a message when user tries to click on sales Table>Posting>Confirmation , a message box along with the form should be displayed( not before or after) , where should i place my code ??

You have many options, such as the run() method.

it displays message first then when i click on the box it shows the form , but i need to display both together just like the startup message when we opens Ax environment

You mean rendering the form and then opening a modal dialog? If so, run() is indeed a good place - the problem is likely in your implementation. This is a trivial example:

public void run()
{
    super();
    Box::info("test");
}

If it’s not what you want, please finally explain your requirements with enough details.