Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
GeneralRe: USB (removable) drives in listbox Pin
simplicitylabs8-May-07 12:16
simplicitylabs8-May-07 12:16 
AnswerRe: USB (removable) drives in listbox Pin
AFSEKI8-May-07 23:11
AFSEKI8-May-07 23:11 
Questionproblem to use TreeView in show Hierarchy data. Pin
hdv2128-May-07 8:52
hdv2128-May-07 8:52 
AnswerRe: problem to use TreeView in show Hierarchy data. Pin
PIEBALDconsult8-May-07 9:51
mvePIEBALDconsult8-May-07 9:51 
AnswerRe: problem to use TreeView in show Hierarchy data. Pin
PIEBALDconsult8-May-07 11:13
mvePIEBALDconsult8-May-07 11:13 
QuestionProblems with GUI in Visual Studio C# .Net Pin
zeeShan anSari8-May-07 8:05
zeeShan anSari8-May-07 8:05 
AnswerRe: Problems with GUI in Visual Studio C# .Net Pin
Luc Pattyn8-May-07 8:25
sitebuilderLuc Pattyn8-May-07 8:25 
GeneralRe: Problems with GUI in Visual Studio C# .Net Pin
zeeShan anSari9-May-07 9:54
zeeShan anSari9-May-07 9:54 
Hi,

My first problem ...50% solved D'Oh! | :doh: ,i used your hint like as


[Code]
private void button10_Click(object sender, EventArgs e)
{
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{

pictureBox2.Image.Save(saveFileDialog1.FileName);
}
}[/code]


But i amazed when i save the image from pictureBox2 (after draw the some lines onto the pictureBox2).......when i opened the saved picture then.........there is no editing means image still unchanged !!!!!!!!!

I want that i open the any image in my c#program ,edit the such image(draw some lines etc on the image)and then save such image but with changing............................

OnPaint()???? How i can use this? Can you give a example?
how can i replace the "pictureBox2_MouseDown" with
Onpaint() handler?
[code]private void pictureBox2_MouseDown(object sender, MouseEventArgs e)
{
Pen p = new Pen(Color.Red, 5);
g = pictureBox2.CreateGraphics();
if (e.Button == MouseButtons.Left)

{ g.DrawEllipse(p, e.X, e.Y, 5, 7); }
}
private void pictureBox2_MouseMove(object sender, MouseEventArgs e)
{
Pen p = new Pen(Color.Red, 5);
g = pictureBox2.CreateGraphics();
if (e.Button == MouseButtons.Left)

{ g.DrawEllipse(p, e.X, e.Y, 5, 7); }

}[/code]


Thanks !Smile | :)
QuestionRedrawing Screen Pin
rahvyn68-May-07 7:45
rahvyn68-May-07 7:45 
QuestionScanning all files in a computer Pin
sharpiesharpie8-May-07 7:09
sharpiesharpie8-May-07 7:09 
AnswerRe: Scanning all files in a computer Pin
Dave Kreskowiak8-May-07 7:34
mveDave Kreskowiak8-May-07 7:34 
GeneralRe: Scanning all files in a computer Pin
sharpiesharpie8-May-07 11:27
sharpiesharpie8-May-07 11:27 
GeneralRe: Scanning all files in a computer Pin
Luc Pattyn8-May-07 12:16
sitebuilderLuc Pattyn8-May-07 12:16 
GeneralRe: Scanning all files in a computer Pin
Dave Kreskowiak8-May-07 17:29
mveDave Kreskowiak8-May-07 17:29 
QuestionHow to determine primary columns in a table Pin
Naveed Kamboh8-May-07 6:32
Naveed Kamboh8-May-07 6:32 
AnswerRe: How to determine primary columns in a table Pin
Giorgi Dalakishvili8-May-07 7:15
mentorGiorgi Dalakishvili8-May-07 7:15 
QuestionUnable to use decimal in "if" statement. Pin
Goalie358-May-07 5:43
Goalie358-May-07 5:43 
AnswerRe: Unable to use decimal in "if" statement. Pin
ccitt8-May-07 5:47
ccitt8-May-07 5:47 
AnswerRe: Unable to use decimal in "if" statement. Pin
Guffa8-May-07 5:55
Guffa8-May-07 5:55 
Questionloop dictionary Pin
arkiboys8-May-07 5:39
arkiboys8-May-07 5:39 
AnswerRe: loop dictionary Pin
Judah Gabriel Himango8-May-07 5:57
sponsorJudah Gabriel Himango8-May-07 5:57 
AnswerRe: loop dictionary Pin
Martin#8-May-07 6:06
Martin#8-May-07 6:06 
QuestionCreating a Windows Service account... Pin
ccitt8-May-07 5:19
ccitt8-May-07 5:19 
AnswerRe: Creating a Windows Service account... Pin
ccitt8-May-07 6:45
ccitt8-May-07 6:45 
Questionproblem to change color of custom words in RichTextBox Pin
hdv2128-May-07 5:17
hdv2128-May-07 5:17 

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.