Тёмный
No video :(

Advance Way To Add Minimize & Maximize Button To UserForm Using API 

rafitsolutions
Подписаться 817
Просмотров 4,4 тыс.
50% 1

This Tutorial describes a method that you can use to extend the functionality or appearance of VBA UserForms and make it more user friendly at run time.

Опубликовано:

 

3 июн 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@sanunitwaibu529
@sanunitwaibu529 Месяц назад
bro i have been following you for a long time. thanks for this!. can you please share 64-bit codes.
@sanunitwaibu529
@sanunitwaibu529 Месяц назад
thanks! i really works, but the problem it hide taskbar when in maximized mode. can you please help me on how to fix this in 64-bit operation system.
@m-squaredcontractors9720
@m-squaredcontractors9720 Год назад
Awesome, thank you! Does the light green colour on the form edge also come with the API configuration?
@rafitsolutions4533
@rafitsolutions4533 Год назад
No, it's the appearance configuration .
@m-squaredcontractors9720
@m-squaredcontractors9720 Год назад
@@rafitsolutions4533 Noted, thank you
@trader.fx1
@trader.fx1 6 месяцев назад
greetings and respect. Thanks for your great tutorials. I used this code, but considering that my Windows is 64-bit, it gives an error that the code must be updated (performance error). The code can be modified to automatically detect whether Windows is 32 or 64 .
@VBAGYAN
@VBAGYAN Год назад
What is the vba code for all conrols minimise and maximize with userform.
@trilochanjena3836
@trilochanjena3836 9 месяцев назад
how to show last login detail in userform
@rafitsolutions4533
@rafitsolutions4533 Год назад
Please download the codes here: drive.google.com/uc?export=download&id=1FERYv_AFFiz58fa0hy88kTWeqwCeVwbb
@mdshahparan1191
@mdshahparan1191 Год назад
64 bit
@johnpalmer3848
@johnpalmer3848 Год назад
@@mdshahparan1191 PtrSafe
@3pattimaster786
@3pattimaster786 2 месяца назад
@@mdshahparan1191 Option Explicit Private Declare PtrSafe Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _ ByVal hWnd As LongPtr, ByVal nIndex As Long) As LongPtr Private Declare PtrSafe Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( _ ByVal hWnd As LongPtr, ByVal nIndex As Long, ByVal dwNewLong As LongPtr) As LongPtr Private Declare PtrSafe Function FindWindowA Lib "user32" (ByVal lpClassName As String, _ ByVal lpWindowName As String) As LongPtr Private Const GWL_STYLE As Long = -16 Private Const WS_MINIMIZEBOX As Long = &H20000 Private Const WS_MAXIMIZEBOX As Long = &H10000 Private Sub UserForm_Activate() Dim hWnd As LongPtr Dim dwStyle As LongPtr ' Find the window handle of the UserForm hWnd = FindWindowA(vbNullString, Me.Caption) ' Get the current window style dwStyle = GetWindowLong(hWnd, GWL_STYLE) ' Add minimize and maximize buttons to the style dwStyle = dwStyle Or WS_MINIMIZEBOX dwStyle = dwStyle Or WS_MAXIMIZEBOX ' Set the modified style back to the window SetWindowLong hWnd, GWL_STYLE, dwStyle End Sub
Далее
Tanish holatmi?😅❤️
00:41
Просмотров 523 тыс.
Running With Bigger And Bigger Feastables
00:17
Просмотров 92 млн
Minimize and maximize in excel userform (Advance)
7:17
Toggle button to minimize and Maximize a User form
12:03
Excel VBA Userform Search and Display | Search Button
27:59
How to Add Right-Click (Context Menu) On Text Boxes
23:25
Option Buttons with Formulas in Excel
8:44
Просмотров 87 тыс.