Hi all!

I've been using VB6 for a few years now and I've finally decided to move to .NET a few weeks ago.

I've now got a small problem, I'll explain it the best I can...


I want an array of the bitmap variable with the resolution declared.

For example: -

Dim bmpPicture(10) As New Bitmap(320,240)


Problem 1: It won't allow the "new" keyword and if I take it out the resolution can't be declared.

Problem 2: If I just do: -


Dim bmpPicture(10) as Bitmap

bmpPicture(0).SetResolution(320,240)

OR

bmpPicture(0).SetPixel(320,240,Color.Black)


...I get a run-time error, something about a null exception or reference on those lines.

I can use the bitmap variable OK but I can't get it to work as an array - Which is what I want!!!


What is going on? I'm confused! VB.NET so far seems to be a different lauguage!!!

I hope someone can help me since I'm new to VB.NET and I've been trying to get it working for a week now!


Thanks in advance.