472,989 Members | 3,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Creating a 3D panel

Hello. I need to make a 3D panel. At the moment i am using

private void panel1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Rectangle r = ClientRectangle;

Border3DStyle style = Border3DStyle.RaisedInner;
ControlPaint.DrawBorder3D(g, r, style, Border3DSide.All);
}
I need a more Raised look than this. And i need all the sides to be
raised.
Jun 27 '08 #1
1 6356
Hi,

Border3DStyle.Raised will give a more raised look than RaisedInner, but I
suspect your real problem is using the parent ClientRectangle instead of
panel1.ClientRectangle. Try changing the line to

Rectangle r = panel1.ClientRectangle;

Btw, you don't need to specify Border3DSide if you want all sides to be
painted.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Cdude" wrote:
Hello. I need to make a 3D panel. At the moment i am using

private void panel1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
Rectangle r = ClientRectangle;

Border3DStyle style = Border3DStyle.RaisedInner;
ControlPaint.DrawBorder3D(g, r, style, Border3DSide.All);
}
I need a more Raised look than this. And i need all the sides to be
raised.
Jun 27 '08 #2

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

Similar topics

0
by: Haim Ashkenazi | last post by:
Hi I want to write an application that has the option of having an icon on the panel (to hide and show the main window + menu), something like gaim or rhythmbox. my first choice was pykde (since...
2
by: AKR | last post by:
I have to create control panel applet using C# . I have read in the net that it is not possible using C# . How can i create control panel applet using C# .
3
by: Dariusz Rajtak | last post by:
Hello, I have to create my own control which might be an extension for a standard 'panel' control. I called it 'SmartPanel'. This is specialized panel. It consists of a title bar and a client...
2
by: Homer | last post by:
Hi, Have a quick question: Lets say I have a Hashtable of values hence 56 37.890 1 12.768 5 9.764 etc.... Is there a way for me to draw a chart in C# of this. FYI its actually lottery...
3
by: Calvin Lai | last post by:
Hi all, I have a problem in creating web user control *programatically*. Problem as follows: 1. WebUserControl1 contains a server side table named Table1 2. WebForm1 contain a server panel...
6
by: Luqman | last post by:
I am using Windows XP Pro with IIS 5.1. After installing Visual Studio .Net 2003, when I try to create a New ASP.Net Project, following message occured:- "Visual Studio .Net has detected that...
2
by: DaWoE | last post by:
Hi all, I'm fairly new to ASP.NET. What i want to do is creat a online registration form. On the first step is getting the users details and the number of people he wants to register. Based on...
4
by: Net Developer | last post by:
I need to create a wizard like interface where a person picks an item on the first page, then goes to the next page, makes a choice there, .... Ideally it will need to be user object because of...
0
by: Syoam4ka | last post by:
My project is about jewellery. I have devided my jewelery into main types, which each one of them has sub types, and each one those sub types has the jewellery. I have a tabcontainer. It includes...
4
by: Miner Jeff | last post by:
Within a C++ program, how could I dump all the panel activity (while the program is running) to a file? Thanks, Jeff
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.