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

Related Questions

Hi im making a custom Textbox i got everty thing working but how do
I am making an application that does some custom image processing. The program will
I have a custom login usercontrol that has a normal textbox and a passwordbox.
I am making a custom widget that I would like to use in multiple
Does anybody know the logic behind making DataSourceSelectArguments sealed? I've implemented a custom DataSource
Im making a small python script to upload files on the net. The script
I am making a custom page in Facebook, using FBML and JavaScript on a
Making echo of a question around the web: Is the syntax for svn:ignore patterns
When making changes using SubmitChanges() , LINQ sometimes dies with a ChangeConflictException exception with
After making some changes in my models (eg. new field in a model and

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.