473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

shape and mdi 2 questions

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

Jul 21 '05 #1
2 1341
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
"gary" <ga*********@163.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Jul 21 '05 #2
that is good book i read.

smith wrote:
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
"gary" <ga*********@163.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

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




Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: minjie | last post by:
Hello, I have several reports that were written with ADO shape command (in C++) to access Microsoft Access database. Now we have migrated all the data from Access to DB2 UDB (version 8.1), and the...
2
by: gary | last post by:
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?...
3
by: PM | last post by:
Hi, Im a student currently designing a game for a project. As part of my game, I want to be able to drag a shape over a series of panels. The shape needs to be able to be dropped on any of the...
0
by: nets-rac | last post by:
Hi, I use c# to automate powerpoint. I created a new shape with PowerPoint.Shape shape = slide.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationHorizontal, left, top, width, height);...
2
by: Vikas Kumar | last post by:
How to Display the Map from the Shape files in ASP.NET?
0
by: saravanansvks | last post by:
Dear Friends, I have prepared a programme in Visual Basic for SHAPE OPERATOR.But my coding are changing the shape only.It does not changes the fill style of the shape tool .And it is not giving ant...
1
by: JWest46088 | last post by:
I am a little confused about what I need to do here. I created four separate classes (Circle, Rectangle, Square, and Triangle) that each calculate their own area and perimeter via user input. Now...
4
by: Linda Liu[MSFT] | last post by:
Hi Moondaddy, I downloaded your sample project and run it and did see the problem on my side. There're three problems in the source code of your project. 1. You should move the following...
12
by: ab12 | last post by:
I'm trying to write a program in C that gets a shape outlined with asterisks from the user, and returns that shape filled with asterisks. It will also get the coordinates of a point inside the shape...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.