|
|
Comments and Discussions
|
|
 |

|
Brilliant and very useful.
|
|
|
|
|

|
Hi!
I want to use this component with C++/CLI Windows Forms. How to do this?
|
|
|
|

|
Would it be possible to make it so the checkbox is checked by default and/or make it so the text can be changed?
|
|
|
|

|
Hi Nishant,
i added reference of MessageBoxHook.dll in my Windows Mobile 6 Application.
and then tried to add it in my toolbox but somehow it didn't showed up there.
Then i created an object in my code. but after compiling it is giving
the following error........
The type 'System.ComponentModel.Component' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
i've already added reference of System.dll in my application.
why is this error coming?
Please Help!!!!
Thanks in advance
tulika
|
|
|
|

|
I'm new to BCB 6 and going to find a way to change the back color of the Messagebox. But it seems hard. I;m not sure why it, say Windows, does not supply a way or just a message to do it. Since it is just a Windows's api, it seems no way to do it! I have searched Internet for the solution but cannot get it till I go here. I will study the codes and see whether it can work or not. Before I try it, I have heard all says why you don't do a messagebox yourself and call it in your codes. Yes, I really can do it that way. But I just wonder why not supply a simple way for the common use since it is the simplest way to show a message box and almost everyone tends to use that api interface? Mike
|
|
|
|

|
Well this is nice and thanks.
Aamer A. Alduais
final_zero
My Favorite Qoute
"Faliure is the beginning of Success"
Aamer A. Alduais (^_^Me^_^)
|
|
|
|

|
It positions itself on the center of the screen with CenterWindow on, not the parent form.
Or is this what it means?
|
|
|
|

|
At first: Great component!
Here my little problem:
I'm living in germany and want to use your component in my app. I do not have the Visual C++ components installed on my machine, because i'm not familiar with this language. So how can i translate the constant text "Show this dialog again?" to german?
Would be nice to have this messagetext also as a parameter.
Thanks for any help.
Ralf
|
|
|
|

|
This looks like a really handy component and I was hoping to include it in a program I'm working on. It seems to work great while debugging on my development machine, but when I deploy the application on the tablet PC that it will be running on, this control causes the application to crash on load. The demo program does the same thing. I've tried two different tablet PCs and ensured both have the .Net 2.0 framework installed. Are there any know compatibility issues with this component and XP Tablet PC Edition?
Thanks!
Michael
|
|
|
|

|
I just tested it an it works fine on my tablet PC. I do have to set the hookenabled to false in my formclosing event, but have not seen any other issue with it.
Brent
|
|
|
|

|
Guys, I am new to the Windows Forms and I like to use this enchanced MessageBox but how do you add this as component to form?
I downloaded the component one to c:\MessageBox.
Thanks for the help.
|
|
|
|

|
Hi,
Can it run under windows mobile 5.0?
|
|
|
|

|
I am using your messager in my function as
private void btnDelete_Click(object sender, EventArgs e)
{
MessageBoxManager MSGBOXMGR = new MessageBoxManager();
MSGBOXMGR.HookEnabled = true;
MSGBOXMGR.TimeOut = 5;
MSGBOXMGR.AutoClose = true;
MSGBOXMGR.AutoCloseResult = DialogResult.Yes;
MSGBOXMGR.ShowTitleCountDown = true;
MSGBOXMGR.CenterWindow = true;
if (MessageBox.Show("Do you Really Want to Delete this Record", "Deleting the Record", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
string l_ListId = txtBoxlistID.Text;
string l_ListName = txtBoxlistID.Text;
string l_ListDescription = txtBoxListDescription.Text;
if (l_ListId != "" && l_ListName != "")
{
if (g_UKWatches == null)
g_UKWatches = new clsUKWatches(g_UserName, g_Password, g_Source);
g_UKWatches.deleteList(l_ListId);
}
}
}
and I have been gacing these problems, whose print screen I am sending with this post...
Picture of Error 1
Picture of Error 2
Error is something like this:
1. No Symbols are loaded for any call stack frame. The source code cannot ne displayed
2. Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang.
This error occurs only If I am run the project from VS2K5 IDE and then close it after I run the function that uses your MessageBoxManager...
But If i run the exe directly I don't get the error message..
can u please tell me what I can do to solve this problem
o O º(`'·.,(`'·., ☆,.·''),.·'')º O o°
»·'"`»* *☆ t4ure4n ☆* *«·'"`«
°o O º(,.·''(,.·'' ☆`'·.,)`'·.,)º O o°
|
|
|
|

|
Very good, but I have one problem: some messages are truncated. Seems to remove the last word. Any idea why?
Thanks a lot!
|
|
|
|

|
I'v never throught about using HOOK to control message box, you have shown me your wisdom and creativity, great!
Thanks you very much for your actical!
|
|
|
|

|
Hi,
This control solved some of my problems, because i am working on a multiscreen application with just one graphic card with 4096 * 768 pixel resolution (splitted into 4 display 1024 x 768 each).
All standard windows dialogs will in the case be popup between screen 2 and 3, but this is not very handsome, because the screen are placed in the back of the main monitor.
Is there a way to extend your control for the
colordialog, folderbrowserdialog, fileopendialog, filesavedialog and fontdialog from asp.net 2.0 (VS 2005)
most needed is hooked and center on parent.
Is there a way to move the dialogboxes systemwide, for example, let all windows messages start at a defined point
Kind Regards
Martin gartmann
|
|
|
|

|
could you install the CBT Hook to stop a dialog from opening?
thank in advance,
gabe
|
|
|
|

|
Namaskaram Sri Nishant,
Nanhi for this very nicely done example. Would like to know more about why you can't have more than one on a thread.
best, Bill Woodruff
"The greater the social and cultural distances between people, the more magical the light that can spring from their contact." Milan Kundera in Testaments Trahis
|
|
|
|

|
Hi Nish, very good job, really impressive!!! I'm a beginner of C# and programming, OOP include. I attempt to use your DLL in my class with this code: class Class1 { public Class1(string Msg) { if (Msg == "1") {CallMsg1();} if (Msg == "2") {CallMsg2();} } private void CallMsg1() { FontDialog fd = new FontDialog(); MessageBoxManager MsgManager = new MessageBoxManager(); MsgManager.HookEnabled = true; MsgManager.CustomIcon = Icon.ExtractAssociatedIcon(@"C:\Progetti C#\WindowsApplication1\Image\Error.ico"); if (fd.ShowDialog() == DialogResult.OK) { MsgManager.TextFont = fd.Font; } MessageBox.Show("Cucù!", "Caption", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk); MsgManager.Dispose(); } private void CallMsg2() { FontDialog fd = new FontDialog(); MessageBoxManager MsgManager = new MessageBoxManager(); MsgManager.HookEnabled = true; MsgManager.CustomIcon = Icon.ExtractAssociatedIcon(@"C:\Progetti C#\WindowsApplication1\Image\Information.ico"); if (fd.ShowDialog() == DialogResult.OK) { MsgManager.TextFont = fd.Font; } MessageBox.Show("Cucù!", "Caption", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk); MsgManager.Dispose(); } But I note that I can choose the font and correctly display but after to have closed the messagebox and to have reopened it even if it allows me to choose font it newly does not change but it remains always that one of the first choose. br />Perhaps the method decided does not work or you had not previewed this? The same one happens for the custom icons. Possibly I have not understood well something? Thanks for the aid. Alessio Forconi -- modified at 5:16 Sunday 12th March, 2006
|
|
|
|

|
I use
MsgManager.HookEnabled = false;
after MessageBOx.Show();
Then it looks like it's back to null
|
|
|
|

|
Inicializer error
Krzysztof Radzimski
Analityk - Programista
Action S.A
|
|
|
|

|
Does it have .NET 2 installed on it?
Regards,
Nish
|
|
|
|

|
yes
Krzysztof Radzimski
Analityk - Programista
Action S.A
|
|
|
|

|
Very nice article and quite useful.
Paul
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
MessageBoxManager is a Windows Forms component that you can drag & drop into a Windows Forms project's main form, and it gives you enhanced message box functionality without forcing you to change your existing calls to any of the MessageBox.Show() overloads
| Type | Article |
| Licence | Ms-PL |
| First Posted | 19 Feb 2006 |
| Views | 135,230 |
| Bookmarked | 154 times |
|
|