Click here to Skip to main content
15,897,334 members

Comments by Jim607 (Top 13 by date)

Jim607 12-Oct-11 6:04am View    
Deleted
Ah, that makes sense to me, so because I can not do:

class classname : Inherits : Inherit another etc.... That's why I need Interfaces.

So to take it to its absolute basics...

I have a class (class1) with methods and properties that I need to use in another class (class2) that can not inherit from 'class1'. I can create another class which will be my interface between the two. The interface just declares the methods and properties that are available within that class.

I think I understand it now, thanks for your description. I think I'm getting a bit baffled by the large number of new jargon that's coming in all at once.

---EDIT---
After reading some of the supplied links, I think I've missed the point entirely. I'll have a good read through
Jim607 17-Aug-11 16:51pm View    
This would work great but I am getting a runtime error when I implement this. I am using a foreach loop to close all of the open forms but as the close event triggers, it alters the list. This is causing an error because the list has changed whilst doing the ForEach. Is there a way round this or should I just use a simple do loop instead?
Jim607 17-Aug-11 10:23am View    
This forum is brilliant! Thanks so much for your help and advice (to all who posted).
Jim607 17-Aug-11 9:16am View    
Is ((Form)test[(test.Count - 1)]).Show(); an OK method to reference the form after it has been created or is there a better way?
Jim607 4-Aug-11 8:43am View    
Wow, thank you for your time in writing that up for me. I think that my list would have to be dynamic as I do not know how many Notes I need. I am going to have to take some time out to study Generics and Collections.

I started my programming with VB6 so I am trying to learn many new technologies here OOP and .NET and getting my head out of the event driven style coding.

I do have a couple of books but find it difficult to put what they show into an actual program and fully understand it. That's why I like to set myself a challenge and learn the bits I need as I come across the need for them. It is a flawed method of learning for sure but it keeps my interest.

I really appreciate you doing that for me and outlining a path to where I need to get to rather than just suggesting going straight to the most difficult implementation.