m66n / ipaddresscontrollib

Automatically exported from code.google.com/p/ipaddresscontrollib
Other
62 stars 26 forks source link

Enhancement - Additional read-only properties #12

Closed ryanwilliams83 closed 8 years ago

ryanwilliams83 commented 8 years ago

Hi, This pull request contains a simple fix to the Cleanup method to prevent a NullReferenceException occurring in the VS Designer.

I have also implemented two additional read-only properties that I needed in order to discover the location of the I beam cursor within the control; allowing me to implement navigation between controls using keyboard arrow keys.

.SelectionStart == 0 // Cursor is in the first field and to the left of any text .FocusedFieldIndex == 3 && .SelectionStart == .Text.Length // Cursor is in the last field and to the right of any text.