Click here to Skip to main content
15,921,548 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: error to save file Pin
Christian Graus23-Dec-07 11:25
protectorChristian Graus23-Dec-07 11:25 
GeneralRe: error to save file Pin
Dave Kreskowiak23-Dec-07 15:26
mveDave Kreskowiak23-Dec-07 15:26 
GeneralRe: error to save file Pin
bapu288927-Dec-07 1:43
bapu288927-Dec-07 1:43 
GeneralRe: error to save file Pin
Dave Kreskowiak27-Dec-07 5:10
mveDave Kreskowiak27-Dec-07 5:10 
GeneralRe: error to save file Pin
bapu288927-Dec-07 7:26
bapu288927-Dec-07 7:26 
GeneralRe: error to save file Pin
Dave Kreskowiak28-Dec-07 19:31
mveDave Kreskowiak28-Dec-07 19:31 
GeneralRe: error to save file Pin
bapu288929-Dec-07 1:53
bapu288929-Dec-07 1:53 
GeneralRe: error to save file Pin
Dave Kreskowiak29-Dec-07 6:35
mveDave Kreskowiak29-Dec-07 6:35 
bapu2889 wrote:
and when i open file from file dialog box it looks files which is all ready open


What?? This doesn't make any sense. I think you have a mistaken idea about how the OpenFile dialog works. All it does is return a string representing the path to a file. It doesn't acutally open the file, unless you speicifically tell it to AFTER the dialog returns to your code.

All you do to open a file using FileStream is:
Dim fs As New FileStream(filePath)
Dim pic As Bitmap = Image.FromStream(fs)
fs.Close()
fs.Dispose()


Image file is locked when you set the PictureBox Image property to a file[^]



A guide to posting questions on CodeProject[^]



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




GeneralRe: error to save file Pin
bapu288929-Dec-07 8:59
bapu288929-Dec-07 8:59 
GeneralClass versus Form sharing Pin
cstrader23223-Dec-07 6:11
cstrader23223-Dec-07 6:11 
GeneralRe: Class versus Form sharing Pin
nlarson1123-Dec-07 7:01
nlarson1123-Dec-07 7:01 
GeneralRe: Class versus Form sharing Pin
cstrader23223-Dec-07 7:28
cstrader23223-Dec-07 7:28 
GeneralRe: Class versus Form sharing Pin
Dave Kreskowiak23-Dec-07 7:42
mveDave Kreskowiak23-Dec-07 7:42 
GeneralRe: Class versus Form sharing Pin
nlarson1123-Dec-07 9:21
nlarson1123-Dec-07 9:21 
GeneralRe: Class versus Form sharing Pin
Dave Kreskowiak23-Dec-07 7:43
mveDave Kreskowiak23-Dec-07 7:43 
GeneralRe: Class versus Form sharing Pin
cstrader23223-Dec-07 8:04
cstrader23223-Dec-07 8:04 
GeneralRe: Class versus Form sharing Pin
nlarson1123-Dec-07 9:23
nlarson1123-Dec-07 9:23 
GeneralRe: Class versus Form sharing Pin
cstrader23223-Dec-07 9:37
cstrader23223-Dec-07 9:37 
GeneralRe: Class versus Form sharing Pin
Dave Kreskowiak23-Dec-07 10:15
mveDave Kreskowiak23-Dec-07 10:15 
GeneralRe: Class versus Form sharing Pin
cstrader23223-Dec-07 10:36
cstrader23223-Dec-07 10:36 
GeneralRe: Class versus Form sharing Pin
Dave Kreskowiak23-Dec-07 11:03
mveDave Kreskowiak23-Dec-07 11:03 
GeneralRe: Class versus Form sharing Pin
cstrader23223-Dec-07 11:30
cstrader23223-Dec-07 11:30 
GeneralRe: Class versus Form sharing Pin
darkelv23-Dec-07 13:08
darkelv23-Dec-07 13:08 
GeneralRe: Class versus Form sharing Pin
Dave Kreskowiak23-Dec-07 15:31
mveDave Kreskowiak23-Dec-07 15:31 
Generaldocumentdownload2 Pin
balakpn22-Dec-07 19:28
balakpn22-Dec-07 19:28 

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.