Is there any way to know at runtime the resolution in a PC desktop?
I would like to launch from one basic4ppc aplication (main program) other basic4 application whith several resolution that I have put in the designer.
What do you mean by "resolution". Is it the logical dpi (dots per inch) that Windows is assuming for the screen or is it the physical size of the screen that you want?
What do you mean by "resolution". Is it the logical dpi (dots per inch) that Windows is assuming for the screen or is it the physical size of the screen that you want?
I would like to know the size that Windows is assuming for the screen (I think). I have a camera application (using your webcam dll) working in my company, but some users have desktop resolution fixed at 768x1024 and others at 980x1280.
Use the Display object from FormExDesktop, that will give you the display size on which a Form is displayed and can cope with multiple monitors. You don't need to be using FormEx to use the Display object.
Use the Display object from FormExDesktop, that will give you the display size on which a Form is displayed and can cope with multiple monitors. You don't need to be using FormEx to use the Display object.
Thank you very much, I have use your solution and it works well:
Sub App_Start
Form1.Show
display.New1
Msgbox(display.Width)
Msgbox(display.Height)
End Sub