Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. tHow to restrict Edit control in MFC

tHow to restrict Edit control in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++
4 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aloktambi
    wrote on last edited by
    #1

    sir, i am using edit control in my program .i want it is work as Time contol so i want to resrict it so it take only integers value and colon(:) ,how it is possible

    C E D 3 Replies Last reply
    0
    • A aloktambi

      sir, i am using edit control in my program .i want it is work as Time contol so i want to resrict it so it take only integers value and colon(:) ,how it is possible

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      search this site for "masked edit control" Cleek | Image Toolkits | Thumbnail maker

      1 Reply Last reply
      0
      • A aloktambi

        sir, i am using edit control in my program .i want it is work as Time contol so i want to resrict it so it take only integers value and colon(:) ,how it is possible

        E Offline
        E Offline
        Eytukan
        wrote on last edited by
        #3

        if its only for integers, then check the 'Number' property in 'style' tab of the control's properties . He is like a one-legged man in a bum kicking competition. -Novjot Sidhu --[v]--

        1 Reply Last reply
        0
        • A aloktambi

          sir, i am using edit control in my program .i want it is work as Time contol so i want to resrict it so it take only integers value and colon(:) ,how it is possible

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Then why not use a control that is specifically designed for this? CDateTimeCtrl


          "Take only what you need and leave the land as you found it." - Native American Proverb

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups