SlideShare a Scribd company logo
Vp lecture 11 ararat
Vp lecture 11 ararat
Vp lecture 11 ararat
Select the “ContextMenuStrip” control and start adding the name of menus, for example I added menus like Background,
foreground and then add form, button submenu to Background menu .
After adding the name of the menu on you application, right-click on the Windows Forms application and go to the
properties.
Select "ContextMenuStrip" and change it to ContextMenuStrip1 from (none).
To add code to menus double click in the menu and add the code
run the project and right-click on the form, the Context Menu will appear on the form as shown in the
following image.
• RichTextBox has many formatting options.
It applies colors, background colors,
multiple fonts, and margins to the text.
• It adds more complexity than the regular TextBox.
• But the RichTextBox provides needed features to
programs.
example
private void button1_Click(object sender, EventArgs e)
{
richTextBox1.SelectionBackColor = Color.Coral;
richTextBox1.AppendText(this.textBox1.Text);
}
private void button1_Click(object sender, EventArgs e)
{
colorDialog1.ShowDialog();
richTextBox1.SelectionColor = colorDialog1.Color;
richTextBox1.AppendText(" hi");
}
OR
Vp lecture 11 ararat

More Related Content

PPTX
Class viii ch-7 visual basic 2008
PDF
Intake 38 8
PPT
Visual Basic menu
PPTX
Vs c# lecture5
PPT
Power Point Project 5
PDF
Intake 37 8
PPTX
Vs c# lecture3
PPTX
Vp lecture 6 ararat
Class viii ch-7 visual basic 2008
Intake 38 8
Visual Basic menu
Vs c# lecture5
Power Point Project 5
Intake 37 8
Vs c# lecture3
Vp lecture 6 ararat

Similar to Vp lecture 11 ararat (20)

PPTX
Chapter 2 — Program and Graphical User Interface Design
PPTX
Chapter 02
PPT
PPTX
Spf chapter 03 WinForm
PPTX
ch 3 of C# programming in advanced programming
PPT
visual programming GDI presentation powerpoint
PPT
Visual programming Chapter 3: GUI (Graphical User Interface)
PPTX
Vs c# lecture1
DOCX
COSC 1436 Project Page 1 Pre Project Example Secti.docx
DOCX
Visual C# 2010
DOCX
Microsoft Visual C# 2012- An introduction to object-oriented programmi.docx
PPT
VB6_OBJECTS AND GRAPHICS.ppt
PPTX
Vp lecture1 ararat
PDF
VB PPT by ADI PART4.pdf
PDF
VB PPT by ADI PART4.pdf
PPTX
Windows form application_in_vb(vb.net --3 year)
PPTX
JY Pathways: Program Android Apps with MIT App Inventor 2
PPT
Formulae
PPTX
SPF WinForm Programs
DOCX
c programming 109.docx
Chapter 2 — Program and Graphical User Interface Design
Chapter 02
Spf chapter 03 WinForm
ch 3 of C# programming in advanced programming
visual programming GDI presentation powerpoint
Visual programming Chapter 3: GUI (Graphical User Interface)
Vs c# lecture1
COSC 1436 Project Page 1 Pre Project Example Secti.docx
Visual C# 2010
Microsoft Visual C# 2012- An introduction to object-oriented programmi.docx
VB6_OBJECTS AND GRAPHICS.ppt
Vp lecture1 ararat
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
Windows form application_in_vb(vb.net --3 year)
JY Pathways: Program Android Apps with MIT App Inventor 2
Formulae
SPF WinForm Programs
c programming 109.docx
Ad

More from Saman M. Almufti (20)

PPTX
Lecture 7- domain name
PPTX
Vp lecture 10 ararat
PPTX
Vp lecture 12 ararat
PPTX
Vp lecture 9 ararat
PPTX
Lecture 6- http
PPTX
Lecture 5- url-dns
PPTX
Vp lecture 7 ararat
PPTX
Lecture 4- ip
PPTX
Vp lecture 5 ararat
PPTX
Lecture 3- tcp-ip
PPTX
Vp lecture 4 ararat
PPTX
Vp lecture 3 ararat
PPTX
Lecture 2- terminology
PPTX
Vp lecture 2 ararat
PPTX
Lecture 1- introduction
PPTX
Vs c# lecture12
PPTX
Vs c# lecture11
PPTX
Vs c# lecture10
PPTX
Vs c# lecture9
PPTX
Vs c# lecture8
Lecture 7- domain name
Vp lecture 10 ararat
Vp lecture 12 ararat
Vp lecture 9 ararat
Lecture 6- http
Lecture 5- url-dns
Vp lecture 7 ararat
Lecture 4- ip
Vp lecture 5 ararat
Lecture 3- tcp-ip
Vp lecture 4 ararat
Vp lecture 3 ararat
Lecture 2- terminology
Vp lecture 2 ararat
Lecture 1- introduction
Vs c# lecture12
Vs c# lecture11
Vs c# lecture10
Vs c# lecture9
Vs c# lecture8
Ad

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
project resource management chapter-09.pdf
PDF
Approach and Philosophy of On baking technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
1. Introduction to Computer Programming.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Web App vs Mobile App What Should You Build First.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
Tartificialntelligence_presentation.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Assigned Numbers - 2025 - Bluetooth® Document
NewMind AI Weekly Chronicles - August'25-Week II
project resource management chapter-09.pdf
Approach and Philosophy of On baking technology
MIND Revenue Release Quarter 2 2025 Press Release
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
1. Introduction to Computer Programming.pptx
A novel scalable deep ensemble learning framework for big data classification...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Encapsulation_ Review paper, used for researhc scholars
Programs and apps: productivity, graphics, security and other tools
A comparative analysis of optical character recognition models for extracting...
Unlocking AI with Model Context Protocol (MCP)
Web App vs Mobile App What Should You Build First.pdf
TLE Review Electricity (Electricity).pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Heart disease approach using modified random forest and particle swarm optimi...

Vp lecture 11 ararat

  • 4. Select the “ContextMenuStrip” control and start adding the name of menus, for example I added menus like Background, foreground and then add form, button submenu to Background menu .
  • 5. After adding the name of the menu on you application, right-click on the Windows Forms application and go to the properties. Select "ContextMenuStrip" and change it to ContextMenuStrip1 from (none). To add code to menus double click in the menu and add the code
  • 6. run the project and right-click on the form, the Context Menu will appear on the form as shown in the following image.
  • 7. • RichTextBox has many formatting options. It applies colors, background colors, multiple fonts, and margins to the text. • It adds more complexity than the regular TextBox. • But the RichTextBox provides needed features to programs.
  • 8. example private void button1_Click(object sender, EventArgs e) { richTextBox1.SelectionBackColor = Color.Coral; richTextBox1.AppendText(this.textBox1.Text); } private void button1_Click(object sender, EventArgs e) { colorDialog1.ShowDialog(); richTextBox1.SelectionColor = colorDialog1.Color; richTextBox1.AppendText(" hi"); } OR