Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6846073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:34:41+00:00 2026-05-27T00:34:41+00:00

I am trying to write a program with Visual Basic 2010. The problem is

  • 0

I am trying to write a program with Visual Basic 2010.

The problem is when I load an “Example” with multi-lines it takes forever! I don’t mind it taking a while but it would be nice if there was a faster way.

'Open Sample Page
Textbox1.Text =
"<html>" + Environment.NewLine +
"<!- Example ->" + Environment.NewLine +
"<h1 align='center'>" + Environment.NewLine +
"Page Title" + Environment.NewLine +
"</h1>" + Environment.NewLine +
"<h3>" + Environment.NewLine +
"Subject" + Environment.NewLine +
"</h3>" + Environment.NewLine +
"<p>" + Environment.NewLine +
"Paragraph with lots of text in it.<br>" + Environment.NewLine +
"<a href='http://www.google.com/'>" + Environment.NewLine +
"Links" + Environment.NewLine +
"</a>" + Environment.NewLine +
"...And Different lines." + Environment.NewLine +
"</p>" + Environment.NewLine +
"</html>"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:34:42+00:00Added an answer on May 27, 2026 at 12:34 am

    Thanks Guys but this guy on yahoo! helped me..

    VB uses can use ampersand(&) or a plus sign (+) operator for concatenation.

    The plus(+) operator is also used for addition while the ampersand(&) is only used for concatenation.

    When you use the + VB must figure out which operation you are trying to perform, addition or concatenation. Most of the time VB guesses right but there are time when VB can guess wrong and cause a bug. Also since you are using the plus sign VB has to determine which operation needs to be performed.

    I recommend that you use the ampersand(&) whenever you are trying to do concatenation and ONLY use the plus sign(+) for addition.

    Try replacings all of the +’s with &’s so that VB doesn’t waste time in determing if addition or concatenation needs to be done. By using an ampersand you leave no doubt that you want to do concatenation

    A quick way to do that edit is to highlight the text and press CTRL+H to do a find and replace on the selected text and replace + with &

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write a program in Visual Basic (with VS 2010) that
I'm trying to use Visual Studio Express 2010 to write an openGL program, so
I'm trying to write an Outlook Addin in C# using Visual Studio 2010 and
I'm using Visual Studio 2010. I'm trying to write simple Camera class in OpenGL.
I'm trying to write a program that takes input of - hexadecimals, octals, and
I'm trying to write a program that compiles in Borland C++ and Visual C++.
I'm trying to write a simple/small Windows Communication Foundation service application in Visual Basic
I'm trying to write a program to process the BSD-style process accounting file under
I'm trying to write a program that uses sockets to connect with other instances
I'm trying to write a program in C (on Linux) that loops until the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.