Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
Questionsetup wizered? Pin
imran_rafique6-Oct-02 17:45
imran_rafique6-Oct-02 17:45 
GeneralC# Debug problem in VS7 Pin
Elf6-Oct-02 16:45
Elf6-Oct-02 16:45 
GeneralRe: C# Debug problem in VS7 Pin
Russell Morris7-Oct-02 6:28
Russell Morris7-Oct-02 6:28 
GeneralVideo Streaming Pin
yccheok6-Oct-02 16:13
yccheok6-Oct-02 16:13 
GeneralRe: Video Streaming Pin
Daniel Strigl6-Oct-02 20:12
Daniel Strigl6-Oct-02 20:12 
GeneralRe: Video Streaming Pin
yccheok6-Oct-02 20:16
yccheok6-Oct-02 20:16 
GeneralRe: Video Streaming Pin
Philip Fitzsimons7-Oct-02 3:21
Philip Fitzsimons7-Oct-02 3:21 
GeneralEditing Bitmap File When PictureBox.Image Point To It Pin
yccheok6-Oct-02 15:31
yccheok6-Oct-02 15:31 
------------------------------------
Bitmap b = new Bitmap("\\live.jpg");
this.pictureBox1.Image = b;
------------------------------------

i make my picture box point to live.jpg. when i try to edit the live.jpg (ie:when i try to replace the live.jpg, or i try to call Bitmap.Save("live.jpg") in another thread), i was not allowed to do so.

i try to change the code to:
------------------------------------
Bitmap b = new Bitmap("\\live.jpg");
this.pictureBox1.Image = b;
b.Dispose();
b = null;
------------------------------------
this will cause the run-time error n make the picture box diaplay a BIG cross instead of the content of live.jpg.

i then try to duplicate the bitmap using:
------------------------------------
Bitmap b = new Bitmap("\\live.jpg");
this.pictureBox1.Image = b.Clone(new Rectangle(0, 0, b.Size.Width, b.Size.Height), b.PixelFormat);
b.Dispose();
b = null;
------------------------------------

now, i still cannot edit the live.jpg (ie:when i try to replace the live.jpg, or i try to call Bitmap.Save("live.jpg") in another thread).

how can i release the handle to live.jpg file and at the same time let the picture box to have the content of live.jpg.

thank you.

regards
yccheok
Generalproblem on drawing theme background on a bitmap Pin
Li-kai Liu (Angus)6-Oct-02 7:28
Li-kai Liu (Angus)6-Oct-02 7:28 
Questionhow to uninstall a software programatically ? Pin
imran_rafique5-Oct-02 16:49
imran_rafique5-Oct-02 16:49 
Questionhow to? Pin
imran_rafique5-Oct-02 15:11
imran_rafique5-Oct-02 15:11 
GeneralA simple one to answer Pin
Barry Lapthorn5-Oct-02 8:19
protectorBarry Lapthorn5-Oct-02 8:19 
GeneralRe: A simple one to answer Pin
Paul Riley5-Oct-02 10:38
Paul Riley5-Oct-02 10:38 
GeneralRe: A simple one to answer Pin
Barry Lapthorn5-Oct-02 11:10
protectorBarry Lapthorn5-Oct-02 11:10 
GeneralRe: A simple one to answer Pin
Paul Riley5-Oct-02 11:22
Paul Riley5-Oct-02 11:22 
GeneralRe: A simple one to answer Pin
Barry Lapthorn5-Oct-02 12:24
protectorBarry Lapthorn5-Oct-02 12:24 
GeneralRe: A simple one to answer Pin
Paul Riley5-Oct-02 12:30
Paul Riley5-Oct-02 12:30 
GeneralRe: A simple one to answer Pin
Barry Lapthorn5-Oct-02 12:47
protectorBarry Lapthorn5-Oct-02 12:47 
GeneralRe: A simple one to answer Pin
leppie5-Oct-02 13:54
leppie5-Oct-02 13:54 
GeneralRe: A simple one to answer Pin
leppie5-Oct-02 11:28
leppie5-Oct-02 11:28 
GeneralRe: A simple one to answer Pin
Barry Lapthorn5-Oct-02 12:26
protectorBarry Lapthorn5-Oct-02 12:26 
GeneralMicrosoft Installer Pin
Alex Korchemniy5-Oct-02 6:30
Alex Korchemniy5-Oct-02 6:30 
GeneralRe: Microsoft Installer Pin
Alex Korchemniy5-Oct-02 13:28
Alex Korchemniy5-Oct-02 13:28 
GeneralRe: Microsoft Installer Pin
David Stone6-Oct-02 11:53
sitebuilderDavid Stone6-Oct-02 11:53 
QuestionAsynchronous Streams? Pin
ez25-Oct-02 6:19
ez25-Oct-02 6:19 

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.