-
Common Dialog control
[Originally posted by Jonathan Barnes]
Does anybody know how to reposition the common dialog control.ÿ I cannot find any functions to do it.
thanks
-
Re:Common Dialog control
[Originally posted by modigliani]
Can't be done through normal VB. You need to use API calls. Check one of the more advanced VB forums.
-
Re:Common Dialog control (no API needed)
[Originally posted by Psycho]
Actually, You can not do that, but there's a trick. CommonDialog always places it's UpperLeft corner onto it's owner's UpperLeft corner.
The solution is quite simple. You have to make a form with a CommonDialog Control on it. If You want to show an Open, Save etc Dialog, simple place the "DummyForm's" UpperLeft corner to the location where You want to see the Dialog, then show Your dialog. DummyForm naturally have to be invisible.
Private Sub ShowDialog (iType as Integer)
ÿ ÿ 'Select Case IType
ÿ ÿ 'If 0, ShowSave etc... as You Like...
ÿ ÿ DummyForm.Visible = False
ÿ ÿ DummyForm.Move 1500, 120 ' For Example...
ÿ ÿ DummyForm.CommonDialog1.ShowOpen
End Sub
Do not forget to UnLoad DummyForm too at exitting the Application.
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