|
-
Mar 12th, 2006, 05:34 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] converting type int to string continuous error???
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
-
Mar 12th, 2006, 06:13 PM
#2
Re: converting type int to string continuous error???
If it is an int this should work
Code:
Utility.DisplaySwitchingToRefWarning(
sampleFramework,
presParams.DeviceWindow.Width.ToString()
);
failing that can you post the exact error message?
-
Mar 12th, 2006, 07:14 PM
#3
Thread Starter
Hyperactive Member
Re: converting type int to string continuous error???
cheers for replyin so quick.
However i have found another way round it by gettin the width value from e.device...
i think that the presParams width value was not an int, so that is y it caused an error.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|