Input box for 2008 VB.Net

Where to find the Input box for VB.Net 2008

Page 1 of 1

3 Replies - 7879 Views - Last Post: 10 November 2009 - 08:44 PM Rate Topic: -----

#1 pstoyourmom  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-November 09

Input box for 2008 VB.Net

Post icon  Posted 10 November 2009 - 07:38 PM

I have used 2005 of VB.Net and I can't seem to find the Input box for 2008 where do I find it? or how ?

Please and thank you

This post has been edited by pstoyourmom: 10 November 2009 - 07:39 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Input box for 2008 VB.Net

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: Input box for 2008 VB.Net

Posted 10 November 2009 - 07:58 PM

It is not a control you put on the form. You call it by

value = inputbox("Prompt"...

The intellisense will help you with the rest.
Was This Post Helpful? 0
  • +
  • -

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2262
  • View blog
  • Posts: 9,462
  • Joined: 29-May 08

Re: Input box for 2008 VB.Net

Posted 10 November 2009 - 08:27 PM

InputBox is a remnant from vb6. so try not to use it,

Its really simple to make your own.
Was This Post Helpful? 0
  • +
  • -

#4 theunborncoder  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 13
  • View blog
  • Posts: 123
  • Joined: 15-October 09

Re: Input box for 2008 VB.Net

Posted 10 November 2009 - 08:44 PM

hi

Public Shared Function InputBox(ByVal Prompt As String, Optional ByVal Title As String = "", Optional ByVal DefaultResponse As String = "", Optional ByVal XPos As Integer = -1, Optional ByVal YPos As Integer = -1) As String

u will find Member of Microsoft.VisualBasic.Interaction


dim str as string
str=InputBox("Enter String")


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1