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. Regarding text box control

Regarding text box control

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
3 Posts 3 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.
  • R Offline
    R Offline
    Rmesh
    wrote on last edited by
    #1

    how to print the variables in textbox rx: dim i as integer=10 dim j as integer=23 textboxbox1.text=(i,j) if i give like this it show error what is the result

    Y J 2 Replies Last reply
    0
    • R Rmesh

      how to print the variables in textbox rx: dim i as integer=10 dim j as integer=23 textboxbox1.text=(i,j) if i give like this it show error what is the result

      Y Offline
      Y Offline
      Yona Low
      wrote on last edited by
      #2

      Rmesh wrote:

      textboxbox1.text=(i,j)

      textboxbox1.Text = (i.ToString & j.ToString)

      1 Reply Last reply
      0
      • R Rmesh

        how to print the variables in textbox rx: dim i as integer=10 dim j as integer=23 textboxbox1.text=(i,j) if i give like this it show error what is the result

        J Offline
        J Offline
        jsampsonPC
        wrote on last edited by
        #3

        What are you trying to get by printing (i,j)? Do you want the .Text property of the TextBox to be "(10,23)"? If so, you need to take the .ToString method of both integers and print that instead. Try this: Dim i As Integer = 10 Dim j As Integer = 23 TextBox1.Text = "(" & i.ToString & "," & j.ToString ")" That should do it for you.

        Jonathan Sampson www.SampsonResume.com

        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