How to create a window pop up vba? I am using visual basic for my new department store system and want to get some codes to possibly perform popping up window for the total purchase of the customer. Can you share some video tutorial regarding visual basic?
Please refer to the below instructions to create a window pop-up using visual basic. You should have some knowledge about the software for performing the below steps.
1. Open your VB projects from the Visual Studio. Then after the solution explorer window opens, click and open your startup file. Then the design window should open.
2. Click the "view" from the menu and go to "toolbox". Then click on the "button" control and place a new button within the form.
3. Then click on the button you already created and then it will open a code window.
4. Then on the "method" enter the following codes and enter your own value within the quotes that you want to display.
Dim messageText As String = " "
Dim responseButtons As MessageBoxButtons = MessageBoxButtons.YesNo
Dim popupCaption As String = " "
Dim popupResult As DialogResult
popup Result =
If popup Result = System.Windows.Forms.DialogResult.Yes Then
Me. Text = "Continue Chosen"
End If
5. Click on F5 and run the commands in order to confirm the codes.
* Please refer to the below YouTube video tutorials in order to get a better idea about the process.