By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,571 Members | 991 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,571 IT Pros & Developers. It's quick & easy.

How to convert code from VB to VB.NET ?

P: n/a
Hello everyone,

I am working on converting one code from VB to VB.NET.
I am stuck at some point, please help me how to convert following code from
VB to VB.NET :
Dim xImage As System.Windows.Forms.ImageList
xImage = xImageLst.ListImages.Add(, "Open", LoadPicture(xPath &
File_File_Open))

Regards,
Dushyant
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
"Dushyant" <Du******@discussions.microsoft.com> schrieb:
I am working on converting one code from VB to VB.NET.
I am stuck at some point, please help me how to convert following code
from
VB to VB.NET :
Dim xImage As System.Windows.Forms.ImageList
xImage = xImageLst.ListImages.Add(, "Open", LoadPicture(xPath &
File_File_Open))


\\\
Me.ImageList1.Images.Add(Image.FromFile("C:\foo.bm p"))
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Ben
I supposed you've already used migration wizard if not then you might want to
check it out. it helped me a lot.

"Dushyant" wrote:
Hello everyone,

I am working on converting one code from VB to VB.NET.
I am stuck at some point, please help me how to convert following code from
VB to VB.NET :
Dim xImage As System.Windows.Forms.ImageList
xImage = xImageLst.ListImages.Add(, "Open", LoadPicture(xPath &
File_File_Open))

Regards,
Dushyant

Nov 21 '05 #3

P: n/a

"Dushyant" <Du******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
Hello everyone,

I am working on converting one code from VB to VB.NET.
I am stuck at some point, please help me how to convert following code
from
VB to VB.NET :
Dim xImage As System.Windows.Forms.ImageList
xImage = xImageLst.ListImages.Add(, "Open", LoadPicture(xPath &
File_File_Open))

Regards,
Dushyant

I assume you are getting an "Object reference not set.." error?

You cant add images to a null object...
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.