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. about text editor. only text editor, not server or ....

about text editor. only text editor, not server or ....

Scheduled Pinned Locked Moved C#
databasesql-serversysadmin
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.
  • F Offline
    F Offline
    Fred 34
    wrote on last edited by
    #1

    when we create a block inside text editor, by pressing any key, that block disappears, while existing block, if suddenly u press DEL key, content of that block get detroyed. i dont want this, i want to have a block remain persist. pay attention i am talking only about text editor not data manippulate or SQL server or....... just inside of text editor.

    B P P L 4 Replies Last reply
    0
    • F Fred 34

      when we create a block inside text editor, by pressing any key, that block disappears, while existing block, if suddenly u press DEL key, content of that block get detroyed. i dont want this, i want to have a block remain persist. pay attention i am talking only about text editor not data manippulate or SQL server or....... just inside of text editor.

      B Offline
      B Offline
      Bigdeak
      wrote on last edited by
      #2

      Sorry, but i really don't understand you question... You don't wan't to destroy the selected text by pressing del or any other key? Is this right? What do you mean with a "block" inside text editor? But i really don't get what have this with C# together or with SQL server... really strange :omg:

      F 1 Reply Last reply
      0
      • F Fred 34

        when we create a block inside text editor, by pressing any key, that block disappears, while existing block, if suddenly u press DEL key, content of that block get detroyed. i dont want this, i want to have a block remain persist. pay attention i am talking only about text editor not data manippulate or SQL server or....... just inside of text editor.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #3

        Please don't repost questions so quickly. The original question is only a couple of threads below, and it's not very considerate of you reposting just to bump your post up.

        I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

        My blog | My articles | MoXAML PowerToys | Onyx

        1 Reply Last reply
        0
        • F Fred 34

          when we create a block inside text editor, by pressing any key, that block disappears, while existing block, if suddenly u press DEL key, content of that block get detroyed. i dont want this, i want to have a block remain persist. pay attention i am talking only about text editor not data manippulate or SQL server or....... just inside of text editor.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          Did you have a question? Edit: Wait, wait, what...? You want a read-only section of a text file? :wtf: Because you're a clumsy typist? Spend more time doing it, slow down, pay attention to what you're doing. Haste makes waste. P.S. And you know about undo, right?

          modified on Monday, August 30, 2010 11:03 PM

          1 Reply Last reply
          0
          • F Fred 34

            when we create a block inside text editor, by pressing any key, that block disappears, while existing block, if suddenly u press DEL key, content of that block get detroyed. i dont want this, i want to have a block remain persist. pay attention i am talking only about text editor not data manippulate or SQL server or....... just inside of text editor.

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

            faraz34 wrote:

            when we create a block inside text editor, by pressing any key, that block disappears,while existing block, if suddenly u press DEL key, content of that block get detroyed.i dont want this

            If it's a RichTextBox, than this can be prevented with the SelectionProtected[^] property. You'd use the SelectionStart and SelectionLength properties to define the part that you want to protect, and than you set the SelectionProtected property to true. Hope this helps, and my apologies for the rude answers :)

            I are Troll :suss:

            1 Reply Last reply
            0
            • B Bigdeak

              Sorry, but i really don't understand you question... You don't wan't to destroy the selected text by pressing del or any other key? Is this right? What do you mean with a "block" inside text editor? But i really don't get what have this with C# together or with SQL server... really strange :omg:

              F Offline
              F Offline
              Fred 34
              wrote on last edited by
              #6

              ok, let me explain more when u r typing a text, if press DownArrow while holding the Shift key, a block will be generated. BLOCK in text means a selected portion of text ok? after creating a block, if u press for example uparrow or home or..... that portion of text(BLOCK) will get unselected. i dont want this. i want that block still stay selected.

              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