Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please follow the instructions using c# and visual studio for desktop app Create a C# > Windows > Desktop app in Visual Studio. you will

image text in transcribed

image text in transcribed

Please follow the instructions using c# and visual studio for desktop app

Create a C\# > Windows > Desktop app in Visual Studio. you will write code to handle having a label inside of the textbox. Label Inside the Textbox - Handle the descriptive wording in the textbox when entering text. - This is a fun and relatively small program, you will write. - Don't change the design, just add event handlers and code. Requirements 1. Two textboxes. a. First textbox is for First name. This textbox has a traditional label on above. b. Second textbox is for the last name. This textbox has the label inside. 2. To start, last name textbox has the label inside in a faint gray foreground color. The label wording is provided in the Tag property. 3. When the last name texbox gets the focus, the label goes away and the user's text is the only characters in the textbox. In that case, the foreground color changes to black. 4. When the user clicks off of the textbox (Lost Focus event). a. If there's data in the textbox, leave that data alone. b. If no data in the textbox, redisplay the label in the faint color again. 5. "Display" button: When user clicks the display button, the program will concatenate the first name and last name together and display in a read only textbox. 6. You might want to use these textbox events: a. TextChanged - When the text has changed (more or less) in that control. b. GotFocus - Triggered when the cursor is placed in that particular control. c. LostFocus - Triggered when the cursor leaves that particular control. 7. You may need to know how to manipulate strings with such string methods as .indexof(), . Length(), substring(), Tostring() 8. The window cannot be resized and gave the Window a title. 9. Note the TAG property for the 1 textbox. It's useful here. When using the TAG property, cast it to a string txtFName. Tag. tostring (). 10. Implement the EXIT button, to close the program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions