Search results

  1. A

    Difference between Implementation Inheritance and Interface Inheritance

    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...
  2. A

    Difference between Implementation Inheritance and Interface Inheritance

    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...
  3. A

    Creating an undo function

    Hello there. 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...
  4. A

    Is My.Application.Log useless?

    I personally prefer to use a StreamWriter object to do my logging. I would assume that the log file was only to be produced when an application exits (such as for error reporting).
  5. A

    Exporting from a form to printer

    Thanks for the pointer So to print my controls I just pass them to the PrintDocument control i.e. PrintDocument(myControlArray) ?
  6. A

    Exporting from a form to printer

    Hello all 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? Many...
  7. A

    What is the problem with using Trace.Writeline("My Text.")

    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...
  8. A

    What is the problem with using Trace.Writeline("My Text.")

    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...
  9. A

    Can I have an array of controls repeated somehow? (VB.net 2003)

    Thanks Cheers for the help dude - guess I need to read more about UC's. :o
  10. A

    Can I have an array of controls repeated somehow? (VB.net 2003)

    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 |...
  11. A

    Free vb.net code

    Tut tut .... What a shameless plug of a good website
  12. A

    MessageBoxButtons.OKCancel

    Hi Try removing the MessageBoxIcon.Information bit from your MessageBox It will work then. Ape
  13. A

    MessageBoxButtons.OKCancel

    OK. Well your clue is in the needed DialogResult enumeration. try If lblStatusID.Text = "2" Then Dim result As DialogResult result = MessageBox.Show(... ... ) If result = DialogResult.OK Then.... ' Do This ' Do That End If Hope this helps you :)
  14. A

    MessageBoxButtons.OKCancel

    I might be missing something here - where exactly is your Load button in your code?
  15. A

    Using Multiple Forms in VB.NET

    They will burn for it! BURN I TELL YOU!
  16. A

    MessageBoxButtons.OKCancel

    Hi Change the line If MessageBox.Show(" ... ", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) =MessageBoxButtons.OK then ... to If MessageBox.Show(" ... ", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) then ... and it should (hopefully) work. Read MSDN for a deeper...
  17. A

    Referencing each property in a object using a loop...

    Thanks for that quick reply! I'll give that a go. Cheers. ape
  18. A

    Referencing each property in a object using a loop...

    Hi. I have an object which has several public properties named rm1, rm2, rm3 ... rm18. I want to be able to write a loop (for i = 1 to 18) in another class, that allows me to reference the rm(i) numbered property. How do I write this in code? I have already created myObject in the other...
Top Bottom