Hi All
I want exact functionality of commondialog box
in MS-Word goto Tools/Options/File Locations/Modify
Location.
I want to use it for setting the directory location and NOT for file
opening and saving.
Can you help me in same?
Waiting for reply.
Thanks And Regards,
KK 8 1397
KK,
Not exactly like Word, but this gives you folder selection utility.
Dot Net may have another way.
Public Declare Function SHBrowseForFolder Lib "shell32" _
(lpbi As BrowseInfo) _
As Long
Public Type BrowseInfo
hWndOwner As Long
pIDLRoot As Long
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfnCallback As Long
lParam As Long
iImage As Long
End Type
Public Const BIF_BROWSEFORCOMPUTER = &H1000 'Only returns computers. If
the user selects anything other than a computer, the OK button is grayed.
Public Const BIF_BROWSEFORPRINTER = &H2000 'Only returns printers. If
the user selects anything other than a printer, the OK button is grayed.
Public Const BIF_DONTGOBELOWDOMAIN = &H2 'Does not include network
folders below the domain level in the tree view control.
Public Const BIF_RETURNFSANCESTORS = &H8 'Only returns file system
ancestors. If the user selects anything other than a file system ancestor,
the OK button is grayed.
Public Const BIF_RETURNONLYFSDIRS = 1 'Only returns file system
directories. If the user selects folders that are not part of the file
system, the OK button is grayed.
Public Const BIF_STATUSTEXT = &H4 'Includes a status area in
the dialog box. The callback function can set the status text by sending
messages to the dialog box.
Public Declare Function SHGetPathFromIDList Lib "shell32" _
(ByVal pidList As
Long, _
ByVal lpBuffer As
String) _
As Long
Public Declare Sub CoTaskMemFree Lib "ole32.dll" _
(ByVal hMem As Long)
NickHK
"KK" <no*@moreply.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
| Hi All
|
| I want exact functionality of commondialog box
|
| in MS-Word goto Tools/Options/File Locations/Modify
|
| Location.
|
| I want to use it for setting the directory location and NOT for file
|
| opening and saving.
|
| Can you help me in same?
|
| Waiting for reply.
|
| Thanks And Regards,
|
| KK
|
|
Thanx a lot for your valuable time Nick :O)
"Nick HK" <Ni****@TungCheeWah.Invalid> wrote in message
news:bt**********@imsp212.netvigator.com... KK, Not exactly like Word, but this gives you folder selection utility. Dot Net may have another way.
Public Declare Function SHBrowseForFolder Lib "shell32" _ (lpbi As BrowseInfo) _ As Long
Public Type BrowseInfo hWndOwner As Long pIDLRoot As Long pszDisplayName As String lpszTitle As String ulFlags As Long lpfnCallback As Long lParam As Long iImage As Long End Type
Public Const BIF_BROWSEFORCOMPUTER = &H1000 'Only returns computers.
If the user selects anything other than a computer, the OK button is grayed. Public Const BIF_BROWSEFORPRINTER = &H2000 'Only returns printers.
If the user selects anything other than a printer, the OK button is grayed. Public Const BIF_DONTGOBELOWDOMAIN = &H2 'Does not include network folders below the domain level in the tree view control. Public Const BIF_RETURNFSANCESTORS = &H8 'Only returns file system ancestors. If the user selects anything other than a file system ancestor, the OK button is grayed. Public Const BIF_RETURNONLYFSDIRS = 1 'Only returns file system directories. If the user selects folders that are not part of the file system, the OK button is grayed. Public Const BIF_STATUSTEXT = &H4 'Includes a status area
in the dialog box. The callback function can set the status text by sending messages to the dialog box.
Public Declare Function SHGetPathFromIDList Lib "shell32" _ (ByVal pidList As Long, _ ByVal lpBuffer As String) _ As Long
Public Declare Sub CoTaskMemFree Lib "ole32.dll" _ (ByVal hMem As Long) NickHK "KK" <no*@moreply.com> wrote in message news:ul**************@TK2MSFTNGP09.phx.gbl... | Hi All | | I want exact functionality of commondialog box | | in MS-Word goto Tools/Options/File Locations/Modify | | Location. | | I want to use it for setting the directory location and NOT for file | | opening and saving. | | Can you help me in same? | | Waiting for reply. | | Thanks And Regards, | | KK | |
Hi,
There is a folder browser dialog included with the framework
version 1.1.
Here is a link to a framework ver 1.0 version http://windowsforms.net/downloads/gdn/FolderBrowser.zip
Ken
--------------------
"KK" <no*@moreply.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl... Hi All
I want exact functionality of commondialog box
in MS-Word goto Tools/Options/File Locations/Modify
Location.
I want to use it for setting the directory location and NOT for file
opening and saving.
Can you help me in same?
Waiting for reply.
Thanks And Regards,
KK
Thanx a lot for your valuable time Nick :O)
"Nick HK" <Ni****@TungCheeWah.Invalid> wrote in message
news:bt**********@imsp212.netvigator.com... KK, Not exactly like Word, but this gives you folder selection utility. Dot Net may have another way.
Public Declare Function SHBrowseForFolder Lib "shell32" _ (lpbi As BrowseInfo) _ As Long
Public Type BrowseInfo hWndOwner As Long pIDLRoot As Long pszDisplayName As String lpszTitle As String ulFlags As Long lpfnCallback As Long lParam As Long iImage As Long End Type
Public Const BIF_BROWSEFORCOMPUTER = &H1000 'Only returns computers.
If the user selects anything other than a computer, the OK button is grayed. Public Const BIF_BROWSEFORPRINTER = &H2000 'Only returns printers.
If the user selects anything other than a printer, the OK button is grayed. Public Const BIF_DONTGOBELOWDOMAIN = &H2 'Does not include network folders below the domain level in the tree view control. Public Const BIF_RETURNFSANCESTORS = &H8 'Only returns file system ancestors. If the user selects anything other than a file system ancestor, the OK button is grayed. Public Const BIF_RETURNONLYFSDIRS = 1 'Only returns file system directories. If the user selects folders that are not part of the file system, the OK button is grayed. Public Const BIF_STATUSTEXT = &H4 'Includes a status area
in the dialog box. The callback function can set the status text by sending messages to the dialog box.
Public Declare Function SHGetPathFromIDList Lib "shell32" _ (ByVal pidList As Long, _ ByVal lpBuffer As String) _ As Long
Public Declare Sub CoTaskMemFree Lib "ole32.dll" _ (ByVal hMem As Long) NickHK "KK" <no*@moreply.com> wrote in message news:ul**************@TK2MSFTNGP09.phx.gbl... | Hi All | | I want exact functionality of commondialog box | | in MS-Word goto Tools/Options/File Locations/Modify | | Location. | | I want to use it for setting the directory location and NOT for file | | opening and saving. | | Can you help me in same? | | Waiting for reply. | | Thanks And Regards, | | KK | |
Hi,
There is a folder browser dialog included with the framework
version 1.1.
Here is a link to a framework ver 1.0 version http://windowsforms.net/downloads/gdn/FolderBrowser.zip
Ken
--------------------
"KK" <no*@moreply.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl... Hi All
I want exact functionality of commondialog box
in MS-Word goto Tools/Options/File Locations/Modify
Location.
I want to use it for setting the directory location and NOT for file
opening and saving.
Can you help me in same?
Waiting for reply.
Thanks And Regards,
KK
* "Nick HK" <Ni****@TungCheeWah.Invalid> scripsit: KK, Not exactly like Word, but this gives you folder selection utility. Dot Net may have another way.
Public Declare Function SHBrowseForFolder Lib "shell32" _ (lpbi As BrowseInfo) _ As Long
That's why I sometimes hate X-Posts.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
* "Nick HK" <Ni****@TungCheeWah.Invalid> scripsit: KK, Not exactly like Word, but this gives you folder selection utility. Dot Net may have another way.
Public Declare Function SHBrowseForFolder Lib "shell32" _ (lpbi As BrowseInfo) _ As Long
That's why I sometimes hate X-Posts.
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Please do not crosspost questions between .NET and non-.NET groups. If your
question is about VB.NET, please use the *.dotnet.* groups. If it is about
VB6 or earlier, use the *.vb.* groups. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Pat Sheen |
last post by:
I'm a novice at designing web pages so I'm not sure how complicated
this is. I'd like a page that helps me take notes for research. It
would have something like two frames. One with a word...
|
by: KK |
last post by:
Hi All
I want exact functionality of commondialog box
in MS-Word goto Tools/Options/File Locations/Modify
Location.
I want to use it for setting the directory location and NOT for file
|
by: Frost |
last post by:
Hi All,
I am a newbie i have written a c program on unix for line by line
comparison for two files now could some one help on how i could do word
by word comparison in case both lines have the...
|
by: Dustin van de Sande |
last post by:
I'm developing a ASP.NET 2.0 web application which exports and imports Word
documents.
The functionality is implemented in a DLL project which is referenced by the
web application.
In the DLL...
|
by: dinoo |
last post by:
I would appreciate if some one can help me out.
We are using Microsoft Word's spell check functionality in one of our web
pages based on the requirement. We are using Microsoft PIA assemblies to...
|
by: jmar |
last post by:
I posted a week ago and received one response. I'm looking for the
opinion of several experienced .NET people before I proceed so I'm
posting again. Sorry for the repost...
I am updating a...
|
by: Darsin |
last post by:
What i am doing is to pull the data from a CMS and import it to Word
2007 Beta and i also have to export the data from Word 2007 Beta back
to that CMS. We have with us two Web Services of the CMS....
|
by: =?Utf-8?B?VGhvbWFzLVZD?= |
last post by:
Hello,
I am looking for specific information and sample code on the following:
I would like to know how I can use Excel and Word within (!) my C#
application. I would like to create a form with...
|
by: ppardi |
last post by:
I'm developing an addin for Word 2007 and I need to determine whether a user
saves a Word 2007 document in an older format (97-2003) after a save as is
done. The scenario is that the user starts...
|
by: Kelii |
last post by:
Access 2003, Windows XP SP2
I have an application that generates a word document populated with a
variety of fields from Access tables.
The word document is generated when the user presses a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |