473,399 Members | 4,177 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,399 software developers and data experts.

How to have user can only control aboutbox?

Hi All,

It is very convenient to make a About box in C#.

My problem is how to let user must to click OK to close this About
box. ( user should not allow to click any other place at this time )

Thank you!

Best regards,
Boki.

Jul 13 '07 #1
7 3800
if you are making windows app, you can open the aboutbox from with
showdialog(). like this

Form aboutbox = new Form();
aboutbox.ShowDialog();

Jul 13 '07 #2
How are you showing the About box?

Try calling .ShowDialog(this)
[where this refers to the calling Form]

Marc
Jul 13 '07 #3
On 7 13 , 5 24 , "Marc Gravell" <marc.grav...@gmail.comwrote:
How are you showing the About box?

Try calling .ShowDialog(this)
[where this refers to the calling Form]

Marc
Hi

I have tried, but I can still click anywhere outside the about box.
(original I used .show() )

Boki.

Jul 13 '07 #4
ShowDialog with an owner will block that owner until you leave the
modal form. *where* can you click? What is the setup here? (how many
forms open at once).

If you mean you don't want the user to be able to do anything *at all*
(i.e. blocking other apps aka system modal) until closed, then simply:
don't do this

Marc
Jul 13 '07 #5
On Jul 13, 5:54 pm, "Marc Gravell" <marc.grav...@gmail.comwrote:
ShowDialog with an owner will block that owner until you leave the
modal form. *where* can you click? What is the setup here? (how many
forms open at once).

If you mean you don't want the user to be able to do anything *at all*
(i.e. blocking other apps aka system modal) until closed, then simply:
don't do this

Marc
sorry, I still can click 'start' button of Windows, is that correct ?

I want use can only click ok of my messagebox, I believe I missed some
setting... but I don't konw... yet. :)

Boki.

Jul 15 '07 #6
On Jul 15, 10:41 am, Boki <bokit...@ms21.hinet.netwrote:
On Jul 13, 5:54 pm, "Marc Gravell" <marc.grav...@gmail.comwrote:
ShowDialog with an owner will block that owner until you leave the
modal form. *where* can you click? What is the setup here? (how many
forms open at once).
If you mean you don't want the user to be able to do anything *at all*
(i.e. blocking other apps aka system modal) until closed, then simply:
don't do this
Marc

sorry, I still can click 'start' button of Windows, is that correct ?

I want use can only click ok of my messagebox, I believe I missed some
setting... but I don't konw... yet. :)

Boki.
You realize that this is non-standard behaviour: you want to make the
dialog box modal not only for your application but for the whole
machine. In effect, you want your single application take control of
the whole machine for a while. Do you really want to prevent the user
from launching any other application, from doing anything else with
any other program, until they dismiss your "About" dialog?

What does your application do, that it is much more important than
anything else on the user's machine?

Jul 15 '07 #7
On Mon, 16 Jul 2007 18:03:59 -0700, Boki <bo******@ms21.hinet.netwrote:
When I were using Vista, I can saw this behavior when I installed new
program.
I think my app should not use this feature for now, but curious the
implement method.
It sounds as though you are thinking of the UAC user interface that's
built into Vista. This was implemented for a very specific need: to alert
users in a very clear way that the operating system has shifted modes
temporarily and is requiring the user to provide guidance regarding some
potentially dangerous operation (for example, installing software or
running certain kinds of software).

This is definitely not something that normal applications should do. It's
a behavior that is implemented in an integral way by the operating system,
reserved for use only by the operating system.

Pete
Jul 17 '07 #8

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

Similar topics

5
by: Henke | last post by:
I added a project to my solution that contains a user control. Now I 'd like to add the user control from that project to a form in my solution. The problem is that the control doesn't gets added...
3
by: Z D | last post by:
Hello, I've created a winform user control that, at some point in the default constructor, looks for a specifc file. When I try to load the user control to my winform's form during design time...
0
by: Alain | last post by:
Hello, I am trying to dynamically add many instances of a user control inside a placeholder. The user control exposes an event raised when a button is pushed. How can I handle such event for...
11
by: Tom | last post by:
Hi all, I posted the same question one week ago in http://communities.microsoft.com/newsgroups/previewFrame.as p? ICP=msdn&sLCID=us&sgroupURL=microsoft.public.dotnet.framewo...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
7
by: moondaddy | last post by:
I'm building a page in vb.net with several user controls on it. I'm using user controls instead of a frames page since I've seen this recommended many times in this user group. I want just one of...
2
by: hansiman | last post by:
I'm puzzled! In a web user control (ascx) I embed some server controls. I drop the web user control onto an aspx page. In the web user control's code behind I would like to manipulate the user...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
3
by: Jonathan Wood | last post by:
I could really use some help on this. First of all, I want to create a Web control where I render the control completely from scratch based on information from a database. In the book...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
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...

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.