Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

MessageBox positioning?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Torben Philippsen - 06 Oct 2004 11:33 GMT
Hi,

I want to position my MessageBox in the center of the parent form and not in
the center of the entire desktop as seems to be the default.

How would I accomplish that?

Best regards
Herfried K. Wagner [MVP] - 06 Oct 2004 13:00 GMT
"Torben Philippsen" <Torben Philippsen@discussions.microsoft.com> schrieb:
> I want to position my MessageBox in the center of the parent form and not
> in
> the center of the entire desktop as seems to be the default.

This can be accomplished using a Win32 dialog hook.  I feel sorry, but I
don't have a working .NET sample.

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/

Torben Jensen - 06 Oct 2004 13:47 GMT
> This can be accomplished using a Win32 dialog hook.  I feel sorry, but I
> don't have a working .NET sample.

Thank you for the quick reply!

Could please go into a little more details on using the win32 dialog hook.
I've never heard about that before. What should I look for?

Best regards Torben
Stoitcho Goutsev \(100\) [C# MVP] - 06 Oct 2004 14:08 GMT
Hi Torben,

There are wonderfull article hou-to-hook-messagbe box in MSDN. The author,
Dino Esposito it is not for positioning per se, but with a liitle change of
the code it can be done, I believe.

For the article follow the link below
http://msdn.microsoft.com/msdnmag/issues/02/11/cuttingedge/

The next is another article from the same author talking about windos hooks
and .NET
http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/

Signature

HTH
Stoitcho Goutsev (100) [C# MVP]

>> This can be accomplished using a Win32 dialog hook.  I feel sorry, but I
>> don't have a working .NET sample.
[quoted text clipped - 5 lines]
>
> Best regards Torben
David Shen - 12 Oct 2004 04:15 GMT
Hi,

I have the same question. Do you have sample codes that I can follow?

I looked at the article for windows hooks and tried to get it to work
without much luck.

Sample codes will be really helpful.

Thanks.

"Stoitcho Goutsev (100) [C# MVP]" wrote:

> Hi Torben,
>
[quoted text clipped - 18 lines]
> >
> > Best regards Torben
Stoitcho Goutsev \(100\) [C# MVP] - 14 Oct 2004 00:12 GMT
Hi David,
I don't have such a sample myself, but the articles I gave you have pretty
good working samples.

Signature

Stoitcho Goutsev (100) [C# MVP]

> Hi,
>
[quoted text clipped - 36 lines]
>> >
>> > Best regards Torben

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.