[VB .NET] Printing/Inputting a String to a Text Box?
Astalavista Forum Index :: Programming Solutions :: [VB .NET] Printing/Inputting a String to a Text Box?
Post new topic   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
  [VB .NET] Printing/Inputting a String to a Text Box?
Author Message
Dackstar
Asta GFX Team
Asta GFX Team


Offline
No Image
Joined: 22 Sep 2007
Posts: 5838
Location: Newcastle-upon-Tyne, United Kingdom

Reply with quote
No Image
Hey guys, me back again after a long period of stopping learning VB. Hmmm

Came back to it to try and make my first app that relates with a website's API. Happy In this case, I am making an app to do what TinyURL etc do with this website's API (it's just simple Tongue).
Use these free links to download now:
Code:
http://Notallowed/


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. Think 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. Wink

Thanks in advance. Smile

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.

_________________
View user's profile Send private message Visit poster's website MSN Messenger
PostDate Posted:Sat May 02, 2009 6:09 pm
Thanks: 2147Thanked 3314 Times In 1585 Posts

Author Message
Saduff
Special Member
Special Member


Offline
No Image
Joined: 08 Dec 2008
Posts: 218
Location: CALL 0040627C

Reply with quote
No Image
Try this:
Code:
txtShorter.Text = strLine


Nice project Wink

_________________


View user's profile Send private message
PostDate Posted:Sat May 02, 2009 6:47 pm
Thanks: 51Thanked 48 Times In 38 Posts

Author Message
Dackstar
Asta GFX Team
Asta GFX Team


Offline
No Image
Joined: 22 Sep 2007
Posts: 5838
Location: Newcastle-upon-Tyne, United Kingdom

Reply with quote
No Image
Oh my, 4 months of not doing it shows doesn't it? Don't want to see

Thanks for the straight and simple answer. Smile 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! Toothy).



Released!
http://www.astatalk.com/viewtopic.php?t=282938

_________________
View user's profile Send private message Visit poster's website MSN Messenger
PostDate Posted:Mon May 04, 2009 4:17 pm
Thanks: 2147Thanked 3314 Times In 1585 Posts

Author Message
.:hybrid:.
Asta GFX Team
Asta GFX Team


Offline
No Image
Joined: 13 Mar 2008
Posts: 3902
Location: ♀

Reply with quote
No Image
wow sounds complicated, congrats and good job Smile

_________________
View user's profile Send private message Visit poster's website
PostDate Posted:Mon May 04, 2009 5:39 pm
Thanks: 1376Thanked 2541 Times In 1014 Posts

Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Page 1 of 1 All times are GMT


Back to top


 
Astalavista Forum Index :: Programming Solutions :: [VB .NET] Printing/Inputting a String to a Text Box?



Search This Topic:
Jump to:  
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


Powered by Astalavista.MS Team © 2004
Image Here Image Here Image Here