User Tools

Site Tools


k12:k12.2:k12.2.2:start

12.2.2 Form - Screen Pop

The method

ShowPopup( [ X As Integer, Y As Integer ] ) As Integer

opens an existing window in the project folder as a (borderless) pop-up window for another window. If the optional coordinates X and Y are specified, the pop-up window is displayed at position (X|Y), where this position represents the upper left corner of the pop-up window. Otherwise the pop-up window is displayed under the mouse pointer.

In the following example, two pop-up windows are used to display an analogue clock and to display a help text for the project window (start form):

B1
Figure 12.2.2.1: Double-clicking on the shape shows the clock in a pop-up window.

B2
Figure 12.2.2.2: A screen pop as a help window

After a double-click on the window area, the analogue clock is displayed and a click on the button with the question mark symbol displays the help in a pop-up window.

With special care and in a suitable manner, the information for the programme user that the programme offers the possibility to open pop-up windows must be realised.—-Note:
In this project to demonstrate the creation and display of pop-up windows, changing the image width, transparency and image type does not result in any changes to the displayed image in the PictureBox!

Download

Project

Download

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.
k12/k12.2/k12.2.2/start.txt · Last modified: by 127.0.0.1