Forms with no title bar - Microsoft Money 2005

G

Guest

Hello folks.

I´d like to build a application with the same look and feel of the Microsoft
Money 2005. As you can see, the first screen is maximized with the control
buttons (minimize, maximize, close window) but the title bar, of the window,
is not showing blue, as Windows standard, it´s showing a part of a background
image, giving to the user the sensation that it has no form title. How can I
do that in C#? Is it possible to do that? Do you have a sample?

Thanks a lot
Henrique
 
T

Terp

Should be possible. Don't have a sample though. Make the form borderless and
then add some buttons in the upper right corner, using the appropriate
bitmaps on them. I've seen those bitmaps somewhere. You'll have to handle
all the button events, though.

Terp
 
G

Guest

Could you send to me a sample? Do you have the buttons bitmap?

Thanks a lot for helping me...
 
H

Herfried K. Wagner [MVP]

hberenguel said:
I´d like to build a application with the same look and feel of the
Microsoft
Money 2005. As you can see, the first screen is maximized with the control
buttons (minimize, maximize, close window) but the title bar, of the
window,
is not showing blue, as Windows standard, it´s showing a part of a
background
image, giving to the user the sensation that it has no form title.

Move a borderless form.
<URL:http://www.dotnetrix.co.uk/misc.html>
 
G

Guest

Hi there... the code you told me seems to be a C++ one? And my trouble is
about how to build a clone of Microsoft Money screen... not only how to move
it...
Thanks a lot for your helping

const int WM_NCLBUTTONDOWN =0xA1;
const int WM_NCHITTEST = 0x84;
const int HT_CAPTION = 0x2;

//Move the form with a control.
//With this Method you lose the MouseUp, Click and DoubleClick events of the
control.
private void userControl1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
userControl1.Capture = false;
Message msg=Message.Create(Handle, WM_NCLBUTTONDOWN, (IntPtr)HT_CAPTION,
IntPtr.Zero);
WndProc(ref msg);
}

//Move the form with the form.
//With this Method you lose the MouseUp, Click and DoubleClick events
//aswell as the ContextMenu of the form.
protected override void WndProc(ref Message m)
{
base.WndProc (ref m);
if (m.Msg == WM_NCHITTEST)
m.Result = (IntPtr)HT_CAPTION;
}
 

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