Click here to Skip to main content
15,899,026 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Help For Win32 Appl Pin
Dave Kreskowiak26-Nov-08 4:04
mveDave Kreskowiak26-Nov-08 4:04 
AnswerRe: Help For Win32 Appl [modified] Pin
Alan N26-Nov-08 6:10
Alan N26-Nov-08 6:10 
QuestionVb.Net Win Appl Need Help for deplovment Pin
swapnil_bhanagle25-Nov-08 6:35
swapnil_bhanagle25-Nov-08 6:35 
AnswerRe: Vb.Net Win Appl Need Help for deplovment Pin
Jon_Boy25-Nov-08 6:57
Jon_Boy25-Nov-08 6:57 
GeneralRe: Vb.Net Win Appl Need Help for deplovment Pin
swapnil_bhanagle25-Nov-08 7:12
swapnil_bhanagle25-Nov-08 7:12 
GeneralRe: Vb.Net Win Appl Need Help for deplovment Pin
Jon_Boy26-Nov-08 2:39
Jon_Boy26-Nov-08 2:39 
Questionhelp needed pls Pin
Umangj25-Nov-08 1:47
Umangj25-Nov-08 1:47 
AnswerRe: help needed pls Pin
Dave Kreskowiak25-Nov-08 3:22
mveDave Kreskowiak25-Nov-08 3:22 
Well, the first problem you have is that you're not drawing the lines on the image. You're drawing on the surface of the picturebox control. So, everything you see appears as though you're drawing on the image when you're not.

You have to draw the lines on the bitmap you created, then you can save the changes back to the original files.

Speaking of that, you have a second problem. When you created a Bitmap object using the overload that you did, the file gets locked for the life of that Bitmap object. This means you can't save any changes back to the original file.

To get around this, you have to create a FileStream object, opening that image file, then create the Bitmap from that Stream, then closing the file. This will prevent the file from being locked so you can save the changes back to it.


A guide to posting questions on CodeProject[^]



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




GeneralRe: help needed pls Pin
Umangj25-Nov-08 4:04
Umangj25-Nov-08 4:04 
GeneralRe: help needed pls Pin
Luc Pattyn25-Nov-08 4:15
sitebuilderLuc Pattyn25-Nov-08 4:15 
GeneralRe: help needed pls Pin
Umangj25-Nov-08 4:57
Umangj25-Nov-08 4:57 
QuestionVisual Basic.net User Control Pin
Ryno Engelbrecht24-Nov-08 23:18
Ryno Engelbrecht24-Nov-08 23:18 
AnswerRe: Visual Basic.net User Control Pin
Jon_Boy25-Nov-08 1:32
Jon_Boy25-Nov-08 1:32 
AnswerRe: Visual Basic.net User Control Pin
Ryno Engelbrecht25-Nov-08 1:52
Ryno Engelbrecht25-Nov-08 1:52 
GeneralRe: Visual Basic.net User Control Pin
Jon_Boy25-Nov-08 3:42
Jon_Boy25-Nov-08 3:42 
QuestionRequested registry access is not allowed Pin
Member 445034221-Nov-08 5:55
Member 445034221-Nov-08 5:55 
GeneralRe: Requested registry access is not allowed Pin
Paul Conrad21-Nov-08 6:29
professionalPaul Conrad21-Nov-08 6:29 
AnswerRe: Requested registry access is not allowed Pin
Dave Kreskowiak21-Nov-08 7:36
mveDave Kreskowiak21-Nov-08 7:36 
QuestionProblem while creating Sharepoint custome Tmer Job Pin
Krunal3919-Nov-08 21:20
Krunal3919-Nov-08 21:20 
QuestionCan I do assembly binding with major, minor but not build? Pin
pdohara19-Nov-08 10:12
pdohara19-Nov-08 10:12 
RantSystem.Windows.Forms.DateTimePicker.BackColor Pin
PIEBALDconsult19-Nov-08 7:06
mvePIEBALDconsult19-Nov-08 7:06 
GeneralRe: System.Windows.Forms.DateTimePicker.BackColor Pin
Jared Bienz [MSFT]19-Nov-08 8:14
Jared Bienz [MSFT]19-Nov-08 8:14 
GeneralRe: System.Windows.Forms.DateTimePicker.BackColor Pin
PIEBALDconsult19-Nov-08 14:02
mvePIEBALDconsult19-Nov-08 14:02 
GeneralRe: System.Windows.Forms.DateTimePicker.BackColor Pin
loricheung20-Aug-09 17:06
loricheung20-Aug-09 17:06 
GeneralRe: System.Windows.Forms.DateTimePicker.BackColor Pin
PIEBALDconsult20-Aug-09 17:24
mvePIEBALDconsult20-Aug-09 17: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.