Extended MessageBox Library (assembly) for .NET

Apr 30, 2010.
Summary: With this library .NET applications can control a wide variety of MessageBox dialog settings.

That includes adjusting initial position and size of the dialog, selecting message font and font color, filling dialog background with solid colors or bitmap files, modifying button captions & fonts, loading dialog icons from external files, accepting text input, opening web pages, dialog timeout and more.

Once configured, the extended features are persistent through the application‘s session affecting each regular MessageBox.Show call.

 
Regular price:
  Buy this solution for $30.00
Instant download link by email.
 
Price for subscribers:
  Buy this solution for $20.00
Instant download link by email.
 
Download demo
Contents
A picture is worth a thousand words
Features
Download Help file
Best practices
Quick start with a sample code
Quick start with more advanced sample code
Quick start with XMsg configuration utility
Contact Information

Full version includes complete source code (VS2005 C# Class Library project).

A download link will be automatically emailed to the email address you provide on PayPal page for the purchase transaction.

A picture is worth a thousand words     ..top
Features     ..top
  • Adjustable message font and font color. The dialog resizes automatically to accomodate messages in fonts larger than regular.
  • Dialog background can be painted with solid colors, hatch patterns, bitmap files
  • Dialog icon can be loaded from ICO file, resource file (EXE, DLL), or a file type (e.g. *.pdf)
  • Dialog‘s width and height can be either restricted or forced to specified values
  • Dialog window can be positioned at a specified point, or aligned with monitor border
  • A click on the message opens a web page in default browser
  • A click on the icon opens a web page in default browser
  • Button captions and fonts can be user-defined
  • Buttons can be disabled
  • Buttons can have tooltips
  • Three additional buttons available
  • Additional controls available: Text Input, CheckBox, WebLink
  • The dialog can be closed on timeout
  • OS supported: Windows 2000 / XP / 2003 / Vista / 7
Download Help file     ..top
Depending on PC‘s security settings, the Help File may need to be unblocked after downloading.

Download Help File for the Extended MessageBox .NET Assembly

Best practices     ..top
Add XMsgLib reference to your .NET Windows Application project.

Style MessageBoxes in your application in unique and creative way

  • Add code configuring extended MessageBox features to the Init section of the application.
  • When application runs, all MessageBox dialogs appear on screen having extended features configured uniformly: dimensions, position, fonts, backgrounds etc.

Present user with more than 3 choices

  • Adjust dialog button captions (for example [Yes, No and Cancel] becomes [Forward, Back and Stop] )
  • Activate up to 3 additional buttons
  • Draw user attention to a button by choosing a different font.
  • Add tooltips to some buttons.
  • Disable some of dialog buttons optionally.
  • Enable CheckBox control. Its Checked status can be retrieved after the dialog returns control to the application.

Use wide variety of icons and backgrounds

  • Display dialog icons contained in ICO files, in resource files, and linked to file types.
  • Paint dialog background with solid colors, hatch patterns, and with bitmap files.

Use MessageBox for collecting user input

  • Enable Text Input control each time a text input from user is expected: password, error description, and so on.

Automatically close MessageBox after a specified amount of time

  • Assign Timeout parameter (milliseconds). This can make a difference for an application running in occasionally unattended mode.

Link MessageBox dialog to the Web

  • Enable Web Link control
  • Assign web link to the dialog icon.
  • Assign web link to the dialog message.
Quick start with a sample code     ..top
?
private void TestXMsgDialog()
{
?
    //Message settings
    DlgMgr.AssignMessageFont("Arial", 27, 0, 1, 0, 0, 0);
    DlgMgr.MessageFontColor = Color.Navy;
?
    //Turning dialog extended features on
    //will affect all consecutive MessageBox.Show calls
    DlgMgr.DlgMonitorEnabled = true;
?
    MessageBox.Show("This is a test!",
        "Extended MessageBox .NET Assembly",
        MessageBoxButtons.OKCancel,
        MessageBoxIcon.Information);
?
}
?
A dialog produced by a sample code above:
Quick start with more advanced sample code     ..top
?
private void TestXMsgDialog()
{
?
    //Dialog Dimension settings
    DlgMgr.AssignDlgMaxSize(570, 0);
?
    //Dialog Position settings
    DlgMgr.AssignDlgPosition(100, 200,
        XMessageBoxPositionMode.AbsolutePosition);
?
    //Dialog Button settings
    DlgMgr.AssignButtonCaption(XMessageBoxButton.ButtonAux01, "Download");
    DlgMgr.AssignButtonCaption(XMessageBoxButton.ButtonCancel, "Exit");
    DlgMgr.AssignButtonCaption(XMessageBoxButton.ButtonOk, "Next");
    DlgMgr.AssignButtonFont(XMessageBoxButton.ButtonOk,
        "", 0, 0, 1, 0, 0, 0);
?
    //Dialog Background settings
    DlgMgr.UdfBackcolorsEnabled = true;
    DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground.DlgWindow,
        Color.FromArgb(-399668));
    DlgMgr.LoadBackColorFromSolidColor(XMessageBoxBackground.ToolBarWindow,
        Color.FromArgb(-4082785));
?
    //Dialog Icon settings
    DlgMgr.UdfIconsEnabled = true;
    DlgMgr.LoadIconFromFileType(XMessageBoxIcon.UserIcon, "*.cs");
?
    //Web Link Control settings
    DlgMgr.EnableHrefCtrl(
        "http://www.news2news.com/vfp/?solution=5",
        "Extended MessageBox .NET web page",
        Color.FromArgb(-16776961));
?
    //CheckBox Control settings
    DlgMgr.EnableCheckBoxCtrl("Skip Intro", false);
?
    //Message settings
    DlgMgr.AssignMessageFont("Segoe UI", 14, 0, 0, 0, 0, 0);
    DlgMgr.MessageFontColor = Color.FromArgb(0x32, 0x32, 0x32);
?
    //Turning dialog extended features on
    //will affect all consecutive MessageBox.Show calls
    DlgMgr.DlgMonitorEnabled = true;
?
    MessageBox.Show("MessageBox Class displays a message box " +
        "that can contain text, buttons, and symbols " +
        "that inform and instruct the user.",
        "Extended MessageBox .NET Assembly",
        MessageBoxButtons.OKCancel,
        MessageBoxIcon.Information);
?
    //DlgMgr members populated upon dialog closing:
?
    //DlgMgr.ClosedOnTimeout
        //returns True when the dialog gets closed on a timeout;
        //otherwise returns False
?
    //DlgMgr.AuxButtonPressed
        //returns aux.button ID (11, 12, or 13) if that closed the dialog;
        //otherwise returns zero
?
    //DlgMgr.CheckBoxState
        //returns CheckBox control‘s Checked state;
        //returns False when the control was not shown
?
    //DlgMgr.TextInputValue
        //returns text entered in the Text Input control;
        //returns empty string when the control not shown
?
}
?
A dialog produced by a sample code above:
Quick start with XMsg configuration utility     ..top
This utility generates comprehensive VB and C# code that you can copy and paste in your project.

