Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Visual Studio C# Pls use this in Visual Studio Label Inside the Textbox - Handle the descriptive wording in the textbox when entering text. -

Visual Studio C#

image text in transcribed

Pls use this in Visual Studio

image text in transcribed

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 Fag 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 () . Windows Presentation Foundation client application

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_2

Step: 3

blur-text-image_3

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

=+What needs to be said first?

Answered: 1 week ago