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#
  4. Editbox update

Editbox update

Scheduled Pinned Locked Moved C#
questioncomtoolsannouncement
3 Posts 2 Posters 0 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.
  • T Offline
    T Offline
    Tom Moore
    wrote on last edited by
    #1

    Hi, i made a post on the 30th, I left a message reguarding a reply to my question. Im just posting here to make sure it gets read, i hope im not breaking the rules here, and if I am i'm sorry :). Here is a link to my previous post -> http://www.codeproject.com/script/comments/user_new.asp?forumid=1649&main=/script/comments/forums.asp[^] Thanks Tom -- modified at 14:59 Monday 31st October, 2005

    N 1 Reply Last reply
    0
    • T Tom Moore

      Hi, i made a post on the 30th, I left a message reguarding a reply to my question. Im just posting here to make sure it gets read, i hope im not breaking the rules here, and if I am i'm sorry :). Here is a link to my previous post -> http://www.codeproject.com/script/comments/user_new.asp?forumid=1649&main=/script/comments/forums.asp[^] Thanks Tom -- modified at 14:59 Monday 31st October, 2005

      N Offline
      N Offline
      NetRocker
      wrote on last edited by
      #2

      Ths link is taking me to a "post message" page, please resend the problem

      T 1 Reply Last reply
      0
      • N NetRocker

        Ths link is taking me to a "post message" page, please resend the problem

        T Offline
        T Offline
        Tom Moore
        wrote on last edited by
        #3

        Hi, yeah! Heres the problem. Ive posted on this board before but in the Visual C++ area. My Question is : In my previous questions, I created a new EditBox Class Called CInitials and changed the OnChar Message to append a '.' after each keypress. The code for that was done like this: void CInitials::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) { //** Validate the entered character if (isalpha(nChar) ) { // ** Convert lower to to UPPER case if ( islower(nCHAR) ) nChar -=32; // ** Call the default windows procedure as // ** the value of the nChar may have been altered DefWindowProc(WM_CHAR, nChar, MAKELONG(nRepCnt, nFlags)); // ** Call the default windows procedure // ** again to add the period. nChar = '.'; DefWindowProc(WM_CHAR, nChar, MAKELONG(nRepCnt, nFlags)); } // ** If the backspace key is pressed call the // ** base class function twice to remove the period // ** and the letter if ( nChar == VK_BACK ) { CEdit::OnChar(nChar,nRepCnt,nFlags); CEdit::OnChar(nChar,nRepCnt,nFlags); } } The CInitials Class was derived from the CEdit Class in Visual C++. The question is, can this be done in C#? If yes how? Thanks again Tom

        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