Results 1 to 9 of 9

Thread: Double Click On Form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    284

    Double Click On Form

    I have this:
    vb Code:
    1. Private Sub ImageShop_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DoubleClick
    2.         openFile.ShowDialog()
    3. End Sub

    Which is supposed to show my dialog box when someone double clicks on the form, but that doesn't work.

    I have a menu item that is single click, and that works fine...

    So... Why doesn't the double click work when someone double clicks on the form?
    I am still very new to VB.NET, so I have MANY questions

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Double Click On Form

    Is ImageShop the name of your form? Make sure that they are double clicking on the form and not on some control contained in the form.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    284

    Re: Double Click On Form

    Yes, it is the name of the form, and the form is empty when it loads, so when someone double clicks on the form portion, nothing happens.
    I am still very new to VB.NET, so I have MANY questions

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Double Click On Form

    since it's handling Me.DoubleClick... doesn't matter what the name of the form is...

    But otherwise I'd agree... make sure you are double-clicking the form, and not another control.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5
    Addicted Member
    Join Date
    Jun 2009
    Posts
    245

    Re: Double Click On Form

    Have you tried to insert a break point to make sure the program even gets to that sub?

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    284

    Re: Double Click On Form

    Nope, it doesn't get to the double click event

    here is what the screen looks like when I double click on the gray:
    Attached Images Attached Images  
    I am still very new to VB.NET, so I have MANY questions

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Double Click On Form

    is that a normal form? Or is that an MDIParent form?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2008
    Posts
    284

    Re: Double Click On Form

    MDIParent
    I am still very new to VB.NET, so I have MANY questions

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Double Click On Form

    that's why it isn't working... that's not the form you are clicking on... there's a special hidden control on there that is the MDI Container... I don't know off hand if it exposes events like the form does...

    It's going to take some research...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width