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 744253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:57:25+00:00 2026-05-14T08:57:25+00:00

I am making a custom textbox control and am thinking about adding keybindings in

  • 0

I am making a custom textbox control and am thinking about adding keybindings in the constructor that execute commands to open and save files. I am also thinking about handling the find and replace dialog from within my textbox control.

Is there a reason I shouldn’t do this?

–Edit–

I am planning on only using this control in my current application. One of the reasons I am thinking of doing this is to avoid binding to the textbox’s Text property, since this binding seems like it would be just as inefficient as updating a string on the textbox’s textchanged event.

  • 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-14T08:57:25+00:00Added an answer on May 14, 2026 at 8:57 am

    Well, flexibility comes to mind. Consider the following scenarios, which would be impossible (or at least difficult) in your control:

    1. You want to handle multiple or different methods of opening a file, but it depends on your application.

    2. You want to use your textbox but limit the functionality — e.g., Find/Replace is not allowed.

    3. You want to change the behavior of any of that in one application but not the other. For example, in app A you want to tack on an extra slash to the end of the text, but in app B you want to add a custom folder name.

    In general, I would consider something more generic. Something like a textbox has a specific purpose; enhancing that purpose is fine, but you’re going beyond that. You’re taking logic that rightly belongs to the app and putting it on a specific control. That limits what you can do with the control across multiple apps.

    Of course, if you’re writing a control specifically for one and only one app, you don’t need to worry about these things. But I would still consider it a bad practice, myself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 498k
  • Answers 498k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer We are using git-maven-hudson daily. For hudson there is a… May 16, 2026 at 12:12 pm
  • Editorial Team
    Editorial Team added an answer When thinking about simulating things in VHDL or Verilog you… May 16, 2026 at 12:12 pm
  • Editorial Team
    Editorial Team added an answer i got the problem in my source code. I actually… May 16, 2026 at 12:12 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am making a custom control I need to add some default keybindings, microsoft
Hi im making a custom Textbox i got everty thing working but how do
I'm making a custom slider component. The head (the thing that you drag) is
I'm making a custom view that I want to be bindings/core data compatible and
Here is a code for my web form control <asp:TextBox runat=server ID=txtUsername></asp:TextBox> <asp:RequiredFieldValidator ID=RequiredFieldValidator1
I'm making a custom input method for the iPad, I want to be able
I am working on making a custom section of my app.config and web.config to
I've been making use of InfoBox to draw custom overlays on my GoogleMap. In
This might be a shot in the dark, but, how would I go about
I am designing an interface that basically looks the same as the Settings application.

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.