This project has moved. For the latest updates, please go here.

Modeless?

Jan 18, 2008 at 11:22 PM
I must say that I really have enjoyed your control. The one thing that I have noticed right off is that you use the same naming and design practice that I do.

What I am looking for is if you have determined a way to have the infobox load modeless. I have attempted to do this several different ways, but have been unsuccessful. I have a requirement for a messagebox to be both modal and modeless.

Any help would be appreicated.
Jan 19, 2008 at 2:49 PM
It would be easy to add this feature, as InformationBox is not based on the standard MessageBox. If you wish, i can add this on my todo list.

Thanks for your interest.
Jan 19, 2008 at 7:35 PM
Actually, I had time to do this today. You can now use the version 0.6.7.0.
Jan 19, 2008 at 10:25 PM
I will not be able to review the differences until Monday when I am back at work. But I did not want to wait to thank you very much!

Again thanks, and this is probably one of the best components I have seen in a long time.
Jan 20, 2008 at 10:45 AM
You are most welcome :)

I really appreciate your feedback.
Jan 21, 2008 at 2:01 PM
Thought I would share the opacity that I added...


private void SetOpacity()
{
switch (_opacity)
{
case InformationBoxOpacity.Faded50:
Opacity = 0.5;
break;
case InformationBoxOpacity.Faded60:
Opacity = 0.6;
break;
case InformationBoxOpacity.Faded70:
Opacity = 0.7;
break;
case InformationBoxOpacity.Faded80:
Opacity = 0.8;
break;
case InformationBoxOpacity.Faded90:
Opacity = 0.9;
break;
case InformationBoxOpacity.NoFade:
Opacity = 1.0;
break;
default:
break;
}
}

/// <summary>
/// Specifies constants defining opacity for <see cref="InformationBoxForm" />.
/// </summary>
public enum InformationBoxOpacity
{
/// <summary>
/// Opacity is at 50%
/// </summary>
Faded50,
/// <summary>
/// Opacity is at 60%
/// </summary>
Faded60,
/// <summary>
/// Opacity is at 70%
/// </summary>
Faded70,
/// <summary>
/// Opacity is at 80%
/// </summary>
Faded80,
/// <summary>
/// Opacity is at 90%
/// </summary>
Faded90,
/// <summary>
/// Opacity is at 100%
/// </summary>
NoFade,
}
Jan 21, 2008 at 8:12 PM
Thanks, It will be available in the next release.
Jan 21, 2008 at 8:58 PM
Done.

For your information, the next major release is currently under (heavy) development. It will add the possibility to set contexts for the InformationBoxes. For example, you will be able to set once and for all the style, the colors, etc of the boxes throughout an entire application. I will also add the possibility to override those settings for a particular box.