VB.NET 2003 InputBox doesn't resize to fit its text
Posted on 2007-04-04
In a VB.NET 2003 WinForm application, I get input from the user using the InputBox method. The problem is that the text in the InputBox doesn't fit (I have about 7 lines of text). It looks like the InputBox dialog is of fixed size and does not resize to fit its text. Does anyone know how to solve this?
The code is:
Dim sText As String
sText = InputBox ("Please contact us at:" & vbCrLf & vbCrLf & "Tel: (012) 345 6789" & vbCrLf & "Fax: (012) 345 6789" & vbCrLf & "E-Mail: email@example.com" & vbCrLf & "Website: www.mysite.com"