So, back to the original question, there isn't a "preferred" practice. VB.Net allows you to benefit from both of the methods at the same time. Different languages use both to a greater or lesser extent but to ask "what is the recommended approach in .Net" is purely rhetorical, academic, and...
Because Implementation Inheritance does not always guarantee polymorphic subsititutability (i.e. just because TennisBall uses Ball as a base class does not always ensure Ball can be substituted by TennisBall), the tendency is more towards the use of delegates.
Click here for a discussion of...
I am looking for help from anyone who has designed an undo manager.
I have a manager that will save the current form object to a stack array. I fire this method on every controls GotFocus event.
However I am thinking - is there a way of only saving when the user has changed the...
I have a form that consists of multiple copies of a user control (made itself of a label, a textbox and twenty checkboxes).
What I'm trying to do is print this form. I don't want the actual form but the controls inside the form.
Can someone recommend a way to do this?
It's running quite slowly on the debug and release when i attach the above text to most methods. Even when I do it using a new thread for each trace.writeline it still runs agonisingly slowly. I guess this isn't practical for most applications? Spose I should use debug.writeline like you say...
Hello all -
Can someone please advise what the best practice would be for implement traces in my code?
I currently just put:
Trace.WriteLine((Date.Now) & ": " & System.Reflection.MethodBase.GetCurrentMethod.ToString())
in all my methods that I want to monitor. However I get a feeling...
Not sure how to word this but here goes:
I have options that I want a user to be able to select from my CheckListBox.
They then click a button and a page containing a list of items from the checklist box appears like this:
Item Name | Checkbox 1 | Checkbox 2 |...
OK. Well your clue is in the needed DialogResult enumeration.
If lblStatusID.Text = "2" Then
Dim result As DialogResult
result = MessageBox.Show(... ... )
If result = DialogResult.OK Then....
' Do This
' Do That
Hope this helps you :)