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. message count down counter

message count down counter

Scheduled Pinned Locked Moved C#
question
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
    troubled one
    wrote on last edited by
    #1

    hi all. is there a way to do a message count down counter? so that whenever a user types the maximum of 160 characters, the program will detect it and a message box will appear. thanks.

    S 1 Reply Last reply
    0
    • T troubled one

      hi all. is there a way to do a message count down counter? so that whenever a user types the maximum of 160 characters, the program will detect it and a message box will appear. thanks.

      S Offline
      S Offline
      Syed Mujtaba Hassan
      wrote on last edited by
      #2

      If you are using a textbox say txtName then you can write an event handler for KeyPressed event. Like.... private void txtUname_KeyPress(object sender, KeyPressEventArgs e) { if (txtUname.Text.Length == 160) { MessageBox.Show("Text5"); } } Hopefully it will solve your problem.

      Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."

      T 1 Reply Last reply
      0
      • S Syed Mujtaba Hassan

        If you are using a textbox say txtName then you can write an event handler for KeyPressed event. Like.... private void txtUname_KeyPress(object sender, KeyPressEventArgs e) { if (txtUname.Text.Length == 160) { MessageBox.Show("Text5"); } } Hopefully it will solve your problem.

        Mujtaba "If both of us are having one apple each and we exchange it, at the end we both will have one apple each. BUT if both of us are having one idea each and we exchange it, at the end both of us will be having two ideas each."

        T Offline
        T Offline
        troubled one
        wrote on last edited by
        #3

        thanks. :D

        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