Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Userform without titlebar?

Hi.

Short question:
Is it possible to display an userform without it's titlebar?
And if the answer ist 'yes', how can I do this?

Thanks
Michi




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Userform without titlebar?

Hello Michi
Place this into the userform code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindowLong Lib "user32" Alias _
"GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" _
(ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function DrawMenuBar Lib "user32" (ByVal hWnd As Long) As
Long

Private Sub UserForm_Initialize()
Dim hWnd As Long, Style As Long
hWnd = FindWindow(vbNullString, Me.Caption)
Style = GetWindowLong(hWnd, -16) And Not &HC00000
SetWindowLong hWnd, -16, Style
DrawMenuBar hWnd
End Sub

HTH
Cordially
Pascal

"Michael Mueller" a écrit dans le message de
news: ...
Hi.

Short question:
Is it possible to display an userform without it's titlebar?
And if the answer ist 'yes', how can I do this?

Thanks
Michi






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Userform without titlebar?

Is it possible to display an userform without it's titlebar?

Place this into the userform code:


Thanks
Michi


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is [Group] in the titlebar of an Excel spreadsheet? dv123 Excel Discussion (Misc queries) 1 January 29th 06 07:27 PM
Full Pathname in Titlebar Greg Setting up and Configuration of Excel 3 March 25th 05 01:49 AM
Userform Titlebar Color donstock Excel Programming 1 March 4th 04 09:50 AM
Form titlebar height Phillip Reeves Excel Programming 3 January 3rd 04 02:04 PM
userform titlebar and closing form D.S.[_3_] Excel Programming 6 November 29th 03 06:26 PM


All times are GMT +1. The time now is 07:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"