0% found this document useful (0 votes)
12 views2 pages

03 02 C#4.5 Handson

Uploaded by

Raghu Gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

03 02 C#4.5 Handson

Uploaded by

Raghu Gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Objectives

 Demonstrate creation of a Windows service


o Create, Start, Stop, Use timer to Create File and Append text, Installer file,
InstallUtil to install service, LocalSystem, NetworkService types,
Services.msc
 Demonstrate creation of a Windows forms application
o Textbox, button, MessageBox, Panel and properties, OpenFileDialog

Windows service usage


Business case: Create a Windows service to write a text
file with content in a frequent interval
Description: Create a Windows service with a timer that
runs every 10 seconds. Configure a time at which an
activity needs to be done. The timer should check if the
current time is the same or crossed the configured time.
If the check is true, then Create a text file and write text
‘Custom activity started at [Current datetime]’
Technical details:
Use System.Timers.Timer, use the elapsed event to do
the date time comparison.

Windows forms application


Business case: Create a Windows forms application to
perform basic Calculator operations
Description: Create a Windows forms application to
have
 Two textboxes for input
 Four radio buttons for Addition, Subtraction,
Multiplication and Division
 Button to perform the operation
o Check the operation selected from the radio
button checked property
 Use MessageBox to show the result
Use regular expression to check the input data. On
operation button click, if the input is not a number, then
use MessageBox to display message ‘Please enter valid
input for the operands’

Windows forms application


Business case: Create a Windows forms application to
provide an option to choose file for upload
Description: Create a Windows forms application to have
 File open dialog to choose an image file. Have
restriction to have
 Use PictureBox control to set the image

You might also like