Popup Windows Index


Click for Cancellable In-Place Edit Popups

Cancellable In-Place Edit Popups

Controls like the ListView and the Outlook ListBar allow you to edit items in place by either double-clicking them or through a context UI feature such as a menu. This article provides a class which helps with the tricky parts of implementing in-place editing, and demonstrates how to use it to create an editable ListBox. VB.NET and C# code provided.

  more...


Last Updated: 2 November 2003


Click for Use .NET Forms as Popup Windows

Use .NET Forms as Popup Windows

This article provides a reusable class which you can use to convert a form into a popup which works in the same way as the drop-down portion of a ListBox or the popup controls for picking colours or tables in Office. In addition to wrapping all the functionality you need to ensure the popup is cancelled if the user clicks out of the popup or alt-tabs to another application, it also ensures the title bar of the application stays in focus whilst the drop-down is displayed. VB.NET and C# code provided.

  more...


Last Updated: 1 November 2003


Click for Floating Controls, Tooltip-style

Floating Controls, Tooltip-style

This article started when I was implementing the VS.NET ListBar control. If you move the mouse over an item whose text is partially obscured in the VS.NET ListBar, a popup appears to show more of the text. The same technique is also implemented in the ListView and TreeView controls using a ToolTip. Whilst the tooltip control provided in the .NET Framework is easy to use, it isn't customisable to perform these sort of effects. Hence, the control provided in this article, which derives from a standard .NET Framework Control and allows the control to be shown floating anywhere on the screen. In addition to that, it behaves as if it were transparent to any mouse events, so events over the control are transmitted directly to any underlying control. VB.NET and C# versions of the code are provided.

  more...


Last Updated: 1 November 2003