Results 1 to 4 of 4

Thread: How to use Masked Edit Control 6.0 for IP address format

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    73

    How to use Masked Edit Control 6.0 for IP address format

    Hi Guys,

    I have this program that must have a filed for IP address. I need to format the field based on ip address format. how would I used the Masked Edit Control 6.0 COM for formatting an ip address entries. Thanks for your help.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: How to use Masked Edit Control 6.0 for IP address format

    You mask would be "##0.##0.##0.##0" so the user has to add at least one digit for each section. Are you using C# 2005? If so use the .NET MaskedTextBox instead as it's much easier to use.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    73

    Re: How to use Masked Edit Control 6.0 for IP address format

    hi,

    yes im using c# 2005. i will try your advise and use MaskedTextBox, will I type the "##0.##0.##0" in Mask property of MaskedTextBox? thanks for your quick rescue

  4. #4
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: How to use Masked Edit Control 6.0 for IP address format

    someone just posted about this recently. i also think there is a control for it somewhere in these forums.. i think i might even have it. brb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width