J
jayderk
foreach(Control objControl in this.Controls)
{
System.Diagnostics.Debug.WriteLine("Controls type:" +
objControl.GetType().ToString());
if(objControl is TextBox || objControl is PictureBox)
{
objControl.Location.Y = (objControl.Location.Y - 24);
}
}
here is the error message, I should work cause you can get or set the Y
value?
this section is to move controls up if it is PocketPC platform. Any
suggestions?
C:\dev\CE\Csharp\frmMain.cs(82): Cannot modify the return value of
'System.Windows.Forms.Control.Location' because it is not a variable
{
System.Diagnostics.Debug.WriteLine("Controls type:" +
objControl.GetType().ToString());
if(objControl is TextBox || objControl is PictureBox)
{
objControl.Location.Y = (objControl.Location.Y - 24);
}
}
here is the error message, I should work cause you can get or set the Y
value?
this section is to move controls up if it is PocketPC platform. Any
suggestions?
C:\dev\CE\Csharp\frmMain.cs(82): Cannot modify the return value of
'System.Windows.Forms.Control.Location' because it is not a variable