Solved

Help w/ UserControl and RaiseEvent

Posted on 2006-06-21
3
223 Views
Last Modified: 2010-04-30
Can somebody please tell me why the dblclick event is not working.

Public Enum ButtonColor
    btnRED
    btnGREEN
    btnYELLOW
End Enum

Event DblClick()

Public Property Let Color(ByVal Color As ButtonColor)
   
    Select Case Color
        Case ledGREEN
            Green.Visible = True
            Red.Visible = False
            Yellow.Visible = False
       
        Case ledRED
            Green.Visible = False
            Red.Visible = True
            Yellow.Visible = False
       
        Case ledYELLOW
            Green.Visible = False
            Red.Visible = False
            Yellow.Visible = True
    End Select

End Property

Public Sub UserControl_DblClick()
   
    RaiseEvent DblClick

End Sub

Public Sub UserControl_Resize()

    UserControl.Width = 240
    UserControl.Height = 240

End Sub

0
Comment
Question by:pat_cunningham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Expert Comment

by:leclairm
ID: 16953100
Are you declaring the object with events???

dim withevents yourobject as classwithcustomevent

0
 

Author Comment

by:pat_cunningham
ID: 16953144
I just figured it out.  I had images that covered the entire usercontrol and the dblclick event that was being call was the images'.
0
 
LVL 13

Accepted Solution

by:
Mark_FreeSoftware earned 250 total points
ID: 16954605

you can ask for a refund,
see this help topic for more info:

http://www.experts-exchange.com/help.jsp#hi70
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
using Access 8 90
Excel - Save a copy of work book 13 95
How to Add / Edit Windows Menu 4 78
VBA to find and replace multiline text from VBA modules 8 103
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

736 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question