Click to See Complete Forum and Search --> : [2005] StartPosition for CommonDialogs?
tim8w
May 9th, 2008, 04:03 PM
Does anyone have sample code on how to set the StartPosition for the CommonDialogs? In particular, I'm looking to create another class that inherits from ColorDialog and add the StartPosition functionality. I have seen a rather complicated way done in C# for the OpenFileDialog. Has no one done this for VB.Net yet?
dglienna
May 9th, 2008, 04:45 PM
In vb6 I just created a small form that served as my CDC controller. I'd just create an instance of it, put the right CDC on it, inputs the data, and destroys the form, passing the data back.
You can load it and then move it before showing it
HanneSThEGreaT
May 12th, 2008, 01:45 AM
This article will give you a great background on the logic used. In this example, the author specifically uses the OpenFileDialog. Although this is in C#, it will still be helpful - prhaps give you more light on the matter.
http://www.codeproject.com/KB/dialog/OpenFileDialogEx.aspx
I hope it helps! :)
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.