|
 |
 |
[VB .NET] Printing/Inputting a String to a Text Box?
|
 |
 |
 |
 |
| Author |
Message |
Dackstar Asta GFX Team



 Joined: 22 Sep 2007 Posts: 5838 Location: Newcastle-upon-Tyne, United Kingdom
|
|
 |
Hey guys, me back again after a long period of stopping learning VB.
Came back to it to try and make my first app that relates with a website's API. In this case, I am making an app to do what TinyURL etc do with this website's API (it's just simple ).
| Use these free links to download now: |
|
|
I've pretty much finished it, I just need to get my app to print/input the string holding the shortened URL to a text box rather than keeping it in a message box where it is not possible to copy it.
I've looked around on the MSDN and Google but can't seem to find sufficient info. Any help is appreciated.
The string is named, strLine and the text box, txtShorter.
If you're interested, I'll be releasing this as freeware on Asta and I'll give anyone who can help a shout out both in the About box and in the post itself.
Thanks in advance.
PS: I already have this for cleanliness and user-friendliness:
| Code: |
txtShorter.Clear()
'This is where the print to text box code will be
txtShorter.SelectAll() |
And the text box has Read Only set to True so that it can't be edited, but still copied. |
_________________
|
|
Date Posted:Sat May 02, 2009 6:09 pmThanks: 2147Thanked 3314 Times In 1585 Posts
|
| Author |
Message |
Saduff Special Member



 Joined: 08 Dec 2008 Posts: 218 Location: CALL 0040627C
|
|
 |
Try this:
| Code: |
| txtShorter.Text = strLine |
Nice project  |
_________________
|
|
Date Posted:Sat May 02, 2009 6:47 pmThanks: 51Thanked 48 Times In 38 Posts
|
| Author |
Message |
Dackstar Asta GFX Team



 Joined: 22 Sep 2007 Posts: 5838 Location: Newcastle-upon-Tyne, United Kingdom
|
|
 |
Oh my, 4 months of not doing it shows doesn't it?
Thanks for the straight and simple answer. I'll be releasing it soon, just working on the About box (some stupid error throwing whenever I try to make a new form - woo! ).
Released!
http://www.astatalk.com/viewtopic.php?t=282938 |
_________________
|
|
Date Posted:Mon May 04, 2009 4:17 pmThanks: 2147Thanked 3314 Times In 1585 Posts
|
| Author |
Message |
.:hybrid:. Asta GFX Team



 Joined: 13 Mar 2008 Posts: 3902 Location: ♀
|
|
 |
wow sounds complicated, congrats and good job  |
_________________
|
|
Date Posted:Mon May 04, 2009 5:39 pmThanks: 1376Thanked 2541 Times In 1014 Posts
|
Astalavista Forum Index :: Programming Solutions :: [VB .NET] Printing/Inputting a String to a Text Box?
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|