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

.NET (Core and Framework)

 
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 
Questionunable to get property 'childnodes' of undefined or null reference Pin
Member 105519074-Jun-14 2:47
Member 105519074-Jun-14 2:47 
AnswerRe: unable to get property 'childnodes' of undefined or null reference Pin
Simon_Whale4-Jun-14 3:12
Simon_Whale4-Jun-14 3:12 
AnswerRe: unable to get property 'childnodes' of undefined or null reference Pin
jinzai17-Jul-14 12:26
jinzai17-Jul-14 12:26 
QuestionRewriting VB6 Point of Sale App in C# using Visual Studio 2013, .Net Framework 4.5.1 Pin
sgralnick3-Jun-14 10:41
sgralnick3-Jun-14 10:41 
AnswerRe: Rewriting VB6 Point of Sale App in C# using Visual Studio 2013, .Net Framework 4.5.1 Pin
CatchExAs19-Jun-14 12:28
professionalCatchExAs19-Jun-14 12:28 
AnswerRe: Rewriting VB6 Point of Sale App in C# using Visual Studio 2013, .Net Framework 4.5.1 Pin
Member 99087646-Aug-14 12:03
Member 99087646-Aug-14 12:03 
Question.Dat file Pin
jjanmendra1-Jun-14 22:03
jjanmendra1-Jun-14 22:03 
AnswerRe: .Dat file Pin
Richard MacCutchan1-Jun-14 22:57
mveRichard MacCutchan1-Jun-14 22:57 
AnswerRe: .Dat file Pin
Dave Kreskowiak2-Jun-14 2:28
mveDave Kreskowiak2-Jun-14 2:28 
QuestionActivex code to print pdf files on client machine Pin
Sachin Mehndiratta29-May-14 1:29
Sachin Mehndiratta29-May-14 1:29 
AnswerRe: Activex code to print pdf files on client machine Pin
AmitGajjar29-May-14 6:43
professionalAmitGajjar29-May-14 6:43 

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.