473,322 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

stay on top form

I need to show a litte advertisment window that remains on top until
something happens. I'm trying to use .Show or ShowDialog but these windows
go to back when I click any area of the back main window.
I need some advice, please
Carmen
Nov 16 '05 #1
4 6837
Hi Carmen,

TopMost = true;

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
I did with BringToFront.
Now, I need to eliminate the "close" form icon because I don't want the form
to be closed by the user.
Thank you for your help!

"Morten Wennevik" <Mo************@hotmail.com> escribió en el mensaje
news:opr9dkc1lkklbvpo@morten_x.edunord...
Hi Carmen,

TopMost = true;

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

Nov 16 '05 #3
Hi Carmen,

This are the options I select when I create a splash screen, you can use
them for your nag screen.

this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "splash";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScree n;
this.TopMost = true;
You can set them using the designer or you can just include them in the
InitializeComponent() method where the rest of the form's properties are
set , usually at the end of the method.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"carmen" <ce*********@yahoo.es> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I did with BringToFront.
Now, I need to eliminate the "close" form icon because I don't want the form to be closed by the user.
Thank you for your help!

"Morten Wennevik" <Mo************@hotmail.com> escribió en el mensaje
news:opr9dkc1lkklbvpo@morten_x.edunord...
Hi Carmen,

TopMost = true;

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


Nov 16 '05 #4
thank you !!

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
escribió en el mensaje news:uS**************@tk2msftngp13.phx.gbl...
Hi Carmen,

This are the options I select when I create a splash screen, you can use
them for your nag screen.

this.ControlBox = false;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "splash";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScree n; this.TopMost = true;
You can set them using the designer or you can just include them in the
InitializeComponent() method where the rest of the form's properties are
set , usually at the end of the method.

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"carmen" <ce*********@yahoo.es> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
I did with BringToFront.
Now, I need to eliminate the "close" form icon because I don't want the

form
to be closed by the user.
Thank you for your help!

"Morten Wennevik" <Mo************@hotmail.com> escribió en el mensaje
news:opr9dkc1lkklbvpo@morten_x.edunord...
Hi Carmen,

TopMost = true;

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



Nov 16 '05 #5

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

Similar topics

3
by: Dung Ping | last post by:
I came across following code in a tutorial. I originally thought the word 'stay' in (!stay) was not important, and could be replaced by another word. The negation mark (!) was doing the whole...
1
by: PerryC | last post by:
I have a form that by pressing a button, it opens up a query. I then have the code to close the initial form. Then, this put the query behind the main menu. Is there a code to add for this?: ...
2
by: JingleBEV | last post by:
Hi all, I want to make a form stay floating on top of all other forms, due to its importance. How can I achieve this? Thanks. Jing.
2
by: gozitash | last post by:
I want a window always stay on top of others, how I do it?
2
by: Krzysztof Karnicki | last post by:
I would like develop Form on my Windows Application, that is going to notify the user, just like Microsoft Office 2003 shows that there are new mail coming. When I use System.Windows.Forms.Form and...
4
by: MrNobody | last post by:
I'd like windows spawned off my by main window to always stay above that main window, even when you give focus to it... how would I do this? The only property I find is one which makes that window...
1
by: Dustin II. | last post by:
Hello, I need to make a small web form stay on top of ALL other windows. I use this web form for data entry. Is there an easy way to do it with a java or vb script? Or can I use hwnd with an api...
4
by: Robin Tucker | last post by:
How can I make my form stay on top of all the other forms in my application? I don't want the form to stay on top in Windows as a whole, just be on top of all the other forms in the given...
2
by: Mike L | last post by:
The child form can be dragged out of the Parent form. I set the child form to IsMdiContainer = False and the Parent Form IsMdiContainer = True. I also coded in the Parent Form on load, Dim f As...
1
by: mattscho | last post by:
Re: Filter By From, Apply Filter, Remove Filter Buttons in a Form. -------------------------------------------------------------------------------- Hi All, Trying to create a set of 3 buttons in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.