1. S

    Question Why do I lose the value on my variables?

    Hey there! Before you read this, please bare in mind that I am very new to, and coding in general. This is the code I have so far, and so some reason, after the Sub finishes, I lose all of the values I put into my different variables. Can anyone tell me why it's doing this, and what I...
  2. K

    Question Sharing a Database Connection String between Classes in another Library

    I'm not sure if the title is very good, I'll explain. Maybe I'm thinking about this too much, but lately I've been really trying to construct well designed classes and libraries. Anyways, I'm trying to design a library which basically handles all of the communication to a particular database...
  3. G

    Question How to share an instance of a class to all the application ?

    How to share an instance of a class to all the application in VB.NET ? Probably you are going to answer: "Use Shared members" Ok, but I have one particular problem: I have an application that has multiple forms. The application is connected through the serial port to a hardware. The...
  4. richard.cassell

    Creating an object using a literal string which contains the required type.

    Hi all, I'm writing some software which allows the user to draw diagrams containing nodes and controls, each representing an Object of a Class. As part of this, i'm coding save/load functionality using XML documents. My problem is that i have a tag in the XML which holds the Type of the object...
  5. M

    Question about talking with multiple Objects

    Hi Everybody! Hoping someone can clear up a great mystery for me…. I'm trying to learn Object Oriented programming, and to do so, I am writing a small Role Playing Game. I understand why we break Players, Items, and Monsters into Classes… what I don’t “get” is how does the program know...
  6. A

    Question Inheritance in Classes and Extending Subs

    Hi, I've been wondering if there is anyway to extend a sub of a base class in a derived class or subclass. To date, the only thing I've been able to find is overrides and overloads functions, but to my understanding these functions just ignore your base class's sub and just allows you to run the...
  7. D

    Shared Hashtable between different apps

    Hello, I currently have a ASP.NET Website and a Windows Service doing some work together. It consists in running some processes either using scheduling or on-demand requests. Basically before i had the windows service i used a Shared Hashtable to register all the on-demand requests and avoid...
  8. amishp11

    Question only update changed fields?

    In a simple object model I'm trying to wrap some database tables with business objects. In an effort to save bandwidth and # of fields on an update, I want to track to which properties are updated (set) and only update those to the database. I'm currently doing Public Property...
  9. C

    Question Null Reference Exception

    This is my first project in 2 years and coming from the java and c++ world it is so much easier but some things just don't work the some as you already know. My problem is I have a class called Hteam and i have an array of Hteam as public so I can use them throughout my program but the...