shape and mdi 2 questions

  • Thread starter Thread starter gary
  • Start date Start date
G

gary

I am building a simple window form application with c#. Now I get 2
questions:

1. I need a control like shape control which could let me lay shape(circle,
line etc..) in form. does c# have one?

2.I put a pictureBox in mdi form as background image. but when I show a
mdiChildForm, the pictureBox block there. how can I give mdi form a
beautiful background and keep mdiChildForm show in top at z-order?

thanks
 
1) The old VBClassic shape controls are no more. 2) Using a picturebox as
a background to your form isn't required, you can just draw right to the
form surface (.Net does this a lot faster and smoother than the equvalent
bltting we did with VBClassic).

The way to do both of the things you ask about is by using GDI+. There are
many internet articles on the System.Drawing namespaces and they are also
covered in several books. Since I still primarily code with VB, I've found
Francesco Balena's VB.Net Core References' Drawing/Imaging chapters to be
enough for the gettting the head wrapped around the basics, the C# version
of that book would likely be a good one to have on your desk for this and
more.

Also there is GDI+ Programming in C# and VB.Net by Nick Symmonds which does
a good job of getting you started, some say it's a re-hash of MSDN but then
what book isn't :) At least it wraps the raw MSDN information in a readable
and contextual style.

What you're asking for isn't all that advanced so these general purpose
resources will probably be all you need to get comfortable with the .Net way
of drawing.

Robert Smith
Kirkland, WA
www.smithvoice.com
 
that is good book i read.
1) The old VBClassic shape controls are no more. 2) Using a picturebox as
a background to your form isn't required, you can just draw right to the
form surface (.Net does this a lot faster and smoother than the equvalent
bltting we did with VBClassic).

The way to do both of the things you ask about is by using GDI+. There are
many internet articles on the System.Drawing namespaces and they are also
covered in several books. Since I still primarily code with VB, I've found
Francesco Balena's VB.Net Core References' Drawing/Imaging chapters to be
enough for the gettting the head wrapped around the basics, the C# version
of that book would likely be a good one to have on your desk for this and
more.

Also there is GDI+ Programming in C# and VB.Net by Nick Symmonds which does
a good job of getting you started, some say it's a re-hash of MSDN but then
what book isn't :) At least it wraps the raw MSDN information in a readable
and contextual style.

What you're asking for isn't all that advanced so these general purpose
resources will probably be all you need to get comfortable with the .Net way
of drawing.

Robert Smith
Kirkland, WA
www.smithvoice.com
 
Back
Top