filmov
tv
VB .Net Tutorials: How to disable the exit button and Alt-F4
Показать описание
VB .Net Tutorials: How to disable the exit button and Alt-F4. This is a very simple way to disable the exit button in Visual Basic. It will stop the exit button from being pressed and will disable Alt-F4. Though this will not disable a form button closing the window.
Copy and Paste Code:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
Const CS_NOCLOSE As Integer = &H200
cp.ClassStyle = cp.ClassStyle Or CS_NOCLOSE
Return cp
End Get
End Property
Copy and Paste Code:
Protected Overrides ReadOnly Property CreateParams() As CreateParams
Get
Dim cp As CreateParams = MyBase.CreateParams
Const CS_NOCLOSE As Integer = &H200
cp.ClassStyle = cp.ClassStyle Or CS_NOCLOSE
Return cp
End Get
End Property
Visual Basic (VB.NET) – Full Course for Beginners
Visual Basic.NET Programming. Beginner Lesson 1. Hello Visual Studio
VB.NET Tutorial For Beginners - Creating Classes (Visual Basic Programming)
VB.NET vs C# - A comparison of the two languages, how they are different, and where they are going
How to Create Simple Login Form in VB.NET Without Connecting to Database?
Advanced VB.NET Programming – Threads, Events and Delegates (Part 1)
VB Beginner 1 - What is VB and What is .NET?
VB.NET TUTORIALS: How to create a Login Form
VB.net tutorial| Add group in report RDLC with subtotals and grand totals in visual studio 2015
VB.NET Tutorial - Drag and Drop
VB.NET Tutorial For Beginners - Simple Picture / Image Viewer (Visual Basic .NET)
Visual Basic .NET Tutorial 1 - Downloading Visual Studio and Creating First VB Program
VB.NET Tutorial - Connect & Query a Microsoft SQL Server Database - Part 1
VB.NET Tutorial 19 - Functions (Visual Basic 2008/2010)
WinForms with Visual Basic inside Visual Studio 2022 | VB.Net Getting Started
VB.NET Tutorial 18 - Subs (Visual Basic 2008/2010)
VB.NET Tutorial - How to Connect Access Database to VB.NET | FoxLearn
VB.NET Tutorial 32 - Application Settings (Visual Basic 2008/2010)
Visual Basic .NET Tutorial 8 - How to use RadioButtons and CheckBoxes in Visual Basic
VB.NET Tutorial 23 - Timers (Visual Basic 2008/2010)
Master Web Services in VB.Net - Quick Tutorial
VB.NET Tutorial #1 - How to Download & Install (Visual Basic.NET)
Visual Basic .NET Tutorial 44 - How To Use DataGridView (Adding rows)
VB.NET Tutorial 3 - Variables (Visual Basic 2008/2010)
Комментарии