Surendra Sharma

Surendra Sharma

Search This Blog

Tuesday, July 23, 2013

'SelLength' is not a member of 'System.Windows.Forms.Control'.

During migration from VB to VB.NET if you are getting error as "'SelLength' is not a member of 'System.Windows.Forms.Control'." with following type of code

'UPGRADE_WARNING: Couldn't resolve default property of object mytextbox.SelLength.
mytextbox.SelLength = 0
Solution: -
Use new property “SelectionLength” as below

mytextbox.SelectionLength = 0

No comments:

Post a Comment