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. Visual Basic
  4. Help me! pls, some one help me! ahhhhhhhhhh....

Help me! pls, some one help me! ahhhhhhhhhh....

Scheduled Pinned Locked Moved Visual Basic
helptutorial
8 Posts 4 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.
  • N Offline
    N Offline
    NANCO
    wrote on last edited by
    #1

    Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((

    S G 3 Replies Last reply
    0
    • N NANCO

      Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((

      S Offline
      S Offline
      Sonia Gupta
      wrote on last edited by
      #2

      make the 1 increment and u will get the exact line number.

      N 1 Reply Last reply
      0
      • N NANCO

        Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        I believe that you will have better chances of getting replies in the forum if you: :: Try to write a useful subject. Almost every thread is about someone needing help, so that is totally worthless to use as subject. :: Don't :(:(:(:( use ;P every :->:-O:wtf::confused::suss: smiley :) that :zzz::zzz::zzz::zzz::zzz::zzz::zzz: exists. :cool::cool::cool: They are useful sometimes, but if you use too many it just becomes annoying noise.

        --- single minded; short sighted; long gone;

        N 1 Reply Last reply
        0
        • N NANCO

          Hi! I would like to; "really" know how to get the current text line number where the caret is at. :^) (not the "line number" just the "text line number": when you use textbox1.lines(0) it takes the entire text in line 0 even if some text are in line 1, because the text in line 1(as long as it didn't get there by pressing the return key) belongs to line 0, but when I use the code below it just says the text in line 1(even thought it belongs to line 0) as belonging to line 1.):( a = Rtb.GetLineFromCharIndex(rtb.SelectionStart) :cool:So can anyone tell me a way to get the real line number of the selected text.:cool: :-D thanks in advance:-D ps: :( (pls don't tell me to explain again!:((

          S Offline
          S Offline
          Sonia Gupta
          wrote on last edited by
          #4

          i agree with u Guffa.Either he is not serious and playing games, I think this is the first time he is putting the query .:-D

          N 1 Reply Last reply
          0
          • G Guffa

            I believe that you will have better chances of getting replies in the forum if you: :: Try to write a useful subject. Almost every thread is about someone needing help, so that is totally worthless to use as subject. :: Don't :(:(:(:( use ;P every :->:-O:wtf::confused::suss: smiley :) that :zzz::zzz::zzz::zzz::zzz::zzz::zzz: exists. :cool::cool::cool: They are useful sometimes, but if you use too many it just becomes annoying noise.

            --- single minded; short sighted; long gone;

            N Offline
            N Offline
            NANCO
            wrote on last edited by
            #5

            this smilies have sounds? I don't seem to get any sound at all.

            D 1 Reply Last reply
            0
            • S Sonia Gupta

              i agree with u Guffa.Either he is not serious and playing games, I think this is the first time he is putting the query .:-D

              N Offline
              N Offline
              NANCO
              wrote on last edited by
              #6

              Yes I'm new here, just posted 5 or 6 times so far. Sorry for any inconvenience. and sorry about the subject, I was just trying to get some attention to my string, I guess I was wrong, I guess proper subject will get even more attention. and I didn't know these smilies produced sound, even if it did I didn't get any sound so far.

              1 Reply Last reply
              0
              • S Sonia Gupta

                make the 1 increment and u will get the exact line number.

                N Offline
                N Offline
                NANCO
                wrote on last edited by
                #7

                can you pls elaborate on that, it will be greatly appreciated.

                1 Reply Last reply
                0
                • N NANCO

                  this smilies have sounds? I don't seem to get any sound at all.

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  No, they don't. Putting a bunch of them in your posts turns your post into unreadable noise.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007

                  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