Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing resize code without WITH/ENDWITH
Message
From
04/05/2004 10:58:54
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00900758
Message ID:
00900763
Views:
15
Chris,

Probably using Control instead of object would do the trick.

~~Bonnie

>I just did a search for WITH/ENDWITH, hoping there was some alternative in C#... how disappointing. So, find another way.
>
>I decided I missed the .Move() method so much that I wrote my own. (the code is at home, I'll try to recreate it here)
>
>m_Move( txtMyTextbox, 0, 0, 50, 20 );
>
>private static void m_Move( object Victim, int Left, int Top, int Width, int Height ){
>if( Left == -1 )
> Left = Victim.Left;
>if( Top == -1 )
> Top = Victim.Top;
>.
>.
>.
>Victim.Left = Left;
>Victim.Top = Top;
>.
>.
>}
>
>My problem is that when I compile, I of course get a long list of "Left is not a valid property of 'object'", or something along those lines. Is there anyway to get rid of these warnings via another coding style or method ?
>
>TIA
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform