Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Writing resize code without WITH/ENDWITH
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Writing resize code without WITH/ENDWITH
Miscellaneous
Thread ID:
00900758
Message ID:
00900758
Views:
46
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
Chris Zangarine
Software Development Engineer
Pipeline Compliance System (PCS)
American Innovations
Next
Reply
Map
View

Click here to load this message in the networking platform