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 1396
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: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |