Thanks to both of you.
Dear Colin,
I do already use this trick but in this case you have worst ob both worlds (between landscape and portrait, in terms of screen estate) and this is not very optimal.
Dear Erel,
I really want to have a very small and simple program, very easy to install for others (I can use setup builder, thanks your instructions). In a way, since this is my first program with basic4ppc; I would like to use it as best as I can, without calling other libraries to rescue.
For example, I have remarked that if I put all my controls in a panel, the panel automatically switches when the screen orientation changes and I can do the following :
Panel1.Width = Max(TRPPC.Height,TRPPC.Width)
where TRPPC is a form.
And the panel is resized in order to cover the whole screen without messing the placement of my controls but, of course, their size is not changed. I am thinking now a way for automatizing the location and the size (the latter for some controls that are strategic, like tables to browse or textfields that show some dynamic information) of these controls as a function of the dimensions of the form. I think this is doable.
If I find a satisfactory solution, I will come back and tell it here but I was hoping that someone else has already found the trick, since this is very common problem.
Best regards,
Murat