Exchanging data between forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hell
I have application that is simulating something like small bank. It's only for accademic use only. I have a form for creating new accout for example, and i put all acounts into an arraylist ( I keep there objects of account class ( my own )). But this array in on a major form, and when I want to add account I will need to do this array as a global shared. I think it's not very elegant way of exchaning data between forms... How to do it better ?
John
 
Hi John,

You can make your class shared

Something as
\\\
class classke
private shared mItemke as string
Shared property Itemke etc.
////

It can not have a Sub New and you do not have to create it
You use it by instance as
dim a as string = classke.Itemke

I hope this helps?

Cor
I have application that is simulating something like small bank. It's only
for accademic use only. I have a form for creating new accout for example,
and i put all acounts into an arraylist ( I keep there objects of account
class ( my own )). But this array in on a major form, and when I want to add
account I will need to do this array as a global shared. I think it's not
very elegant way of exchaning data between forms... How to do it better ?
 
Back
Top