Hi, I am making an APA web based citation generator. All is well but I seem to be having trouble making a string have an Italic font, Here is my code.
public partial class Form1 : Form
private void Form1_Load(object sender, EventArgs e)
private void button1_Click(object sender, EventArgs e)
author = AuthorBox.Text;
date = PublishBox.Text;
TitleOfArticle = TitleBox.Text;
Retriveddate = RetrivedBox.Text;
websiteURl = URLBox.Text;
citation = author + " ." + "(" + date + "). " + TitleOfArticle + ". Retrieved " + Retriveddate + ", from " + websiteURl;
richTextBox1.Text = citation;
private void button3_Click(object sender, EventArgs e)
private void button2_Click(object sender, EventArgs e)
As you can see in my sample code I have strings for each combobox and they record the user's input for each box. Then I combine all of them and put it into 1 string called "Citation" and when the user presses a button this string is displayed in a richtextbox. In a proper web citation for APA the title of the webpage needs to be Italic. How can I change the font style of the title and make it Italic when the user generates the citation? The string for the title of webpage is called "TitleOfArticle".
I appreciate everyones help.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)