Visual style

D

David

Hello there can i read tutorial/instruction/howto to make my windows look
better, in style of WMP 10, ICQ lite...
or even any examples...

thnx...
David.
 
Z

Zach

David said:
Hello there can i read tutorial/instruction/howto to make my windows look
better, in style of WMP 10, ICQ lite...
or even any examples...

You cannot learn style form someone, although you can follow
examples.

The first problem I encountered when I wanted to
make my screens look good, was to make a palette of the
colours I thought went together well.

There are things yhat you absolutely need on the display.
Move them around until you get an attractive composition.
Once you have made your choices, be consistent in terms
of layout and colours.

If you would like to send me a screenshot, I would be
quite willing to comment.

Leave out the x

(e-mail address removed)
 
D

David

i asked of there can i finde an example to thet thing...
you know, how to make corners of windows rounded...
and many things...

thanx for reply
 
Z

Zach

David said:
i asked of there can i finde an example to thet thing...
you know, how to make corners of windows rounded...
and many things...

David,

You should ask questions, people are able to respond to, else
you won't get an answer. Your question was too general to
get a specific answer.

For instance, say: "How do I create a button with rounded corners?"

I don't know the answer to that one, maybe you can do something
with images you create.

Zach.
 
S

ShaneB

There's a much easier way to round the edges of a windows control. Use the
Windows API function CreateRoundRectRgn(). The abbreviated example below
shows how to do it to a form.

yourform.cs
....
using System.Runtime.InteropServices;
....
[DllImport("Gdi32.dll", EntryPoint="CreateRoundRectRgn")]
private static extern IntPtr CreateRoundRectRgn
(
int nLeftRect, // x-coordinate of upper-left corner
int nTopRect, // y-coordinate of upper-left corner
int nRightRect, // x-coordinate of lower-right corner
int nBottomRect, // y-coordinate of lower-right corner
int nWidthEllipse, // height of ellipse
int nHeightEllipse // width of ellipse
);

public Form1() // Your form's or other control's constructor
{
InitializeComponent();
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0,
Width-10, Height-10, 20, 20)); // adjust these parameters to get the look
you want.
}
....

ShaneB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top