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

  • SEARCH
  • Home
  • 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 6663227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:28:34+00:00 2026-05-26T02:28:34+00:00

I have several text box’s where input is added. All these input are then

  • 0

I have several text box’s where input is added. All these input are then displayed in a text box at the bottom of the program after the button is clicked.

I want to make the just one of those strings to display as italics in the text box at the bottom of the program.

Here is what I have.

private void button1_Click(object sender, EventArgs e)
{
string author;
string name;
string year;
string title;
string place;
string publisher;

        name = textBox2.Text + ", ";
        author = textBox1.Text + ". ";
        year =  "(" + textBox3.Text + ") ";
        title = textBox4.Text + ", ";
        place = textBox5.Text + ", ";
        publisher = textBox6.Text + ".";


        // output to reference field


        richTextBox1.Text = name + author + year + title + place + publisher;

    }

What i want is to display the title string in italics.

Any help would be great.
Thanks

  • 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-26T02:28:34+00:00Added an answer on May 26, 2026 at 2:28 am
    richTextBox1.Find(title, RichTextBoxFinds.MatchCase);
    richTextBox1.SelectionFont = new Font(richTextBox1.Font, FontStyle.Italic);
    

    That should italicize the title of the book and only the title of the book, while keeping the font the same as the rest of the rich text box.

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

Sidebar

Related Questions

At my web page, I have several text box controls (eg. Input type=text ...)
I have one form with several text fields and one button. When i enter
I have a combo box and several text boxes on a form. When I
I have a table that contains several text box and buttons.I disable my table
I have several .box div including short text ( <p> ) and a thumbnail.
VB 2008. I have several text boxes on a form and I want each
I have several strings in the rough form: [some text] [some number] [some more
I have an object with several text strings as members. I want to write
I have a form with several text boxes on it. I only want to
I have an ASP.NET Datagrid with several text boxes and drop down boxes inside

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.