Is it possible to set a title bar icon in an UltraMessageBoxManager dialog? If not, there's a feature request.
Hello.
Here is the code for a method that assigns the Icon from the current form to the UltraMessageBox.
private DialogResult ShowMessage(UltraMessageBoxInfo info) { // assume the UltraMessageBoxInfo has been passed in as 'info' Assembly asm = Assembly.GetAssembly(typeof(UltraMessageBoxManager));
// create an instance of the dialog Type type = asm.GetType("Infragistics.Win.UltraMessageBox.MessageBoxDialog"); using (Form dialog = asm.CreateInstance(type.FullName) as Form) { // initialize the dialog MethodInfo mi = type.GetMethod("InitializeDialog", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { info.GetType() }, null); object[] parameters = new object[] { info }; mi.Invoke(dialog, parameters);
// assign whatever icon you want dialog.ShowIcon = true; dialog.Icon = this.Icon;
return dialog.ShowDialog(this); } }
Hopefully this helps.
Chris
Hello Chris,
I have tried with these steps but not able to do it. Can you elaborate this please because? This is too much require for my application and its much and much urgent.
Please provide me some explanation with this post.
Thnank Your
Hi Chris,
I'm running into similar issues but mine is related to showing the dialog modally so I don't lose the window behind another if a user
clicks on another window. I can use reflection but can't get your example to work as I can't seem to instantiate a MessageBoxDialog object using reflection. Can you provide more info>?
thanks
Darren
Hello,
I have sent your feature request directly to our product management team. Our product team chooses new feature requests for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this feature request is FR12535.
If you would like to follow up on your feature request at a later point, you may contact Developer Support management via email. Please include the reference number of your feature request in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Unfortunately, it is not possible to set the caption's icon on the UltraMessageBox. To demonstrate your interest in this functionality, I would suggest entering a feature request so our product management will consider this feature for a future release.
While I don't recommend using it, you should be able to use reflection if this functionality is a requirement of your application. There are four steps to achieving it:
I hope this helps.
Thanks.