Click here to Skip to main content
16,015,973 members
Home / Discussions / C#
   

C#

 
AnswerRe: Site crawling/spidering tutorial? Pin
Nick Parker26-Oct-04 16:59
protectorNick Parker26-Oct-04 16:59 
AnswerRe: Site crawling/spidering tutorial? Pin
Heath Stewart26-Oct-04 17:12
protectorHeath Stewart26-Oct-04 17:12 
GeneralExcel Program DLL's Pin
Jeremy Ouellette26-Oct-04 13:02
Jeremy Ouellette26-Oct-04 13:02 
GeneralRe: Excel Program DLL's Pin
Heath Stewart26-Oct-04 13:40
protectorHeath Stewart26-Oct-04 13:40 
GeneralVisual Studio Add-In Pin
Nxsis26-Oct-04 12:05
Nxsis26-Oct-04 12:05 
GeneralRe: Visual Studio Add-In Pin
Heath Stewart26-Oct-04 13:01
protectorHeath Stewart26-Oct-04 13:01 
GeneralPictureBox help! Pin
ethanwa26-Oct-04 11:33
ethanwa26-Oct-04 11:33 
GeneralRe: PictureBox help! Pin
Heath Stewart26-Oct-04 12:44
protectorHeath Stewart26-Oct-04 12:44 
Because the file is in use. What you need to do is clonse the Bitmap and then dispose it:
using (Bitmap bmp = new Bitmap(imageLocation))
{
  pctInternet.Image = (Bitmap)bmp.Clone();
}
It's good to use the using block statement for IDisposable implementation because it ensures that objects are disposed even if an exception occurs (it compiles to a try-finally block).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: PictureBox help! Pin
Nick Parker26-Oct-04 13:11
protectorNick Parker26-Oct-04 13:11 
GeneraluserAccountControl problem Pin
Zackmac26-Oct-04 10:16
Zackmac26-Oct-04 10:16 
GeneralRe: userAccountControl problem Pin
Heath Stewart26-Oct-04 10:23
protectorHeath Stewart26-Oct-04 10:23 
GeneralRe: userAccountControl problem Pin
Nick Parker26-Oct-04 10:51
protectorNick Parker26-Oct-04 10:51 
GeneralRe: userAccountControl problem Pin
Zackmac26-Oct-04 10:53
Zackmac26-Oct-04 10:53 
GeneralRe: userAccountControl problem Pin
Nick Parker26-Oct-04 11:27
protectorNick Parker26-Oct-04 11:27 
GeneralRe: userAccountControl problem Pin
Zackmac26-Oct-04 11:40
Zackmac26-Oct-04 11:40 
GeneralRe: userAccountControl problem Pin
Nick Parker26-Oct-04 12:33
protectorNick Parker26-Oct-04 12:33 
GeneralRe: userAccountControl problem Pin
Zackmac26-Oct-04 12:52
Zackmac26-Oct-04 12:52 
GeneralStreaming Audio Pin
nlecren26-Oct-04 9:46
nlecren26-Oct-04 9:46 
GeneralImplmenting DOcumentComplete Pin
Adnan Siddiqi26-Oct-04 9:28
Adnan Siddiqi26-Oct-04 9:28 
GeneralRe: Implmenting DOcumentComplete Pin
Heath Stewart26-Oct-04 10:04
protectorHeath Stewart26-Oct-04 10:04 
GeneralRe: Implmenting DOcumentComplete Pin
Adnan Siddiqi26-Oct-04 16:07
Adnan Siddiqi26-Oct-04 16:07 
GeneralRe: Implmenting DOcumentComplete Pin
Heath Stewart27-Oct-04 13:58
protectorHeath Stewart27-Oct-04 13:58 
GeneralReports... Ahhhh Pin
OMalleyW26-Oct-04 8:23
OMalleyW26-Oct-04 8:23 
GeneralRe: Reports... Ahhhh Pin
Alex Korchemniy26-Oct-04 12:00
Alex Korchemniy26-Oct-04 12:00 
GeneralRe: Reports... Ahhhh Pin
Nick Parker26-Oct-04 13:33
protectorNick Parker26-Oct-04 13:33 

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.