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

.NET (Core and Framework)

 
GeneralRe: entity framework 6 don't resolve foreign key Pin
micheleroma19-Jun-14 9:18
micheleroma19-Jun-14 9:18 
GeneralRe: entity framework 6 don't resolve foreign key Pin
Eddy Vluggen20-Jun-14 8:09
professionalEddy Vluggen20-Jun-14 8:09 
AnswerRe: entity framework 6 don't resolve foreign key Pin
Nathan Minier29-Jul-14 6:07
professionalNathan Minier29-Jul-14 6:07 
QuestionHow to make FolderBrowserDialog in asp.net Pin
ven75311-Jun-14 20:54
ven75311-Jun-14 20:54 
AnswerRe: How to make FolderBrowserDialog in asp.net Pin
Richard MacCutchan11-Jun-14 21:25
mveRichard MacCutchan11-Jun-14 21:25 
AnswerRe: How to make FolderBrowserDialog in asp.net Pin
Pete O'Hanlon11-Jun-14 22:18
mvePete O'Hanlon11-Jun-14 22:18 
QuestionHow to get 32-bit .NET Framework InstallPath on a 64-bit machine? Pin
Frank W. Wu10-Jun-14 6:11
Frank W. Wu10-Jun-14 6:11 
AnswerRe: How to get 32-bit .NET Framework InstallPath on a 64-bit machine? Pin
Richard Deeming10-Jun-14 6:41
mveRichard Deeming10-Jun-14 6:41 
GeneralRe: How to get 32-bit .NET Framework InstallPath on a 64-bit machine? Pin
Frank W. Wu10-Jun-14 6:50
Frank W. Wu10-Jun-14 6:50 
GeneralRe: How to get 32-bit .NET Framework InstallPath on a 64-bit machine? Pin
Richard Deeming10-Jun-14 7:03
mveRichard Deeming10-Jun-14 7:03 
Questioninsertion based on a condition Pin
Member 103249748-Jun-14 9:39
Member 103249748-Jun-14 9:39 
AnswerRe: insertion based on a condition Pin
Richard MacCutchan8-Jun-14 21:54
mveRichard MacCutchan8-Jun-14 21:54 
Question[VB.NET 2008] How to use OpenNETCF.Net.Mail? Pin
steve_94966135-Jun-14 22:57
professionalsteve_94966135-Jun-14 22:57 
AnswerRe: [VB.NET 2008] How to use OpenNETCF.Net.Mail? Pin
steve_949661329-Jun-14 23:19
professionalsteve_949661329-Jun-14 23:19 
Question[VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966134-Jun-14 4:52
professionalsteve_94966134-Jun-14 4:52 
AnswerRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
Dave Kreskowiak4-Jun-14 7:10
mveDave Kreskowiak4-Jun-14 7:10 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966134-Jun-14 20:55
professionalsteve_94966134-Jun-14 20:55 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
Dave Kreskowiak5-Jun-14 1:42
mveDave Kreskowiak5-Jun-14 1:42 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966135-Jun-14 3:54
professionalsteve_94966135-Jun-14 3:54 
Dave Kreskowiak wrote:
No you don't. It doesn't matter at all what the situation is. Moving the code to a separate method is always better than leaving it the event handler method. The sole exception being events that expect a return value in the form of a modified event argument, such as FormClosing.

...you make me feel guilty...! Sigh | :sigh:

I will keep in mind this rule but, please, can you explain me why it is always better?
In my specific situation the code in the event handler is executed only when the event raises, I mean I don't need to execute that code in any other place (and I think this is a common situation). I could create a new method, cut the code in the event handler and past it in the method and then call the method in the event handler but what is the benefit?

Dave Kreskowiak wrote:
The keypad doesn't necessarily need its own TextBox to type into, but does need some way of display the entered text without showing it in the target textbox. When OK is hit, the control then copies the text into the target TextBox thereby raising the TextChanged event in the target control only once.

You are right, this could be a good idea.
I use this approach in a full alphanumeric keyboard that is too big to let the user see the field in witch he is typing but I had not thought of adopting this method for the numeric keypad.

Thank you.
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
Dave Kreskowiak5-Jun-14 4:05
mveDave Kreskowiak5-Jun-14 4:05 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966135-Jun-14 5:08
professionalsteve_94966135-Jun-14 5:08 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
DarkChuky CR27-Aug-14 11:42
DarkChuky CR27-Aug-14 11:42 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966133-Sep-14 4:05
professionalsteve_94966133-Sep-14 4:05 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
DarkChuky CR3-Sep-14 4:44
DarkChuky CR3-Sep-14 4:44 
GeneralRe: [VB.NET 2008] How to rise an event of an object in a form from another form Pin
steve_94966134-Sep-14 1:57
professionalsteve_94966134-Sep-14 1:57 

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.