Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / July 2005

Tip: Looking for answers? Try searching our database.

How to use LoadPicture() in VB.NET ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dushyant - 27 Jul 2005 10:25 GMT
Hi everyone,
I am converting one code from VB to VB.NET. I dont know how to use method
LoadPicture() in VB.NET ?
All the responses are welcome.

Regards,
Tom John - 27 Jul 2005 11:27 GMT
>Hi everyone,
>I am converting one code from VB to VB.NET. I dont know how to use method
>LoadPicture() in VB.NET ?
>All the responses are welcome.

Dim image As System.Drawing.Image =
System.Drawing.Image.FromFile("C:\MyImage.gif")

Hope this helps

Tom
Dushyant - 27 Jul 2005 11:59 GMT
Thanks Tom

> >Hi everyone,
> >I am converting one code from VB to VB.NET. I dont know how to use method
[quoted text clipped - 7 lines]
>
> Tom
Dushyant - 27 Jul 2005 12:02 GMT
Can you tell me how to convet the following lines of code from VB to VB.NET :
Set xImage = xImageLst.ListImages.Add(, "New", LoadPicture(xPath &
File_File_New))

Actually the Add method in VB.NET is not taking more than one argument which
is really creating a problem for me.

Please respond.

Regards,
Dushyant

> >Hi everyone,
> >I am converting one code from VB to VB.NET. I dont know how to use method
[quoted text clipped - 7 lines]
>
> Tom
Tom John - 27 Jul 2005 13:07 GMT
>Can you tell me how to convet the following lines of code from VB to VB.NET :
>Set xImage = xImageLst.ListImages.Add(, "New", LoadPicture(xPath &
>File_File_New))

xImageList.Images.Add(System.Drawing.Image.FromFile(xPath &
File_File_New))

Assuming tha xImageList is an imagelist.

Hope this helps

Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.