SlideShare a Scribd company logo
For my visual basics class I have to create this project.
1.4 Write a project to display company contact information. Include buttons
and labels for the contact person, department, and phone. When the user
clicks on one of the buttons, display the contact information in the corresponding label. Include
a button to print and another to exit.
Include a label that holds your name at the bottom of the form and
change the title bar of the form to something meaningful.
You may change the Font properties of the labels to the font and size of
your choice.
Follow good naming conventions for object names; include remarks at
the top of every procedure and at the top of the file.
Solution
namespace HelloWorld { partial class MainPage { public MainPage() {
InitializeComponent(); } private void HelloButton_Click(object sender, RoutedEventArgs e) {
DisplayText.Text = "Hello World"; } } } ' Visual Basic Partial Public Class MainPage
Public Sub New() Me.InitializeComponent() End Sub Private Sub HelloButton_Click(ByVal
sender As Object, ByVal e As RoutedEventArgs) DisplayText.Text = "Hello World" End Sub
End Class // C++ MainPage::MainPage() { InitializeComponent(); } MainPage::~MainPage() {
} void HelloWorld::MainPage::HelloButton_Click(Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e) { DisplayText->Text = "Hello World"; } A Hello
World app is good place to start. But it doesn't take you very far down the road to profitability,
so we'll take a different path as we explore building Metro style apps for Windows Developer
Preview. The sample app that we use to get started is a simple blog reader that downloads and
displays data from an RSS 2.0 or Atom 1.0 feed Answer Rating: 4 Stars worked somewhat not
downplaying your idea though Answered by Anonymous 5 weeks ago namespace HelloWorld {
partial class MainPage { public MainPage() { InitializeComponent(); } private void
HelloButton_Click(object sender, RoutedEventArgs e) { DisplayText.Text = "Hello World"; }
} } ' Visual Basic Partial Public Class MainPage Public Sub New() Me.InitializeComponent()
End Sub Private Sub HelloButton_Click(ByVal sender As Object, ByVal e As
RoutedEventArgs) DisplayText.Text = "Hello World" End Sub End Class // C++
MainPage::MainPage() { InitializeComponent(); } MainPage::~MainPage() { } void
HelloWorld::MainPage::HelloButton_Click(Platform::Object^ sender,
Windows::UI::Xaml::RoutedEventArgs^ e) { DisplayText->Text = "Hello World"; }

More Related Content

Similar to For my visual basics class I have to create this project. 1.4 Writ.pdf

PT1420 Repetition Structures in Visual Basic .docx
PT1420 Repetition Structures in Visual Basic             .docxPT1420 Repetition Structures in Visual Basic             .docx
PT1420 Repetition Structures in Visual Basic .docx
amrit47
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
mwillmer
 

Similar to For my visual basics class I have to create this project. 1.4 Writ.pdf (20)

unit 4.docx
unit 4.docxunit 4.docx
unit 4.docx
 
Building Accessible Apps using NET MAUI.pdf
Building Accessible Apps using NET MAUI.pdfBuilding Accessible Apps using NET MAUI.pdf
Building Accessible Apps using NET MAUI.pdf
 
Ios - Introduction to platform & SDK
Ios - Introduction to platform & SDKIos - Introduction to platform & SDK
Ios - Introduction to platform & SDK
 
pebble - Building apps on pebble
pebble - Building apps on pebblepebble - Building apps on pebble
pebble - Building apps on pebble
 
M365 global developer bootcamp 2019
M365 global developer bootcamp 2019M365 global developer bootcamp 2019
M365 global developer bootcamp 2019
 
Ways to Set Focus on an Input Field After Rendering in React.pptx
Ways to Set Focus on an Input Field After Rendering in React.pptxWays to Set Focus on an Input Field After Rendering in React.pptx
Ways to Set Focus on an Input Field After Rendering in React.pptx
 
PT1420 Repetition Structures in Visual Basic .docx
PT1420 Repetition Structures in Visual Basic             .docxPT1420 Repetition Structures in Visual Basic             .docx
PT1420 Repetition Structures in Visual Basic .docx
 
AI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedAI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You Typed
 
To-Do App With Flutter: Step By Step Guide
To-Do App With Flutter: Step By Step GuideTo-Do App With Flutter: Step By Step Guide
To-Do App With Flutter: Step By Step Guide
 
Introduction to React for Frontend Developers
Introduction to React for Frontend DevelopersIntroduction to React for Frontend Developers
Introduction to React for Frontend Developers
 
Android Lab Mannual 18SUITSP5.docx
Android Lab Mannual 18SUITSP5.docxAndroid Lab Mannual 18SUITSP5.docx
Android Lab Mannual 18SUITSP5.docx
 
MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...
 