Contact Information     ..top
1361529 Ontario, Inc.
Anatoliy Mogylevets
E-Mail: [email protected]
时间: 2024-10-18 04:07:34

Extended MessageBox Library (assembly) for .NET的相关文章

The C5 Generic Collection Library for C# and CLI

The C5 Generic Collection Library for C# and CLI https://github.com/sestoft/C5/ The C5 Generic Collection Library C5 is a library of generic collection classes for C# and other CLI languages and works with Microsoft .Net version 2.0 and later, and Mo

所有的GUI Toolkit,类型之多真开眼界

The GUI Toolkit, Framework Page User interfaces occupy an important part of software development. This page provides a comprehensive reference on toolkits for building graphical user interfaces (GUIs), with emphasis on resources for Free Software (Op

开源sip server & sip client 和开发库 一览

http://www.voip-info.org/wiki/view/Open+Source+VOIP+Software http://blog.csdn.net/xuyunzhang/article/details/26859341 Asterisk Asterisk is an open source framework for building communications applications. Asterisk turns an ordinary computer into a c

pkg-config 用法

在进行使用fuse 2.9写程序的时候,遇到了pkg-config 命令和 .pc 文件.本篇博客就具体说明一下pkg-config 命令是什么? 我们首先看一下: gcc -Wall hello.c `pkg-config fuse3 --cflags --libs` -o hello [[email protected] pkgconfig]# cat fuse.pc prefix=/usr exec_prefix=/usr libdir=/usr/lib64 includedir=/usr

PAiC++ April 10, 2019 Boggle Game

PAiC++ April 10, 2019Assignment 4 : Boggle GameThe Game of BoggleThe Boggle board is a 4x4 grid onto which you shake and randomly distribute 16 dice. These6-sided dice have letters rather than numbers on the faces, creating a grid of letters from whi

C# DES 加解密

using System; using System.Text; using System.Security.Cryptography; using System.Diagnostics; using System.IO; using System.Reflection; using System.Windows.Forms; namespace FirstEliteCSFileEncoder { class Program { /// <summary> /// DESEncrypt加密解密

Entity Framework Extended Library (EF扩展类库,支持批量更新、删除、合并多个查询等)

今天乍一看,园子里居然没有关于这个类库的文章,实在是意外毕竟已经有很多介绍EF使用的文章了. E文好的可以直接看https://github.com/loresoft/EntityFramework.Extended 也可以在nuget上直接安装这个包,它的说明有点过时了,最新版本已经改用对IQueryable<T>的扩展,而不是DbSet<T>(已经标记为弃用),所以跟我一样有隔离癖好的就可以大胆使用了.下面介绍如何批量删除.更新.查询. 批量删除 本来我们需要这样删除 ? //

Entity Framework Extended Library

扩展了实体框架的功能类库. https://github.com/loresoft/EntityFramework.Extended 1批量更新/删除 1)删除 //delete all users where FirstName matches context.Users.Delete(u => u.FirstName == "firstname"); 2)更新 //update all tasks with status of 1 to status of 2 context

EntityFramework和EntityFramework.Extended使用说明——性能,语法和产生的sql

环境说明:EntityFramework 6.1.3和.Net Framework4.5性能注意事项:https://msdn.microsoft.com/zh-cn/library/cc853327.aspx比较精髓的一点:查询执行的各个阶段中的准备查询,每个唯一查询一次.包括编写查询命令.基于模型和映射元数据生成命令树和定义所返回数据的形状的成本. 因为实体 SQL查询命令和 LINQ 查询现已缓存,所以,以后执行相同查询所需的时间较少. 如果有缓存的话,那么查询命令转成sql语句的性能会进