Click here to Skip to main content
15,915,328 members
Home / Discussions / C#
   

C#

 
Questioncustom shapes buttons Pin
relsirc16-Jun-06 6:35
relsirc16-Jun-06 6:35 
AnswerRe: custom shapes buttons Pin
Ravi Bhavnani16-Jun-06 6:57
professionalRavi Bhavnani16-Jun-06 6:57 
AnswerRe: custom shapes buttons Pin
Jun Du16-Jun-06 7:23
Jun Du16-Jun-06 7:23 
QuestionConnecting to HyperTerminal or allowing c# to run a program Pin
keroed_edmond16-Jun-06 6:28
keroed_edmond16-Jun-06 6:28 
AnswerRe: Connecting to HyperTerminal or allowing c# to run a program Pin
moro14516-Jun-06 8:24
moro14516-Jun-06 8:24 
GeneralRe: Connecting to HyperTerminal or allowing c# to run a program Pin
keroed_edmond16-Jun-06 13:41
keroed_edmond16-Jun-06 13:41 
QuestionUserControl Graphics Question Pin
melkor1216-Jun-06 6:11
melkor1216-Jun-06 6:11 
AnswerRe: UserControl Graphics Question Pin
BoneSoft16-Jun-06 10:12
BoneSoft16-Jun-06 10:12 
If they're drawing on the control, then you have a Graphics object. You can use CreateGraphics() on a control to get an instance to draw with, I don't know how to get an instance with the control's existing painting on it. But if you've already got an instance of Graphics that they're using to draw, you can do something like the following...

private void SaveBitmap(Graphics g, Control ctrl) {
    System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(ctrl.Width, ctrl.Height, g);
    bmp.Save(@"C:\bmp.bmp", System.Drawing.Imaging.ImageFormat.Bmp);
}


Hope that helps, without a little more info I'm not sure it answers your question though.

Visit BoneSoft.com
GeneralRe: UserControl Graphics Question Pin
melkor1217-Jun-06 9:06
melkor1217-Jun-06 9:06 
Questionhow to get/set ASCII code of a character? Pin
largs16-Jun-06 5:59
largs16-Jun-06 5:59 
AnswerRe: how to get/set ASCII code of a character? Pin
Guffa16-Jun-06 7:32
Guffa16-Jun-06 7:32 
AnswerRe: how to get/set ASCII code of a character? Pin
Le centriste16-Jun-06 7:33
Le centriste16-Jun-06 7:33 
AnswerRe: how to get/set ASCII code of a character? Pin
Rizwan Majeed16-Jun-06 8:37
professionalRizwan Majeed16-Jun-06 8:37 
GeneralRe: how to get/set ASCII code of a character? Pin
largs16-Jun-06 18:54
largs16-Jun-06 18:54 
QuestionHow to tell when socket is disconnected Pin
Glenn E. Lanier II16-Jun-06 5:42
Glenn E. Lanier II16-Jun-06 5:42 
QuestionSetting the default button on a user control Pin
GazzaJ16-Jun-06 5:40
GazzaJ16-Jun-06 5:40 
QuestionMoon phase calculation library? Pin
Radoslav Bielik16-Jun-06 5:38
Radoslav Bielik16-Jun-06 5:38 
AnswerRe: Moon phase calculation library? Pin
Dan Neely16-Jun-06 5:59
Dan Neely16-Jun-06 5:59 
AnswerRe: Moon phase calculation library? Pin
Ravi Bhavnani16-Jun-06 7:08
professionalRavi Bhavnani16-Jun-06 7:08 
GeneralRe: Moon phase calculation library? Pin
Radoslav Bielik16-Jun-06 11:19
Radoslav Bielik16-Jun-06 11:19 
Questioncould i write a program that change keyboard function with C# Pin
largs16-Jun-06 5:35
largs16-Jun-06 5:35 
QuestionBind to a private member variable of my own class. [modified] Pin
User 209307316-Jun-06 5:25
User 209307316-Jun-06 5:25 
QuestionConnectionString Problem of DLL Pin
Chikuu16-Jun-06 5:02
Chikuu16-Jun-06 5:02 
Question******** into the wind? Pin
Malcolm Smart16-Jun-06 4:43
Malcolm Smart16-Jun-06 4:43 
AnswerRe: ******** into the wind? Pin
Josh Smith16-Jun-06 4:48
Josh Smith16-Jun-06 4:48 

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.