Click here to Skip to main content
15,887,421 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Decimal To Octal,Vb.net Pin
srinivasankrishnaa24-Sep-13 5:05
srinivasankrishnaa24-Sep-13 5:05 
GeneralRe: Decimal To Octal,Vb.net Pin
Ron Beyer24-Sep-13 5:22
professionalRon Beyer24-Sep-13 5:22 
GeneralRe: Decimal To Octal,Vb.net Pin
srinivasankrishnaa24-Sep-13 5:57
srinivasankrishnaa24-Sep-13 5:57 
GeneralRe: Decimal To Octal,Vb.net Pin
Ron Beyer24-Sep-13 5:58
professionalRon Beyer24-Sep-13 5:58 
GeneralRe: Decimal To Octal,Vb.net Pin
srinivasankrishnaa24-Sep-13 6:08
srinivasankrishnaa24-Sep-13 6:08 
GeneralRe: Decimal To Octal,Vb.net Pin
Ron Beyer24-Sep-13 7:00
professionalRon Beyer24-Sep-13 7:00 
Question.net usercontrols and the vs2010 designer Pin
Member 774863018-Sep-13 12:17
Member 774863018-Sep-13 12:17 
AnswerRe: .net usercontrols and the vs2010 designer Pin
Dave Kreskowiak18-Sep-13 13:14
mveDave Kreskowiak18-Sep-13 13:14 
It is easy. It just doesn't work the way you think it should.

Double-clicking anything in a UserControl should generate a Load event header in the host form code, not a Click. This is because the UserControl, reguardless of what you put in it, IS the single control exposed to the host you drop it on. A UserControl is a container for other controls that have a related purpose, acting as a single control and, as such, should NOT expose this constituent controls to the host.

UserControls do not generate the Click event by default because they are not expected to be clicked on as a single control, like a button.

having said all that, it's very easy to change. In the UserControls code, at the top of the class where you inherit from UserControl, you simply add the DefaultEvent attribute to the class declaration, like this:

VB
<DefaultEvent("Click")>
Public Class MyControl
    Inherits UserControl


GeneralRe: .net usercontrols and the vs2010 designer Pin
Member 774863018-Sep-13 13:55
Member 774863018-Sep-13 13:55 
GeneralRe: .net usercontrols and the vs2010 designer Pin
Dave Kreskowiak18-Sep-13 15:07
mveDave Kreskowiak18-Sep-13 15:07 
Question[VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661318-Sep-13 1:43
professionalsteve_949661318-Sep-13 1:43 
AnswerRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
Pete O'Hanlon18-Sep-13 2:44
mvePete O'Hanlon18-Sep-13 2:44 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661318-Sep-13 3:06
professionalsteve_949661318-Sep-13 3:06 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
Pete O'Hanlon18-Sep-13 3:26
mvePete O'Hanlon18-Sep-13 3:26 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661318-Sep-13 3:37
professionalsteve_949661318-Sep-13 3:37 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661318-Sep-13 23:11
professionalsteve_949661318-Sep-13 23:11 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
Pete O'Hanlon18-Sep-13 23:27
mvePete O'Hanlon18-Sep-13 23:27 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661319-Sep-13 0:00
professionalsteve_949661319-Sep-13 0:00 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
Pete O'Hanlon19-Sep-13 0:09
mvePete O'Hanlon19-Sep-13 0:09 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661319-Sep-13 1:39
professionalsteve_949661319-Sep-13 1:39 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
Pete O'Hanlon20-Sep-13 1:11
mvePete O'Hanlon20-Sep-13 1:11 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661320-Sep-13 2:29
professionalsteve_949661320-Sep-13 2:29 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661323-Sep-13 4:51
professionalsteve_949661323-Sep-13 4:51 
AnswerRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
Eddy Vluggen19-Sep-13 0:28
professionalEddy Vluggen19-Sep-13 0:28 
GeneralRe: [VB.NET 2008] A runtime created Timer doesn't work Pin
steve_949661319-Sep-13 1:52
professionalsteve_949661319-Sep-13 1:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.