anybody can teach me how to open an image using VB 6.0...jpg... or bit ... your help will greatly appreciated..thnx

hi,


To open or load an image to image or picture box by selecting the pictures try the below code.
'To include common dialog control to form
Project menu->Components->Microsoft Common Dialog Control 6.0 (SP3)

'To Display only image files
CommonDialog1.Filter="(.jpg)|*.jpg"

'To open the Open Dialog Box
CommonDialog1.ShowOpen

'To Load the picture to the Picture Box
Picture1.Picture=LoadPicture(CommonDialog1.FileName)


Regards,
Shailu:)

thnx shailu

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.