Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Guys. I created a simple web browser in VS 2012 coding with C#.


when a user only enters a single word in the address textbox instead of (http://microsoft.com) but instead something Such as "Microsoft" or "Facebook". I want to automatically add the html and .com part. Any insights would be great. Thanks.
Posted
Comments
[no name] 1-Jun-14 20:01pm    
Not sure what "insight" you would be looking for. Sounds to me like you need to read the documentation for String.StartsWith and EndsWith and then learn how to do some string concatenation.
Centuri Damos 1-Jun-14 20:25pm    
Ok Ill take a look at that. Thanks Wes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900