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. Control.Select Method

Control.Select Method

Scheduled Pinned Locked Moved Visual Basic
comhelpquestion
2 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.
  • J Offline
    J Offline
    Jm6k
    wrote on last edited by
    #1

    I'm working with text files right now and I'm confused about a certain method. In many code examples, I see that after people put a string in a text box, they usually follow it up with a statment like "textbox1.select(1,0)" What does this do? Why is it important? What do the parameters mean? The VB help didn't really help me out that much. :wtf: Thanks for all your help! The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew

    R 1 Reply Last reply
    0
    • J Jm6k

      I'm working with text files right now and I'm confused about a certain method. In many code examples, I see that after people put a string in a text box, they usually follow it up with a statment like "textbox1.select(1,0)" What does this do? Why is it important? What do the parameters mean? The VB help didn't really help me out that much. :wtf: Thanks for all your help! The Jazz Master 6000 DJ Badknees Parma Grind Crew - www.geocities.com/parmagrindcrew

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      This allows you to select text inside the textbox. By Select I mean highlighted as you do with a mouse by clicking and dragging.

      'Fill the text box with some chars
      textbox1.Text = "ABCDEFGHIJ"

      'This line will highlight the first 3 characters
      'in the text box
      textbox1.Select(0,3)

      It is located in the help here: http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformstextboxbaseclassselecttopic1.asp?frame=true[^]


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Jörgen Sigvardsson wrote: If the physicists find a universal theory describing the laws of universe, I'm sure the asshole constant will be an integral part of that theory.


      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