Modernizing Twitter for Windows as a Progressive Web App
Modernizing Twitter for Windows as a Progressive Web AppModernizing Twitter for Windows as a Progressive Web App
Modernizing Twitter for Windows as a Progressive Web App
 
C# p1
C# p1C# p1
C# p1
 
Simple web browser
Simple web browserSimple web browser
Simple web browser
 
C#Portfolio
C#PortfolioC#Portfolio
C#Portfolio
 
Vaadin 7
Vaadin 7Vaadin 7
Vaadin 7
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Technology and Livelihood Education IV
Technology and Livelihood Education IVTechnology and Livelihood Education IV
Technology and Livelihood Education IV
 

More from info788195

For each of the following cases, indicate the filing status for the .pdf
For each of the following cases, indicate the filing status for the .pdfFor each of the following cases, indicate the filing status for the .pdf
For each of the following cases, indicate the filing status for the .pdf
info788195
 

More from info788195 (7)

For the circuit below, find the transfer function H(s) = V0Ig For t.pdf
For the circuit below, find the transfer function H(s) = V0Ig For t.pdfFor the circuit below, find the transfer function H(s) = V0Ig For t.pdf
For the circuit below, find the transfer function H(s) = V0Ig For t.pdf
 
For some reason, sometimes when I log in the top panel applets appea.pdf
For some reason, sometimes when I log in the top panel applets appea.pdfFor some reason, sometimes when I log in the top panel applets appea.pdf
For some reason, sometimes when I log in the top panel applets appea.pdf
 
For several years, CSK Auto, Inc., fraudulently reported inflated ea.pdf
For several years, CSK Auto, Inc., fraudulently reported inflated ea.pdfFor several years, CSK Auto, Inc., fraudulently reported inflated ea.pdf
For several years, CSK Auto, Inc., fraudulently reported inflated ea.pdf
 
For each of the following, identify whether it would be disclosed as.pdf
For each of the following, identify whether it would be disclosed as.pdfFor each of the following, identify whether it would be disclosed as.pdf
For each of the following, identify whether it would be disclosed as.pdf
 
For each of the following cases, indicate the filing status for the .pdf
For each of the following cases, indicate the filing status for the .pdfFor each of the following cases, indicate the filing status for the .pdf
For each of the following cases, indicate the filing status for the .pdf
 
For comparison reasons, why is standardization of costs usedWhat .pdf
For comparison reasons, why is standardization of costs usedWhat .pdfFor comparison reasons, why is standardization of costs usedWhat .pdf
For comparison reasons, why is standardization of costs usedWhat .pdf
 
For calculating economic growth of a country we need to collect data.pdf
For calculating economic growth of a country we need to collect data.pdfFor calculating economic growth of a country we need to collect data.pdf
For calculating economic growth of a country we need to collect data.pdf
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 

For my visual basics class I have to create this project. 1.4 Writ.pdf

  • 1. For my visual basics class I have to create this project. 1.4 Write a project to display company contact information. Include buttons and labels for the contact person, department, and phone. When the user clicks on one of the buttons, display the contact information in the corresponding label. Include a button to print and another to exit. Include a label that holds your name at the bottom of the form and change the title bar of the form to something meaningful. You may change the Font properties of the labels to the font and size of your choice. Follow good naming conventions for object names; include remarks at the top of every procedure and at the top of the file. Solution namespace HelloWorld { partial class MainPage { public MainPage() { InitializeComponent(); } private void HelloButton_Click(object sender, RoutedEventArgs e) { DisplayText.Text = "Hello World"; } } } ' Visual Basic Partial Public Class MainPage Public Sub New() Me.InitializeComponent() End Sub Private Sub HelloButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) DisplayText.Text = "Hello World" End Sub End Class // C++ MainPage::MainPage() { InitializeComponent(); } MainPage::~MainPage() { } void HelloWorld::MainPage::HelloButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) { DisplayText->Text = "Hello World"; } A Hello World app is good place to start. But it doesn't take you very far down the road to profitability, so we'll take a different path as we explore building Metro style apps for Windows Developer Preview. The sample app that we use to get started is a simple blog reader that downloads and displays data from an RSS 2.0 or Atom 1.0 feed Answer Rating: 4 Stars worked somewhat not downplaying your idea though Answered by Anonymous 5 weeks ago namespace HelloWorld { partial class MainPage { public MainPage() { InitializeComponent(); } private void HelloButton_Click(object sender, RoutedEventArgs e) { DisplayText.Text = "Hello World"; } } } ' Visual Basic Partial Public Class MainPage Public Sub New() Me.InitializeComponent() End Sub Private Sub HelloButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs) DisplayText.Text = "Hello World" End Sub End Class // C++ MainPage::MainPage() { InitializeComponent(); } MainPage::~MainPage() { } void HelloWorld::MainPage::HelloButton_Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e) { DisplayText->Text = "Hello World"; }