Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6859991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:21:10+00:00 2026-05-27T02:21:10+00:00

I am working on a new assignment. Our instructor wants us to code a

  • 0

I am working on a new assignment. Our instructor wants us to code a shared leave event for three textboxes (txtBox1, txtBox2, txtBox3).
I understand how to code the shared event and how to make a generic tbox for it:

Private Sub txtDescription_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtBox1.Leave, txtBox2.Leave, txtBox3.Leave

    'generic textbox
    Dim txtText As TextBox
    txtText = CType(sender, TextBox)

We are told that if the generic textbox contains data and the data has been modified (against the database record), we need to :

Determine the name (name property) of the textbox that casued the evend
and
Determine the value (text property) of that textbox.

I know to check to see if anything is in the generic box by the length property, and if it is modified by the modified method, but how do you determine the name and value? Is it a case statement?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:21:10+00:00Added an answer on May 27, 2026 at 2:21 am

    You have everything that you need right there. The sender Object is the TextBox that is triggering the event

    Private Sub txtDescription_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtBox1.Leave, txtBox2.Leave, txtBox3.Leave 
    
        'generic textbox 
        Dim txtText As TextBox 
        Dim txtName as String
        Dim txtValue as String
    
        txtText = CType(sender, TextBox) 
        txtName= txtText.Name
        txtValue = txtText.Text
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to C++ and was working on an assignment for a class. We
I'm working on a new Moodle Assignment plugin. How can I include a custom
I am working on a C++ assignment for class that wants me to overload
I have the following code that I am working on for my college assignment.
I have an assignment and i need working code. Before i start i want
I am a little new to android and was working over a lab assignment
I am working on a programming assignment in which we are making our own
In the course of my career I've noticed that developers working on new functionality
In Git I can do this: 1. Start working on new feature: $ git
Im new to working with Domain Models so forgive me for asking an elementary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.