|
-
Jan 26th, 2008, 11:55 PM
#1
Thread Starter
Hyperactive Member
APIs Used For Fixed Single With Minimize Button
Can someone please tell me what APIs and arguements are used to create a Fixed Single style window with a minimize button? I need an example using SetWindowLong. Thank you
-
Jan 27th, 2008, 12:03 AM
#2
Re: APIs Used For Fixed Single With Minimize Button
Just set the BorderStyle to Fixed Single and the MinButton property to True
-
Jan 27th, 2008, 12:12 AM
#3
Thread Starter
Hyperactive Member
Re: APIs Used For Fixed Single With Minimize Button
I know but I need to change the window style while the program is running so I need to use SetWindowLong
-
Jan 27th, 2008, 12:14 AM
#4
Re: APIs Used For Fixed Single With Minimize Button
No you can still set the properties at runtime.
-
Jan 27th, 2008, 12:16 AM
#5
Thread Starter
Hyperactive Member
Re: APIs Used For Fixed Single With Minimize Button
This doesn't work:
Private Sub Command1_Click()
Me.BorderStyle = 1
Me.MinButton = True
End Sub
-
Jan 27th, 2008, 12:22 AM
#6
Re: APIs Used For Fixed Single With Minimize Button
It should here is an example for changing the forms borderstyle to None
Code:
Form1.BorderStyle = 0
Form1.Caption = Form1.Caption
-
Jan 27th, 2008, 12:24 AM
#7
Re: APIs Used For Fixed Single With Minimize Button
If you really must use API then have a look at the following thread...
http://www.vbforums.com/showthread.p...e+form+runtime
-
Jan 27th, 2008, 02:29 PM
#8
Re: APIs Used For Fixed Single With Minimize Button
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
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
|
Click Here to Expand Forum to Full Width
|