Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi

I wrote the following class:

VB
Imports System.Windows.Forms

Public Class Class1
    Inherits Windows.Forms.Control
End Class


When I click on Control For every 2-click ,Just one click is done!!!
What causes this problem?

Here is a sample program:

http://barnamenevis.org/attachment.php?attachmentid=78605&d=1322758258[^]

TanX
Posted
Comments
sara.solati68 1-Dec-11 12:23pm    
However, this problem occurs in tandem clicks.
Sergey Alexandrovich Kryukov 1-Dec-11 12:41pm    
Not clear, especially the link :-) Where is the event handler?
--SA
sara.solati68 1-Dec-11 12:50pm    
There's a simple question:

When I click on Control For every 2-click for example ,Just one click is done!!!
and And the other Click does not apply.

Just test the program you will see the problem.


Soooo tanx
DaveAuld 1-Dec-11 13:57pm    
Who the hell in their right mind is going to register on a site to download a complete strangers attachment...........think your out of luck with that!
#realJSOP 1-Dec-11 14:12pm    
I think this guy would. Oh, wait - you said *right* mind... :)

Nobody here is likely to follow a link, register on an unknown site and download an executable from someone we don't know or trust. Would you? If if you would, let me know if you ever work for the same company as me, I will want to disconnect from the company network...

If you click on a control and the Click event happens, but when you click twice on the control it only occurs once, then the best guess is that the second click is being taken as a double click - try handling that and see if it is.
 
Share this answer
 
Comments
sara.solati68 1-Dec-11 15:08pm    
Thank you,but Are you tested the Problem?
OriginalGriff 2-Dec-11 3:17am    
What part of "Nobody here is likely to follow a link, register on an unknown site and download an executable from someone we don't know or trust" did you not understand?
sara.solati68 2-Dec-11 4:15am    
all of part.
OriginalGriff 2-Dec-11 4:23am    
We do not know you,we do not know what your file is designed to do. We have to treat it as if it is a malicious application which will harm our equipment. As a result, we will not download it, will not run it, will not even touch it.
Would you download and run a random program from me? And if so, can you warn me if you ever come to work for my company, as I will want to disconnect from the company network immediately.
I find why them problem Happen.

You're not a programmer.(All of you)
Because they were the only source program.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900