i have the following code so the caption of the form shows the width of the device. But it keeps on with the error "cannot convert type int to string".

PresentParameters presParams = new PresentParameters();

Utility.DisplaySwitchingToRefWarning(sampleFramework,(string)presParams.DeviceWindow.Width);

i have tried adding ".tostring" on the end that won't work either...

Any thoughts

Cheers

GTJ