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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.Net Query

VB.Net Query

Scheduled Pinned Locked Moved Visual Basic
csharpdatabase
3 Posts 3 Posters 1 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.
  • D Offline
    D Offline
    directred
    wrote on last edited by
    #1

    What do I have to do so that I just need to do Right(Text1.Text, 10) rather than type Microsoft.VisualBasic.Right(Text1.Text, 10)

    R Q 2 Replies Last reply
    0
    • D directred

      What do I have to do so that I just need to do Right(Text1.Text, 10) rather than type Microsoft.VisualBasic.Right(Text1.Text, 10)

      R Offline
      R Offline
      Rizwan Bashir
      wrote on last edited by
      #2

      strings.Right(Text1.Text, 10)

      1 Reply Last reply
      0
      • D directred

        What do I have to do so that I just need to do Right(Text1.Text, 10) rather than type Microsoft.VisualBasic.Right(Text1.Text, 10)

        Q Offline
        Q Offline
        Qhalis
        wrote on last edited by
        #3

        In a default VB.Net application you shouldn't have to do anything. Microsoft.VisualBasic is one of the default imports in the project template and Right(str,len) works, as is. If it is not working you can 1) Include an Imports Microsoft.VisualBasic statement at the top of the file 2) Add Microsoft.VisualBasic as one of the imports in the project settings. Project Properties/Common Properties/Imports One caveat though, as mentioned, Microsoft.VisualBasic is included by default whenever you create project. If it is no longer there then someone must have explictly removed it and may have a good reason for this. hth, Alan.

        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