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

  • Home
  • SEARCH
  • 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 7569085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:05:03+00:00 2026-05-30T15:05:03+00:00

I wanted to add a DoubleClick handler to an item in a ListBox (assume

  • 0

I wanted to add a DoubleClick handler to an item in a ListBox (assume it is called ListBox), but I could not get it to appear using the Designer view.
I.E., double-clicking on the ListBox, I would only ever get ListBox_SelectedIndexChanged handlers wired up for me. (My list-box items are programmatically assigned, so there were no items in the Design view to click on — is that an issue?)

I did work around this by coding up the handler myself (based on C# Listbox Item Double Click Event) but that took further research, since I had no idea that instead of looking for a MouseEventHandler in System, I had to drill down to System.Windows.Forms.. How annoying.

I.E., this.ListBox.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.ListBox_MouseDoubleClick);

So, is it possible to auto-generate a MouseDoubleClick event in the Design view?
Or do they have to be wired up by hand?

Not that I’m lazy, or anything. Other than using Visual Studio, I mean……

  • 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-30T15:05:05+00:00Added an answer on May 30, 2026 at 3:05 pm

    You can use the Events view in the Properties tool window to generate a handler for almost every event (some generic event handlers are not supported, as I remember). To auto-generate an event handler, double-click the empty field next to the event name.

    For your case with ListBox.MouseDoubleClick, here’s how to do it:

    Using Events view to generate event handlers

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

Sidebar

Related Questions

I wanted to add a function to my Slim application but I'm not familiar
HI guys, I wanted to add an AJAX Event to my Homepage, but it
Found this at MDC but how if I'd wanted to add a private variable
I have a file selector (which works as needed) but I wanted to add
I wanted to add an Xcode project to an existing repository using the following:
If I wanted to add a new item to a <List> with the Data
I wanted to add one item in the popup when I right click all
I wanted to add a contextmenu to a tabitem. But it should only be
Hi I wanted to add datum from a table. However, it does not show
I wanted to add a certain set of files in a directory using svn

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.