473,405 Members | 2,261 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,405 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 1343
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.