Click here to Skip to main content
15,905,323 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB homework assignment Pin
Guffa4-Jan-09 4:49
Guffa4-Jan-09 4:49 
GeneralRe: VB homework assignment Pin
oburaochola4-Jan-09 6:07
oburaochola4-Jan-09 6:07 
GeneralRe: VB homework assignment Pin
Guffa4-Jan-09 19:33
Guffa4-Jan-09 19:33 
QuestionShow form from dll? Pin
andyr20053-Jan-09 17:50
andyr20053-Jan-09 17:50 
AnswerRe: Show form from dll? Pin
dan!sh 3-Jan-09 22:54
professional dan!sh 3-Jan-09 22:54 
AnswerRe: Show form from dll? Pin
Jon_Boy4-Jan-09 5:21
Jon_Boy4-Jan-09 5:21 
QuestionClose file open as an image in Picturebox Pin
Amanjot3-Jan-09 17:32
Amanjot3-Jan-09 17:32 
AnswerRe: Close file open as an image in Picturebox Pin
Dave Kreskowiak4-Jan-09 0:13
mveDave Kreskowiak4-Jan-09 0:13 
The problem is you're using Image.FromFile to load the image. This will lock the file for the lifetime of the Image object.

Instead, you want to do this:
Dim pic As Bitmap
Using fs As New FileStream("C:\Aman\ZeqGraph\temp.jpeg", FileMode.Open, FileAccess.Read)
    pic = New Bitmap(fs)
End Using
PictureBox1.Image = pic



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Close file open as an image in Picturebox Pin
Jon_Boy4-Jan-09 5:25
Jon_Boy4-Jan-09 5:25 
GeneralRe: Close file open as an image in Picturebox Pin
Dave Kreskowiak4-Jan-09 6:59
mveDave Kreskowiak4-Jan-09 6:59 
GeneralRe: Close file open as an image in Picturebox Pin
Amanjot4-Jan-09 6:10
Amanjot4-Jan-09 6:10 
QuestionSQL and VB, Some tips/direction please. Pin
Dalek Dave3-Jan-09 13:53
professionalDalek Dave3-Jan-09 13:53 
AnswerRe: SQL and VB, Some tips/direction please. Pin
Colin Angus Mackay3-Jan-09 14:15
Colin Angus Mackay3-Jan-09 14:15 
AnswerRe: SQL and VB, Some tips/direction please. Pin
Colin Angus Mackay3-Jan-09 14:21
Colin Angus Mackay3-Jan-09 14:21 
AnswerRe: SQL and VB, Some tips/direction please. [modified] Pin
Henry Minute4-Jan-09 2:34
Henry Minute4-Jan-09 2:34 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Colin Angus Mackay4-Jan-09 4:46
Colin Angus Mackay4-Jan-09 4:46 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Henry Minute4-Jan-09 4:58
Henry Minute4-Jan-09 4:58 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Colin Angus Mackay4-Jan-09 5:51
Colin Angus Mackay4-Jan-09 5:51 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Henry Minute4-Jan-09 6:09
Henry Minute4-Jan-09 6:09 
GeneralRe: SQL and VB, Some tips/direction please. Pin
Colin Angus Mackay4-Jan-09 6:15
Colin Angus Mackay4-Jan-09 6:15 
AnswerThanks to all above Pin
Dalek Dave4-Jan-09 7:49
professionalDalek Dave4-Jan-09 7:49 
Questionitunes , get cover art , visual basic 2008 Pin
ls780h3-Jan-09 2:57
ls780h3-Jan-09 2:57 
QuestionRe: itunes , get cover art , visual basic 2008 Pin
ekuhner15-Jan-09 6:32
ekuhner15-Jan-09 6:32 
Questionhow can I make code for barcode Pin
semo12-Jan-09 21:41
semo12-Jan-09 21:41 
AnswerRe: how can I make code for barcode [modified] Pin
Wendelius3-Jan-09 0:24
mentorWendelius3-Jan-09 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.