-
Transparent Form
Hi All
i am wanting my login form to take shape of the rounded rectangle picture
but all my code seems to make everything attached to the form except text boxes and command buttons transparent even picture boxes, how would i go about doing this
my code is as follows
SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
SetWindowPos Me.hwnd, HWND_TOPMOST, 1&, 1&, 1&, 1&, SWP_SHOWME
and i have the following in a module
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Public Const GWL_EXSTYLE = (-20)
Public Const WS_EX_TRANSPARENT = &H20&
Public Const SWP_FRAMECHANGED = &H20
Public Const SWP_NOMOVE = &H2
Public Const SWP_NOSIZE = &H1
Public Const SWP_SHOWME = SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE
Public Const HWND_NOTOPMOST = -2
Dim path As String
any help is always appreciated
thanks in advance
Rob
-
see if this help:
http://vb-helper.com/howto_elliptical_form.html
using different Region you can use the shape you want
"There are two ways to write error-free programs. Only the third one works."
Unknown
Similar Threads
-
By sarun101 in forum VB Classic
Replies: 2
Last Post: 04-20-2006, 01:55 PM
-
By maheeru in forum VB Classic
Replies: 3
Last Post: 08-09-2005, 12:59 PM
-
By Al Guten in forum .NET
Replies: 0
Last Post: 04-11-2002, 06:48 PM
-
By ivo in forum VB Classic
Replies: 2
Last Post: 09-26-2000, 12:54 PM
-
By ivo in forum VB Classic
Replies: 0
Last Post: 09-26-2000, 06:46 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks