Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with designer and custom UI editor Pin
Heath Stewart20-Oct-04 13:33
protectorHeath Stewart20-Oct-04 13:33 
GeneralRe: Problem with designer and custom UI editor Pin
Heath Stewart20-Oct-04 13:34
protectorHeath Stewart20-Oct-04 13:34 
GeneralConfigurationSettings.AppSettings Pin
Guillermo Jimenez20-Oct-04 5:50
Guillermo Jimenez20-Oct-04 5:50 
GeneralRe: ConfigurationSettings.AppSettings Pin
Guillermo Jimenez20-Oct-04 5:51
Guillermo Jimenez20-Oct-04 5:51 
GeneralRe: ConfigurationSettings.AppSettings Pin
Heath Stewart20-Oct-04 6:18
protectorHeath Stewart20-Oct-04 6:18 
GeneralGDI+ drawing onto picturebox Pin
xiaowenjie20-Oct-04 5:39
xiaowenjie20-Oct-04 5:39 
GeneralRe: GDI+ drawing onto picturebox Pin
Heath Stewart20-Oct-04 6:50
protectorHeath Stewart20-Oct-04 6:50 
GeneralRe: GDI+ drawing onto picturebox Pin
xiaowenjie20-Oct-04 7:47
xiaowenjie20-Oct-04 7:47 
hi, erm there are no error. currently i'm drawing it directly onto the form. i only draw it onto the form when i click a button.

//initially,set picturebox enable properties as false;

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
if(pictureBox.Enabled == true)
{
Drawpicture(e.Graphics);
}
}
private void Drawpicture(Graphics a)
{
Graphics myGraphics = CreateGraphics();
....
}
private void button2_Click(object sender, System.EventArgs e)
{
pictureBox.Enabled = true;
}

By doing this, i display my drawing onto the form when the button is click. However, i want to display it into the pictureBox when the button is click. How should i do that.

Chris
GeneralRe: GDI+ drawing onto picturebox Pin
Not Active20-Oct-04 10:16
mentorNot Active20-Oct-04 10:16 
GeneralRe: GDI+ drawing onto picturebox Pin
McClamm20-Oct-04 7:03
McClamm20-Oct-04 7:03 
GeneralRe: GDI+ drawing onto picturebox Pin
xiaowenjie20-Oct-04 7:49
xiaowenjie20-Oct-04 7:49 
GeneralRe: GDI+ drawing onto picturebox Pin
Heath Stewart20-Oct-04 9:51
protectorHeath Stewart20-Oct-04 9:51 
Generalderivation question Pin
3Dizard20-Oct-04 5:33
3Dizard20-Oct-04 5:33 
GeneralRe: derivation question Pin
Heath Stewart20-Oct-04 6:32
protectorHeath Stewart20-Oct-04 6:32 
GeneralRe: derivation question Pin
J4amieC20-Oct-04 22:41
J4amieC20-Oct-04 22:41 
GeneralRe: derivation question Pin
Heath Stewart21-Oct-04 6:27
protectorHeath Stewart21-Oct-04 6:27 
GeneralC# COM Interop Pin
koch.david20-Oct-04 5:03
koch.david20-Oct-04 5:03 
GeneralRe: C# COM Interop Pin
Heath Stewart20-Oct-04 5:50
protectorHeath Stewart20-Oct-04 5:50 
GeneralRe: C# COM Interop Pin
koch.david21-Oct-04 1:27
koch.david21-Oct-04 1:27 
GeneralRe: C# COM Interop Pin
Heath Stewart21-Oct-04 6:18
protectorHeath Stewart21-Oct-04 6:18 
GeneralTAPI Pin
rpussewela20-Oct-04 2:45
rpussewela20-Oct-04 2:45 
GeneralRe: TAPI Pin
Dave Kreskowiak20-Oct-04 2:54
mveDave Kreskowiak20-Oct-04 2:54 
GeneralMDI closing a child form Pin
Jonckheere20-Oct-04 1:50
Jonckheere20-Oct-04 1:50 
GeneralRe: MDI closing a child form Pin
benjymous20-Oct-04 3:05
benjymous20-Oct-04 3:05 
GeneralRe: MDI closing a child form Pin
Jonckheere20-Oct-04 3:24
Jonckheere20-Oct-04 3: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.