473,796 Members | 2,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form caption height

slg
Is there a simpler way to increase the mdi form caption height?

I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx
Sep 3 '08 #1
6 5378

"slg" wrote:
Is there a simpler way to increase the mdi form caption height?
I'm afraid not
I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx
There is an updated article on CodePlex

http://www.codeplex.com/Wiki/View.as...omerBorderForm

What you basically need to do is override the default handling of the Non
Client messages (NC_xxx) by overriding WndProc in your child form and route
some messages to your own code.

const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;

protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(re f m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(re f m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to change the
size, you still need to do the drawing since the border is a set of images
that may not fit the new size. The rest of the messages can probably safely
be ignored and left to Windows to handle.

If you haven't already I suggest you download or view the source code
(Source Code tab above the article).

--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 3 '08 #2
slg
Thx a lot
"Morten Wennevik [C# MVP]" <Mo************ @hotmail.comwro te in message
news:AE******** *************** ***********@mic rosoft.com...
>
"slg" wrote:
>Is there a simpler way to increase the mdi form caption height?

I'm afraid not
>I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx

There is an updated article on CodePlex

http://www.codeplex.com/Wiki/View.as...omerBorderForm

What you basically need to do is override the default handling of the Non
Client messages (NC_xxx) by overriding WndProc in your child form and
route
some messages to your own code.

const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;

protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(re f m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(re f m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to change
the
size, you still need to do the drawing since the border is a set of images
that may not fit the new size. The rest of the messages can probably
safely
be ignored and left to Windows to handle.

If you haven't already I suggest you download or view the source code
(Source Code tab above the article).

--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 3 '08 #3
slg
Morten , I tried it and it works great except one bug.
when the form looses focus and i activate it by clicking on the taskbar
the size decreases by the amount of pixels
i added to the caption.

any thoughts.

"Morten Wennevik [C# MVP]" <Mo************ @hotmail.comwro te in message
news:AE******** *************** ***********@mic rosoft.com...
>
"slg" wrote:
>Is there a simpler way to increase the mdi form caption height?

I'm afraid not
>I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx

There is an updated article on CodePlex

http://www.codeplex.com/Wiki/View.as...omerBorderForm

What you basically need to do is override the default handling of the Non
Client messages (NC_xxx) by overriding WndProc in your child form and
route
some messages to your own code.

const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;

protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(re f m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(re f m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to change
the
size, you still need to do the drawing since the border is a set of images
that may not fit the new size. The rest of the messages can probably
safely
be ignored and left to Windows to handle.

If you haven't already I suggest you download or view the source code
(Source Code tab above the article).

--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 6 '08 #4
slg
I did a spy trace and clearly the height is reduced from 263 to 253 and so
is width.
I belive its do with WM_SIZE
<00089004B055 2 R WM_GETTEXTLENGT H cch:0
<00090004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479CC D0
<00091004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479CC D0 ("")
<00092004B055 2 R WM_ERASEBKGND fErased:True
<00093004B055 2 S WM_WINDOWPOSCHA NGED lpwp:0479DCDC
<00094004B055 2 S WM_MOVE xPos:31 yPos:50
<00095004B055 2 S WM_GETTEXTLENGT H
<00096004B055 2 R WM_GETTEXTLENGT H cch:0
<00097004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C3 48
<00098004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C3 48 ("")
<00099004B055 2 R WM_MOVE
<00100004B055 2 S WM_SIZE fwSizeType:SIZE _RESTORED nWidth:282 nHeight:263
<00101004B055 2 R WM_SIZE
<00102004B055 2 S WM_GETTEXTLENGT H
<00103004B055 2 R WM_GETTEXTLENGT H cch:0
<00104004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479CD 18
<00105004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479CD 18 ("")
<00106004B055 2 S WM_GETTEXTLENGT H
<00107004B055 2 R WM_GETTEXTLENGT H cch:0
<00108004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479CD 18
<00109004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479CD 18 ("")
<00110004B055 2 S WM_WINDOWPOSCHA NGING lpwp:0479D574
<00111004B055 2 S WM_GETMINMAXINF O lpmmi:0479CCD8
<00112004B055 2 R WM_GETMINMAXINF O lpmmi:0479CCD8
<00113004B055 2 R WM_WINDOWPOSCHA NGING
<00114004B055 2 S WM_NCCALCSIZE fCalcValidRects :True lpncsp:0479D548
<00115004B055 2 R WM_NCCALCSIZE fuValidRect:000 0 lpncsp:0479D548
<00116004B055 2 S WM_NCPAINT hrgn:00000001
<00117004B055 2 S WM_GETTEXT cchTextMax:510 lpszText:0479C4 D0
<00118004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C4 D0 ("")
<00119004B055 2 R WM_NCPAINT
<00120004B055 2 S WM_ERASEBKGND hdc:B0011B76
<00121004B055 2 S WM_GETTEXTLENGT H
<00122004B055 2 R WM_GETTEXTLENGT H cch:0
<00123004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C5 60
<00124004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C5 60 ("")
<00125004B055 2 R WM_ERASEBKGND fErased:True
<00126004B055 2 S WM_WINDOWPOSCHA NGED lpwp:0479D574
<00127004B055 2 S WM_SIZE fwSizeType:SIZE _RESTORED nWidth:272 nHeight:253
<00128004B055 2 R WM_SIZE
<00129004B055 2 S WM_GETTEXTLENGT H
<00130004B055 2 R WM_GETTEXTLENGT H cch:0
<00131004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C4 54
<00132004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C4 54 ("")
<00133004B055 2 S WM_GETTEXTLENGT H
<00134004B055 2 R WM_GETTEXTLENGT H cch:0
<00135004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C5 B8
<00136004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C5 B8 ("")
<00137004B055 2 S WM_GETTEXTLENGT H
<00138004B055 2 R WM_GETTEXTLENGT H cch:0
"slg" <sl*@abc.comwro te in message
news:e$******** *******@TK2MSFT NGP03.phx.gbl.. .
Morten , I tried it and it works great except one bug.
when the form looses focus and i activate it by clicking on the taskbar
the size decreases by the amount of pixels
i added to the caption.

any thoughts.

"Morten Wennevik [C# MVP]" <Mo************ @hotmail.comwro te in message
news:AE******** *************** ***********@mic rosoft.com...
>>
"slg" wrote:
>>Is there a simpler way to increase the mdi form caption height?

I'm afraid not
>>I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx

There is an updated article on CodePlex

http://www.codeplex.com/Wiki/View.as...omerBorderForm

What you basically need to do is override the default handling of the Non
Client messages (NC_xxx) by overriding WndProc in your child form and
route
some messages to your own code.

const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;

protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(re f m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(re f m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to change
the
size, you still need to do the drawing since the border is a set of
images
that may not fit the new size. The rest of the messages can probably
safely
be ignored and left to Windows to handle.

If you haven't already I suggest you download or view the source code
(Source Code tab above the article).

--
Happy Coding!
Morten Wennevik [C# MVP]
Sep 6 '08 #5
Hi,

I'm afraid I can't help you there.

I tried running the CustomBorderFor m project, and since it appeared to
retain its values when minimized you may be able to spot why your form does
not, by comparing the code.

--
Happy Coding!
Morten Wennevik [C# MVP]
"slg" wrote:
I did a spy trace and clearly the height is reduced from 263 to 253 and so
is width.
I belive its do with WM_SIZE
<00089004B055 2 R WM_GETTEXTLENGT H cch:0
<00090004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479CC D0
<00091004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479CC D0 ("")
<00092004B055 2 R WM_ERASEBKGND fErased:True
<00093004B055 2 S WM_WINDOWPOSCHA NGED lpwp:0479DCDC
<00094004B055 2 S WM_MOVE xPos:31 yPos:50
<00095004B055 2 S WM_GETTEXTLENGT H
<00096004B055 2 R WM_GETTEXTLENGT H cch:0
<00097004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C3 48
<00098004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C3 48 ("")
<00099004B055 2 R WM_MOVE
<00100004B055 2 S WM_SIZE fwSizeType:SIZE _RESTORED nWidth:282 nHeight:263
<00101004B055 2 R WM_SIZE
<00102004B055 2 S WM_GETTEXTLENGT H
<00103004B055 2 R WM_GETTEXTLENGT H cch:0
<00104004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479CD 18
<00105004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479CD 18 ("")
<00106004B055 2 S WM_GETTEXTLENGT H
<00107004B055 2 R WM_GETTEXTLENGT H cch:0
<00108004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479CD 18
<00109004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479CD 18 ("")
<00110004B055 2 S WM_WINDOWPOSCHA NGING lpwp:0479D574
<00111004B055 2 S WM_GETMINMAXINF O lpmmi:0479CCD8
<00112004B055 2 R WM_GETMINMAXINF O lpmmi:0479CCD8
<00113004B055 2 R WM_WINDOWPOSCHA NGING
<00114004B055 2 S WM_NCCALCSIZE fCalcValidRects :True lpncsp:0479D548
<00115004B055 2 R WM_NCCALCSIZE fuValidRect:000 0 lpncsp:0479D548
<00116004B055 2 S WM_NCPAINT hrgn:00000001
<00117004B055 2 S WM_GETTEXT cchTextMax:510 lpszText:0479C4 D0
<00118004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C4 D0 ("")
<00119004B055 2 R WM_NCPAINT
<00120004B055 2 S WM_ERASEBKGND hdc:B0011B76
<00121004B055 2 S WM_GETTEXTLENGT H
<00122004B055 2 R WM_GETTEXTLENGT H cch:0
<00123004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C5 60
<00124004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C5 60 ("")
<00125004B055 2 R WM_ERASEBKGND fErased:True
<00126004B055 2 S WM_WINDOWPOSCHA NGED lpwp:0479D574
<00127004B055 2 S WM_SIZE fwSizeType:SIZE _RESTORED nWidth:272 nHeight:253
<00128004B055 2 R WM_SIZE
<00129004B055 2 S WM_GETTEXTLENGT H
<00130004B055 2 R WM_GETTEXTLENGT H cch:0
<00131004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C4 54
<00132004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C4 54 ("")
<00133004B055 2 S WM_GETTEXTLENGT H
<00134004B055 2 R WM_GETTEXTLENGT H cch:0
<00135004B055 2 S WM_GETTEXT cchTextMax:2 lpszText:0479C5 B8
<00136004B055 2 R WM_GETTEXT cchCopied:0 lpszText:0479C5 B8 ("")
<00137004B055 2 S WM_GETTEXTLENGT H
<00138004B055 2 R WM_GETTEXTLENGT H cch:0
"slg" <sl*@abc.comwro te in message
news:e$******** *******@TK2MSFT NGP03.phx.gbl.. .
Morten , I tried it and it works great except one bug.
when the form looses focus and i activate it by clicking on the taskbar
the size decreases by the amount of pixels
i added to the caption.

any thoughts.

"Morten Wennevik [C# MVP]" <Mo************ @hotmail.comwro te in message
news:AE******** *************** ***********@mic rosoft.com...
>
"slg" wrote:

Is there a simpler way to increase the mdi form caption height?
I'm afraid not

I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx
There is an updated article on CodePlex

http://www.codeplex.com/Wiki/View.as...omerBorderForm

What you basically need to do is override the default handling of the Non
Client messages (NC_xxx) by overriding WndProc in your child form and
route
some messages to your own code.

const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;

protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(re f m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(re f m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to change
the
size, you still need to do the drawing since the border is a set of
images
that may not fit the new size. The rest of the messages can probably
safely
be ignored and left to Windows to handle.

If you haven't already I suggest you download or view the source code
(Source Code tab above the article).

--
Happy Coding!
Morten Wennevik [C# MVP]

Sep 10 '08 #6
slg
Morten, Thx for your reply.

I changed the caption height in WM_NCCALCSIZE in customBorderFor m and had
same issue.
Finally i figured out by spy trace that in wm_windowsposch anging i adjusted
the height of the window by adding caption size.
Any how it looks to be complicated to change caption size in case you have
menu's

Thx
"Morten Wennevik [C# MVP]" <Mo************ @hotmail.comwro te in message
news:A8******** *************** ***********@mic rosoft.com...
Hi,

I'm afraid I can't help you there.

I tried running the CustomBorderFor m project, and since it appeared to
retain its values when minimized you may be able to spot why your form
does
not, by comparing the code.

--
Happy Coding!
Morten Wennevik [C# MVP]
"slg" wrote:
>I did a spy trace and clearly the height is reduced from 263 to 253 and
so
is width.
I belive its do with WM_SIZE
<00089004B05 52 R WM_GETTEXTLENGT H cch:0
<00090004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479CC D0
<00091004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479CC D0 ("")
<00092004B05 52 R WM_ERASEBKGND fErased:True
<00093004B05 52 S WM_WINDOWPOSCHA NGED lpwp:0479DCDC
<00094004B05 52 S WM_MOVE xPos:31 yPos:50
<00095004B05 52 S WM_GETTEXTLENGT H
<00096004B05 52 R WM_GETTEXTLENGT H cch:0
<00097004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479C3 48
<00098004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479C3 48 ("")
<00099004B05 52 R WM_MOVE
<00100004B05 52 S WM_SIZE fwSizeType:SIZE _RESTORED nWidth:282
nHeight:263
<00101004B05 52 R WM_SIZE
<00102004B05 52 S WM_GETTEXTLENGT H
<00103004B05 52 R WM_GETTEXTLENGT H cch:0
<00104004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479CD 18
<00105004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479CD 18 ("")
<00106004B05 52 S WM_GETTEXTLENGT H
<00107004B05 52 R WM_GETTEXTLENGT H cch:0
<00108004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479CD 18
<00109004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479CD 18 ("")
<00110004B05 52 S WM_WINDOWPOSCHA NGING lpwp:0479D574
<00111004B05 52 S WM_GETMINMAXINF O lpmmi:0479CCD8
<00112004B05 52 R WM_GETMINMAXINF O lpmmi:0479CCD8
<00113004B05 52 R WM_WINDOWPOSCHA NGING
<00114004B05 52 S WM_NCCALCSIZE fCalcValidRects :True lpncsp:0479D548
<00115004B05 52 R WM_NCCALCSIZE fuValidRect:000 0 lpncsp:0479D548
<00116004B05 52 S WM_NCPAINT hrgn:00000001
<00117004B05 52 S WM_GETTEXT cchTextMax:510 lpszText:0479C4 D0
<00118004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479C4 D0 ("")
<00119004B05 52 R WM_NCPAINT
<00120004B05 52 S WM_ERASEBKGND hdc:B0011B76
<00121004B05 52 S WM_GETTEXTLENGT H
<00122004B05 52 R WM_GETTEXTLENGT H cch:0
<00123004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479C5 60
<00124004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479C5 60 ("")
<00125004B05 52 R WM_ERASEBKGND fErased:True
<00126004B05 52 S WM_WINDOWPOSCHA NGED lpwp:0479D574
<00127004B05 52 S WM_SIZE fwSizeType:SIZE _RESTORED nWidth:272
nHeight:253
<00128004B05 52 R WM_SIZE
<00129004B05 52 S WM_GETTEXTLENGT H
<00130004B05 52 R WM_GETTEXTLENGT H cch:0
<00131004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479C4 54
<00132004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479C4 54 ("")
<00133004B05 52 S WM_GETTEXTLENGT H
<00134004B05 52 R WM_GETTEXTLENGT H cch:0
<00135004B05 52 S WM_GETTEXT cchTextMax:2 lpszText:0479C5 B8
<00136004B05 52 R WM_GETTEXT cchCopied:0 lpszText:0479C5 B8 ("")
<00137004B05 52 S WM_GETTEXTLENGT H
<00138004B05 52 R WM_GETTEXTLENGT H cch:0
"slg" <sl*@abc.comwro te in message
news:e$******* ********@TK2MSF TNGP03.phx.gbl. ..
Morten , I tried it and it works great except one bug.
when the form looses focus and i activate it by clicking on the
taskbar
the size decreases by the amount of pixels
i added to the caption.

any thoughts.

"Morten Wennevik [C# MVP]" <Mo************ @hotmail.comwro te in
message
news:AE******** *************** ***********@mic rosoft.com...

"slg" wrote:

Is there a simpler way to increase the mdi form caption height?
I'm afraid not

I am following this article but not sure where should i change?
I belive its most probably in the WmNCCalcSize
TIA

http://geekswithblogs.net/kobush/art...rderForms.aspx
There is an updated article on CodePlex

http://www.codeplex.com/Wiki/View.as...omerBorderForm

What you basically need to do is override the default handling of the
Non
Client messages (NC_xxx) by overriding WndProc in your child form and
route
some messages to your own code.

const int WM_SETTEXT = 0x000c;
const int WM_NCCALCSIZE = 0x0083;
const int WM_NCPAINT = 0x0085;

protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SETTEXT:
WmSetText(ref m);
break;
case WM_NCCALCSIZE:
WmNCCalcSize(re f m);
break;
case WM_NCPAINT:
WmNCPaint(ref m);
break;
default:
base.WndProc(re f m);
break;
}
}
You change the size in WmNCCalcSize, draw the border and caption in
WmNCPaint and the caption text in WmSetText. If you just want to
change
the
size, you still need to do the drawing since the border is a set of
images
that may not fit the new size. The rest of the messages can probably
safely
be ignored and left to Windows to handle.

If you haven't already I suggest you download or view the source code
(Source Code tab above the article).

--
Happy Coding!
Morten Wennevik [C# MVP]

Sep 12 '08 #7

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

Similar topics

8
3948
by: Wally | last post by:
I would like to have an image with a caption displayed below it. The size of the image will vary. The caption should not extend beyond the width of the image. How can I cause the text of the caption to wrap so that it will stay within the (varying) width of the image? Any ideas?
2
5269
by: aqualizard | last post by:
I have made and image with a caption using CSS, but I am hoping someone can show me how to do it better. By better I mean less HTML, and hopefully have it work with any sized image where I do not have to hard code the width of the container that holds the image. Here is a description: I want to have an image with a caption underneath, aligned on the left. There should be a black keyline around the image, and the caption underneath, and...
1
1981
by: Susan Bricker | last post by:
Greetings. I am trying to position opened forms so that they are cascaded on the screen. I have discovered the movesize action (for the DoCmd) and Move property of a form (for Acc 2002/2003). However, if the application is opened up on different monitors (e.g.; 17" or 19"), the relative location of the opened form is not the same (i.e.; on the bigger monitor the opened form is too far over to the right and too high). What I want to...
3
6061
by: tolisss | last post by:
Hi I have a form with minimize,maximize button=false and startup window state= maximized but when the user double click on the form title bar caption the form's size changes How do i prevent that? *** Sent via Developersdex http://www.developersdex.com ***
18
42244
by: Mike D | last post by:
I am looking for a way in vb.net to take a form with sharp corners and just round off the corners a bit so they arent so sharp. I have seen this done in other applications.
22
7130
by: liups | last post by:
Hi, I just come across this, how can I make a form's height larger than 780 pixels? Thank you.
1
2604
by: Udi | last post by:
All, I have a list box that imitates the intelisence behavior. Since I need it to be top most, I have put it on a TopMost form (The listBox docked to Fill). The form has no parent, no caption and its borderStyle is FixedSingle. The Listbox IntegralHeight is false. My problem is that when my listbox contains only one or two items in it, I can't shrink the parent form to the wanted sizes. The result is a listbox (form) bigger than needed...
1
1670
devonknows
by: devonknows | last post by:
Ok, i posted about forcing a form to unload, now since ive implemented that, when check1.value = true, when you close the form, it doesnt unload, when check1.value = false, it unloads perfectly and does all the ADO with it, but when check1.value = true its doing the ADO commands, but just not unloading, if anyone can shed some light would be most greatful. Kind Regards Devon. Module code. Option Explicit Public g_fmrSearch As...
11
5000
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/Demo/photo%20block%20experiments.html I've ended up with what seems like a rather complex structure for what I thought would be a somewhat simple problem. Even that complex solution works well only in FireFox (haven't tested Safari...). Can anyone come up with a better solution, where 'better' means: - Works as well as the example above, but is simpler. OR
0
9528
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10012
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.