Click here to Skip to main content
15,880,972 members
Articles / Desktop Programming / WPF
Tip/Trick

Always Trim Hard-Coded Control Name String Before Assignment To Avoid Misleading Compile Error Message

Rate me:
Please Sign up or sign in to vote.
1.00/5 (3 votes)
6 Feb 2010CPOL 4.7K   1  
aCanvas.Name = "aCanvas ".Trim();
MIDL
aCanvas.Name = "aCanvas ".Trim();

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --