473,659 Members | 3,553 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding buttons to the form's title bar

Hi all,

Is there any .NET way (I am not rulling out API usage) to add button(s) to a
form's title bar?

I found some non-.NET solutions that did actually work in VB6 but not in the
..NET forms...

I tried painting, but the paintaing area provided by the form is only the
client area - no visible way to paint on the title bar.

Since my application is MDI parent and children (even though i would love a
generic solution), I also tried something silly that worked: adding a button
member to the form (actually a derived class of form), and in the
constructor, adding it to the MDIParent.Contr ols property. after doing so,
all that is left is controling the button's position accurding to the form
position and size. since the button is located on the MDIParent it has a
"Z-Order" which is higher than the form, and therefor drawn on top of it.
Only two problems with that: I had to hide the buttons of un-focused forms
because otherwise they all appear on top of every other element. the second
problem was drawing the button when minimized (no focus when moving a
minimized mdi child form - thus, unable to determine if to show or hide the
button) and drawing the button when maximized - this seems all and all
impossible to do - no way to place even that "super-button" on top of the
maximized title bar.

any help would be great,

Picho.
Jul 21 '05 #1
16 3181
here's my solution.... I think it does everything you
described in your posting but one thing... If the user
changes the skin... your app will still show the normal
title bar. If this is okay... read on.

This idea can be wrapped up in a new form class so that
you can use it for the MDI or MDIChild forms.

1) create a normal form in the designer
2) remove its Maximize, minimize, controlBox and title
text. This will result in a form without a titlebar.
3) set its border style to sizeable.
4) add 2 picture boxes; pbtitlebar and pbIcon
5) set the dock property of the pbtitlebar to "top".
6) set the image property of the pbtitlebar to a bitmap
of the solid part of the title bar of a typical window.
7) make sure that the height of pbtitlebar is exactly the
same as the bitmap. Set the SizeMode to StretchImage
(this will cause some pixelation.. to avoid that you can
create a very long title bar for the largest screen you
can imagine... alternatively set the SizeMode to
StrechImage if the width of the pbtitlebar get longer
that 21 inch or whatever).
8) set the image of the pbicon to your application icon
and locate it in the upper left corner of the window.
Make sure to "Bring" it "to front";
9) run your program and resize the form... it clearly
behaves as though you have a title bar with an icon ,
but no text or minimum/maximum/close button.
10) create your buttons and position them on the
new "Title bar";
11) in the paint event of the pbTitleBar, write
instructions to locate the buttons programatically
correctly... i.e.

this.btnClose.l eft = pbtitlebar.righ t -
this.btnClose.w idth - 5;
this.btnMax.lef t = this.btnClose.l eft -
this.btnMax.wid th - 5;
etc;

12) add the button click handlers
13) After the click for each button make sure that the
focus is transferred to a control on the form.
14) you can simulate the active/inactive windows by
changing the image of the picture boxes (dark blue for
active and faint blue for inactive.
15) you can also program the drag event of the pbtitlebar
to help moving the windows around on the screen.
16) you can get the window's title written to the
pbTitleBar by something like this:

private void ShowTitle()
{
System.Drawing. Graphics g =
this.pbTitleBar .CreateGraphics ();
System.Drawing. Font font = new System.Drawing. Font
("Times New Roman", 12);
System.Drawing. PointF pos = new System.Drawing. PointF
(this.pictureBo x2.Width + 5, this.pictureBox 2.Top );
System.Drawing. Brush brush = new
System.Drawing. SolidBrush(Syst em.Drawing.Colo r.White);

g.DrawString ("windows title", font, brush, pos);

}

You need to call ShowTitle in the form_paint and
pbTitleBar_Pain t.

let me know if you have any problems with this.

good luck
Nasser.

-----Original Message-----
Hi all,

Is there any .NET way (I am not rulling out API usage) to add button(s) to aform's title bar?

I found some non-.NET solutions that did actually work in VB6 but not in the..NET forms...

I tried painting, but the paintaing area provided by the form is only theclient area - no visible way to paint on the title bar.

Since my application is MDI parent and children (even though i would love ageneric solution), I also tried something silly that worked: adding a buttonmember to the form (actually a derived class of form), and in theconstructor, adding it to the MDIParent.Contr ols property. after doing so,all that is left is controling the button's position accurding to the formposition and size. since the button is located on the MDIParent it has a"Z-Order" which is higher than the form, and therefor drawn on top of it.Only two problems with that: I had to hide the buttons of un-focused formsbecause otherwise they all appear on top of every other element. the secondproblem was drawing the button when minimized (no focus when moving aminimized mdi child form - thus, unable to determine if to show or hide thebutton) and drawing the button when maximized - this seems all and allimpossible to do - no way to place even that "super- button" on top of themaximized title bar.

any help would be great,

Picho.
.

Jul 21 '05 #2
After posting, I realized that the skin is not the major
problem. Positioning the menu just under the "Title bar"
seems to be a more difficult problem to which I have no
solution. This is because a "main Menu" is NOT a
control!!

sorry!

Nasser

-----Original Message-----
here's my solution.... I think it does everything you
described in your posting but one thing... If the user
changes the skin... your app will still show the normal
title bar. If this is okay... read on.

This idea can be wrapped up in a new form class so that
you can use it for the MDI or MDIChild forms.

1) create a normal form in the designer
2) remove its Maximize, minimize, controlBox and title
text. This will result in a form without a titlebar.
3) set its border style to sizeable.
4) add 2 picture boxes; pbtitlebar and pbIcon
5) set the dock property of the pbtitlebar to "top".
6) set the image property of the pbtitlebar to a bitmap
of the solid part of the title bar of a typical window.
7) make sure that the height of pbtitlebar is exactly thesame as the bitmap. Set the SizeMode to StretchImage
(this will cause some pixelation.. to avoid that you can
create a very long title bar for the largest screen you
can imagine... alternatively set the SizeMode to
StrechImage if the width of the pbtitlebar get longer
that 21 inch or whatever).
8) set the image of the pbicon to your application icon
and locate it in the upper left corner of the window.
Make sure to "Bring" it "to front";
9) run your program and resize the form... it clearly
behaves as though you have a title bar with an icon ,
but no text or minimum/maximum/close button.
10) create your buttons and position them on the
new "Title bar";
11) in the paint event of the pbTitleBar, write
instructions to locate the buttons programatically
correctly... i.e.

this.btnClose.l eft = pbtitlebar.righ t -
this.btnClose. width - 5;
this.btnMax.lef t = this.btnClose.l eft -
this.btnMax.wi dth - 5;
etc;

12) add the button click handlers
13) After the click for each button make sure that the
focus is transferred to a control on the form.
14) you can simulate the active/inactive windows by
changing the image of the picture boxes (dark blue for
active and faint blue for inactive.
15) you can also program the drag event of the pbtitlebarto help moving the windows around on the screen.
16) you can get the window's title written to the
pbTitleBar by something like this:

private void ShowTitle()
{
System.Drawing. Graphics g =
this.pbTitleBa r.CreateGraphic s();
System.Drawing. Font font = new System.Drawing. Font
("Times New Roman", 12);
System.Drawing. PointF pos = new System.Drawing. PointF
(this.pictureB ox2.Width + 5, this.pictureBox 2.Top );
System.Drawing. Brush brush = new
System.Drawing .SolidBrush(Sys tem.Drawing.Col or.White);

g.DrawString ("windows title", font, brush, pos);

}

You need to call ShowTitle in the form_paint and
pbTitleBar_Pai nt.

let me know if you have any problems with this.

good luck
Nasser.

-----Original Message-----
Hi all,

Is there any .NET way (I am not rulling out API usage)to add button(s) to a
form's title bar?

I found some non-.NET solutions that did actually work

in VB6 but not in the
..NET forms...

I tried painting, but the paintaing area provided by

theform is only the
client area - no visible way to paint on the title bar.

Since my application is MDI parent and children (even

though i would love a
generic solution), I also tried something silly that

worked: adding a button
member to the form (actually a derived class of form),

and in the
constructor , adding it to the MDIParent.Contr ols

property. after doing so,
all that is left is controling the button's position

accurding to the form
position and size. since the button is located on the

MDIParent it has a
"Z-Order" which is higher than the form, and therefor

drawn on top of it.
Only two problems with that: I had to hide the buttons

of un-focused forms
because otherwise they all appear on top of every other

element. the second
problem was drawing the button when minimized (no focus

when moving a
minimized mdi child form - thus, unable to determine if

to show or hide the
button) and drawing the button when maximized - this

seems all and all
impossible to do - no way to place even that "super-

button" on top of the
maximized title bar.

any help would be great,

Picho.
.

.

Jul 21 '05 #3
Thanx anyway!!
Nasser" <an*******@disc ussions.microso ft.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
After posting, I realized that the skin is not the major
problem. Positioning the menu just under the "Title bar"
seems to be a more difficult problem to which I have no
solution. This is because a "main Menu" is NOT a
control!!

sorry!

Nasser

-----Original Message-----
here's my solution.... I think it does everything you
described in your posting but one thing... If the user
changes the skin... your app will still show the normal
title bar. If this is okay... read on.

This idea can be wrapped up in a new form class so that
you can use it for the MDI or MDIChild forms.

1) create a normal form in the designer
2) remove its Maximize, minimize, controlBox and title
text. This will result in a form without a titlebar.
3) set its border style to sizeable.
4) add 2 picture boxes; pbtitlebar and pbIcon
5) set the dock property of the pbtitlebar to "top".
6) set the image property of the pbtitlebar to a bitmap
of the solid part of the title bar of a typical window.
7) make sure that the height of pbtitlebar is exactly

the
same as the bitmap. Set the SizeMode to StretchImage
(this will cause some pixelation.. to avoid that you can
create a very long title bar for the largest screen you
can imagine... alternatively set the SizeMode to
StrechImage if the width of the pbtitlebar get longer
that 21 inch or whatever).
8) set the image of the pbicon to your application icon
and locate it in the upper left corner of the window.
Make sure to "Bring" it "to front";
9) run your program and resize the form... it clearly
behaves as though you have a title bar with an icon ,
but no text or minimum/maximum/close button.
10) create your buttons and position them on the
new "Title bar";
11) in the paint event of the pbTitleBar, write
instructions to locate the buttons programatically
correctly... i.e.

this.btnClose.l eft = pbtitlebar.righ t -
this.btnClose. width - 5;
this.btnMax.lef t = this.btnClose.l eft -
this.btnMax.wi dth - 5;
etc;

12) add the button click handlers
13) After the click for each button make sure that the
focus is transferred to a control on the form.
14) you can simulate the active/inactive windows by
changing the image of the picture boxes (dark blue for
active and faint blue for inactive.
15) you can also program the drag event of the

pbtitlebar
to help moving the windows around on the screen.
16) you can get the window's title written to the
pbTitleBar by something like this:

private void ShowTitle()
{
System.Drawing. Graphics g =
this.pbTitleBa r.CreateGraphic s();
System.Drawing. Font font = new System.Drawing. Font
("Times New Roman", 12);
System.Drawing. PointF pos = new System.Drawing. PointF
(this.pictureB ox2.Width + 5, this.pictureBox 2.Top );
System.Drawing. Brush brush = new
System.Drawing .SolidBrush(Sys tem.Drawing.Col or.White);

g.DrawString ("windows title", font, brush, pos);

}

You need to call ShowTitle in the form_paint and
pbTitleBar_Pai nt.

let me know if you have any problems with this.

good luck
Nasser.

-----Original Message-----
Hi all,

Is there any .NET way (I am not rulling out API usage)

to add button(s) to a
form's title bar?

I found some non-.NET solutions that did actually work

in VB6 but not in the
..NET forms...

I tried painting, but the paintaing area provided by

the
form is only the
client area - no visible way to paint on the title bar.

Since my application is MDI parent and children (even

though i would love a
generic solution), I also tried something silly that

worked: adding a button
member to the form (actually a derived class of form),

and in the
constructor , adding it to the MDIParent.Contr ols

property. after doing so,
all that is left is controling the button's position

accurding to the form
position and size. since the button is located on the

MDIParent it has a
"Z-Order" which is higher than the form, and therefor

drawn on top of it.
Only two problems with that: I had to hide the buttons

of un-focused forms
because otherwise they all appear on top of every other

element. the second
problem was drawing the button when minimized (no focus

when moving a
minimized mdi child form - thus, unable to determine if

to show or hide the
button) and drawing the button when maximized - this

seems all and all
impossible to do - no way to place even that "super-

button" on top of the
maximized title bar.

any help would be great,

Picho.
.

.

Jul 21 '05 #4
NC painting goes against windows design guidelines doesn't it.
"Nasser" <an*******@disc ussions.microso ft.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
After posting, I realized that the skin is not the major
problem. Positioning the menu just under the "Title bar"
seems to be a more difficult problem to which I have no
solution. This is because a "main Menu" is NOT a
control!!

sorry!

Nasser

-----Original Message-----
here's my solution.... I think it does everything you
described in your posting but one thing... If the user
changes the skin... your app will still show the normal
title bar. If this is okay... read on.

This idea can be wrapped up in a new form class so that
you can use it for the MDI or MDIChild forms.

1) create a normal form in the designer
2) remove its Maximize, minimize, controlBox and title
text. This will result in a form without a titlebar.
3) set its border style to sizeable.
4) add 2 picture boxes; pbtitlebar and pbIcon
5) set the dock property of the pbtitlebar to "top".
6) set the image property of the pbtitlebar to a bitmap
of the solid part of the title bar of a typical window.
7) make sure that the height of pbtitlebar is exactly

the
same as the bitmap. Set the SizeMode to StretchImage
(this will cause some pixelation.. to avoid that you can
create a very long title bar for the largest screen you
can imagine... alternatively set the SizeMode to
StrechImage if the width of the pbtitlebar get longer
that 21 inch or whatever).
8) set the image of the pbicon to your application icon
and locate it in the upper left corner of the window.
Make sure to "Bring" it "to front";
9) run your program and resize the form... it clearly
behaves as though you have a title bar with an icon ,
but no text or minimum/maximum/close button.
10) create your buttons and position them on the
new "Title bar";
11) in the paint event of the pbTitleBar, write
instructions to locate the buttons programatically
correctly... i.e.

this.btnClose.l eft = pbtitlebar.righ t -
this.btnClose. width - 5;
this.btnMax.lef t = this.btnClose.l eft -
this.btnMax.wi dth - 5;
etc;

12) add the button click handlers
13) After the click for each button make sure that the
focus is transferred to a control on the form.
14) you can simulate the active/inactive windows by
changing the image of the picture boxes (dark blue for
active and faint blue for inactive.
15) you can also program the drag event of the

pbtitlebar
to help moving the windows around on the screen.
16) you can get the window's title written to the
pbTitleBar by something like this:

private void ShowTitle()
{
System.Drawing. Graphics g =
this.pbTitleBa r.CreateGraphic s();
System.Drawing. Font font = new System.Drawing. Font
("Times New Roman", 12);
System.Drawing. PointF pos = new System.Drawing. PointF
(this.pictureB ox2.Width + 5, this.pictureBox 2.Top );
System.Drawing. Brush brush = new
System.Drawing .SolidBrush(Sys tem.Drawing.Col or.White);

g.DrawString ("windows title", font, brush, pos);

}

You need to call ShowTitle in the form_paint and
pbTitleBar_Pai nt.

let me know if you have any problems with this.

good luck
Nasser.

-----Original Message-----
Hi all,

Is there any .NET way (I am not rulling out API usage)

to add button(s) to a
form's title bar?

I found some non-.NET solutions that did actually work

in VB6 but not in the
..NET forms...

I tried painting, but the paintaing area provided by

the
form is only the
client area - no visible way to paint on the title bar.

Since my application is MDI parent and children (even

though i would love a
generic solution), I also tried something silly that

worked: adding a button
member to the form (actually a derived class of form),

and in the
constructor , adding it to the MDIParent.Contr ols

property. after doing so,
all that is left is controling the button's position

accurding to the form
position and size. since the button is located on the

MDIParent it has a
"Z-Order" which is higher than the form, and therefor

drawn on top of it.
Only two problems with that: I had to hide the buttons

of un-focused forms
because otherwise they all appear on top of every other

element. the second
problem was drawing the button when minimized (no focus

when moving a
minimized mdi child form - thus, unable to determine if

to show or hide the
button) and drawing the button when maximized - this

seems all and all
impossible to do - no way to place even that "super-

button" on top of the
maximized title bar.

any help would be great,

Picho.
.

.

Jul 21 '05 #5
What's "NC Painting"?
"Alvin Bruney" <alvin.bruney@. telia..com.> wrote in message
news:Oy******** ******@TK2MSFTN GP10.phx.gbl...
NC painting goes against windows design guidelines doesn't it.
"Nasser" <an*******@disc ussions.microso ft.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
After posting, I realized that the skin is not the major
problem. Positioning the menu just under the "Title bar"
seems to be a more difficult problem to which I have no
solution. This is because a "main Menu" is NOT a
control!!

sorry!

Nasser

-----Original Message-----
here's my solution.... I think it does everything you
described in your posting but one thing... If the user
changes the skin... your app will still show the normal
title bar. If this is okay... read on.

This idea can be wrapped up in a new form class so that
you can use it for the MDI or MDIChild forms.

1) create a normal form in the designer
2) remove its Maximize, minimize, controlBox and title
text. This will result in a form without a titlebar.
3) set its border style to sizeable.
4) add 2 picture boxes; pbtitlebar and pbIcon
5) set the dock property of the pbtitlebar to "top".
6) set the image property of the pbtitlebar to a bitmap
of the solid part of the title bar of a typical window.
7) make sure that the height of pbtitlebar is exactly

the
same as the bitmap. Set the SizeMode to StretchImage
(this will cause some pixelation.. to avoid that you can
create a very long title bar for the largest screen you
can imagine... alternatively set the SizeMode to
StrechImage if the width of the pbtitlebar get longer
that 21 inch or whatever).
8) set the image of the pbicon to your application icon
and locate it in the upper left corner of the window.
Make sure to "Bring" it "to front";
9) run your program and resize the form... it clearly
behaves as though you have a title bar with an icon ,
but no text or minimum/maximum/close button.
10) create your buttons and position them on the
new "Title bar";
11) in the paint event of the pbTitleBar, write
instructions to locate the buttons programatically
correctly... i.e.

this.btnClose.l eft = pbtitlebar.righ t -
this.btnClose. width - 5;
this.btnMax.lef t = this.btnClose.l eft -
this.btnMax.wi dth - 5;
etc;

12) add the button click handlers
13) After the click for each button make sure that the
focus is transferred to a control on the form.
14) you can simulate the active/inactive windows by
changing the image of the picture boxes (dark blue for
active and faint blue for inactive.
15) you can also program the drag event of the

pbtitlebar
to help moving the windows around on the screen.
16) you can get the window's title written to the
pbTitleBar by something like this:

private void ShowTitle()
{
System.Drawing. Graphics g =
this.pbTitleBa r.CreateGraphic s();
System.Drawing. Font font = new System.Drawing. Font
("Times New Roman", 12);
System.Drawing. PointF pos = new System.Drawing. PointF
(this.pictureB ox2.Width + 5, this.pictureBox 2.Top );
System.Drawing. Brush brush = new
System.Drawing .SolidBrush(Sys tem.Drawing.Col or.White);

g.DrawString ("windows title", font, brush, pos);

}

You need to call ShowTitle in the form_paint and
pbTitleBar_Pai nt.

let me know if you have any problems with this.

good luck
Nasser.


>-----Original Message-----
>Hi all,
>
>Is there any .NET way (I am not rulling out API usage)
to add button(s) to a
>form's title bar?
>
>I found some non-.NET solutions that did actually work
in VB6 but not in the
>..NET forms...
>
>I tried painting, but the paintaing area provided by

the
form is only the
>client area - no visible way to paint on the title bar.
>
>Since my application is MDI parent and children (even
though i would love a
>generic solution), I also tried something silly that
worked: adding a button
>member to the form (actually a derived class of form),
and in the
>constructor , adding it to the MDIParent.Contr ols
property. after doing so,
>all that is left is controling the button's position
accurding to the form
>position and size. since the button is located on the
MDIParent it has a
>"Z-Order" which is higher than the form, and therefor
drawn on top of it.
>Only two problems with that: I had to hide the buttons
of un-focused forms
>because otherwise they all appear on top of every other
element. the second
>problem was drawing the button when minimized (no focus
when moving a
>minimized mdi child form - thus, unable to determine if
to show or hide the
>button) and drawing the button when maximized - this
seems all and all
>impossible to do - no way to place even that "super-
button" on top of the
>maximized title bar.
>
>any help would be great,
>
>Picho.
>
>
>.
>
.


Jul 21 '05 #6
I wrote a solution for VB6 and I can say that there's no simple way to do
it. The best you can do is override the WndProc method of the form and
listen for NC_PAINT events. Paint your button onto the non-client area. Then
listen for mouse events and respond accordingly.

There wasn't much of a market for this, so I haven't ported my VB6 code to
..NET

HTH;
Eric Cadwell
http://www.origincontrols.com
Jul 21 '05 #7
well this seems the problem....

ho do i paint on non-client area?
"Eric Cadwell" <ec******@ns.in sight.com> wrote in message
news:e8******** ******@tk2msftn gp13.phx.gbl...
I wrote a solution for VB6 and I can say that there's no simple way to do
it. The best you can do is override the WndProc method of the form and
listen for NC_PAINT events. Paint your button onto the non-client area. Then listen for mouse events and respond accordingly.

There wasn't much of a market for this, so I haven't ported my VB6 code to
.NET

HTH;
Eric Cadwell
http://www.origincontrols.com

Jul 21 '05 #8
That is WM_NCPAINT events.
Jul 21 '05 #9
Try Graphics.FromHd c.

HTH;
Eric Cadwell
http://www.origincontrols.com
Jul 21 '05 #10

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

Similar topics

2
2428
by: Aravind | last post by:
Hi folks. I have a form, frmHistory, which has 4 command buttons: Sort Title (cmdSortTitle), Sort Name (cmdSortName), Due Today (cmdDueToday), and Due List (cmdDueList). Sort Title and Sort Name uses VBA code, and sorts the form either ascending or descending, by title and by name respectively. Due Today and Due List uses macros, and filters the form to display
3
4871
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that the best method? Do you have a sample of how to do this?
0
1441
by: Klaus Jensen | last post by:
Hi! This has been annoying me for a while now, and I can't get it to work It is really driving me nuts! Basicly this simple webapp created to illustrate my problem, renders five buttons, and adds a handler to the click event. When a button is clicked, the background-color is set to blue.
4
4084
by: steve | last post by:
hi all, i was wondering how is it possible to add an extra box ( i think they are called boxes: upper right corner ...) in a form that will minimize it in the system tray? You know some applications have a 4th one (apart from the square , bar and X ) which contains a dot and once u click it minimizes the application to the tray. TIA
16
640
by: Picho | last post by:
Hi all, Is there any .NET way (I am not rulling out API usage) to add button(s) to a form's title bar? I found some non-.NET solutions that did actually work in VB6 but not in the ..NET forms... I tried painting, but the paintaing area provided by the form is only the client area - no visible way to paint on the title bar.
2
1925
by: sbettadpur | last post by:
Hi everybody, Hi iam strugling with more than one submit buttons with in one form here is my code <form method="post" action="Offer.php" name='issueFrm' onSubmit="return fullOfferfields();"> OFFER <input type=image src="amarok_rewind.png " title="rewind" > <input type=image src="amarok_back.png" title="back"> <input type="text" size=3 name='txt'>&nbsp;<input type=image src="amarok_next.png " title="next" >&nbsp;<input type=image...
1
2000
by: sbettadpur | last post by:
Hi everybody, Iam able to getting the submition of buttons status in Mozilla but it is not working in the IE browser Iam strugling with more than 1 submit button in a single form on The IE browser i need the post value status of each button here i have code please give a farward solution. Actuall i have 2 farward buttons and 2 backward buttons for getting records form data base and finally one is final Submit button. here is my code:
2
6986
by: RLN | last post by:
I was at this link to add a menu bar to my Access app. http://office.microsoft.com/en-s/access/HP051890341033.aspx I got the menu bar added, but had some more questions about it. In the link above, there was mention of assigning it as the "Global menu" bar, but it does not indicate how to specify a custom menu bar as the global bar. Any idea how to do this?
5
3159
fieryscream
by: fieryscream | last post by:
This is the javascript code that i have for validating a form, it raises error if the user puts in invalid information. The problem im having is when i enter: /* if(title.checked=false){ inlineMsg('radio', 'You must select a title.',2); return false; */ it brakes the code, but when i comment out the rest works fine????? function validate(form) { var name = form.name.value; var email = form.email.value;
0
8428
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
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
8748
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
8531
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
8628
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
7359
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
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2754
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
1978
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.