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. emptying texbox

emptying texbox

Scheduled Pinned Locked Moved C#
helpquestion
6 Posts 5 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
    tek 2009
    wrote on last edited by
    #1

    I would like emptying TexBox who are in treatment but in the event selectedchanger: texbox.text = String.Empty , find an error message because the content of the TexBox changes. can you help me?? thank you

    L L 2 Replies Last reply
    0
    • T tek 2009

      I would like emptying TexBox who are in treatment but in the event selectedchanger: texbox.text = String.Empty , find an error message because the content of the TexBox changes. can you help me?? thank you

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      tek 2009 wrote:

      an error message

      interesting

      tek 2009 wrote:

      can you help me??

      sure :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      T 1 Reply Last reply
      0
      • L Luc Pattyn

        tek 2009 wrote:

        an error message

        interesting

        tek 2009 wrote:

        can you help me??

        sure :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        T Offline
        T Offline
        tek 2009
        wrote on last edited by
        #3

        ??????????????

        C T 2 Replies Last reply
        0
        • T tek 2009

          ??????????????

          C Offline
          C Offline
          Covean
          wrote on last edited by
          #4

          Maybe he means "an error message". Its very specific and helps to guess what your problem is. Next time write "My application crashs!" to get some more wild guesses.

          Greetings Covean

          1 Reply Last reply
          0
          • T tek 2009

            ??????????????

            T Offline
            T Offline
            T M Gray
            wrote on last edited by
            #5

            He was making a point of being as unspecific as you were. If you get an error message and need help with it, then include what the error message was.

            1 Reply Last reply
            0
            • T tek 2009

              I would like emptying TexBox who are in treatment but in the event selectedchanger: texbox.text = String.Empty , find an error message because the content of the TexBox changes. can you help me?? thank you

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Hi there , You can't empty the text box while it's changing , it would be user hostile ! I recommended this :

                  private void textBox1\_Enter(object sender, EventArgs e)
                  {
                      textBox1.SelectAll();
                      //textBox1.Text = string.Empty;
                  }
              

              So the user can empty the text box with one Button click :) Please , Don't Mind the Other posters ! , they just didn't read the rules X| !

              I know nothing , I know nothing ...

              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