473,473 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MessageBox.Show() after FolderBrowserDialog doesn't get activated

Hi,

I'm trying to display a MessageBox after a FolderBrowserDialog. I see that
it gets displayed, but not activated. The form is not in front and when I
have some other forms open the MessageBox is hidden behind them. The problem
seems to occur only after using the FolderBrowserDialog.

Has anyone seen this before?

Thanks
Dec 28 '06 #1
2 3140
I know the MessageBox.Show() has some overloads where you can set an
'IWin32Window owner' parameter. The MessageBox will then be shown in front
of that window. This seems to be the solution to my problem, but I can't
find a way to get the handle of the FolderBrowserDialog!

"Marcel Brekelmans" <ma****@marcel-art.comschreef in bericht
news:Zd******************************@giganews.com ...
Hi,

I'm trying to display a MessageBox after a FolderBrowserDialog. I see that
it gets displayed, but not activated. The form is not in front and when I
have some other forms open the MessageBox is hidden behind them. The
problem seems to occur only after using the FolderBrowserDialog.

Has anyone seen this before?

Thanks

Dec 28 '06 #2
Found it:

FolderBrowserDialog() also accepts an owner handle. Use the handle of the
form from which the FolderBrowserDialog is started, and also use this handle
in the MessageBox.Show() method.

"Marcel Brekelmans" <ma****@marcel-art.comschreef in bericht
news:4_******************************@giganews.com ...
>I know the MessageBox.Show() has some overloads where you can set an
'IWin32Window owner' parameter. The MessageBox will then be shown in front
of that window. This seems to be the solution to my problem, but I can't
find a way to get the handle of the FolderBrowserDialog!

"Marcel Brekelmans" <ma****@marcel-art.comschreef in bericht
news:Zd******************************@giganews.com ...
>Hi,

I'm trying to display a MessageBox after a FolderBrowserDialog. I see
that it gets displayed, but not activated. The form is not in front and
when I have some other forms open the MessageBox is hidden behind them.
The problem seems to occur only after using the FolderBrowserDialog.

Has anyone seen this before?

Thanks


Dec 28 '06 #3

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

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
1
by: Michael Howes | last post by:
I'm working in C#/.Net Desktop shortcuts to folders are now shown in the FolderBrowserDialog. Is there any way to have them show up? thanks mike
8
by: Saso Zagoranski | last post by:
Hi! I'm trying to make my own MessageBox... What I would like to know is, how the MessageBox class is implemented? I could have something like: new MyMessageBox().ShowDialog(); but I would...
1
by: alf | last post by:
Hi, I am using a FolderBrowserDialog to allow the user to select a folder as follows: FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.RootFolder =...
20
by: Peter E. Granger | last post by:
I'm having a strange problem (or at least it seems strange to me) trying to display a MessageBox in a VC++ .NET forms application. If I put the call to MessageBox::Show in the form's .h file, it...
4
by: hotmit | last post by:
I'm trying to create a program that dynamicly saves and loads path of a FolderBrowserDialog , but I ran into a problem. Since FolderBrowserDialog is not a Control, therefore it doesn't have...
2
by: Nuno Magalhaes | last post by:
Why does the MessageBox.Show function in the thread below changes the program behaviour, in other words, the APListView becomes filled with values with a call to RefreshAPListView. Without the...
6
by: Goran Djuranovic | last post by:
Hi all, I have a VB.NET windows application that uses MDI form. When I try to delete a datagrid row from one of the MDI children forms, I use a MessageBox YesNo confirmation, which, after confirmed,...
4
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, I've 2 Forms: 1. Main Form 2. Form contiaing Timer (which shows messageBox after 1 sec). I want that The Main Form, will create the Second form, and that the timer will be activated,...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.