Folderbrowserdialog Unmasked: Everything You Wanted to Know About the Folder Browser Component From .net Framework
Original Article :http://www.ssware.com/articles/folderbrowserdialog-unmasked-everything-you-wanted-to-know-about-the-folder-browser-component-from-dotnet-framework.htm
Introduction
The FolderBrowserDialog, available as part of the .Net framework, provides a folder browser component for your C# and VB.Net applications. The UI consists of a modal dialog which contains a tree control displaying all the files and folders on the system. The user can then browse and select a folder from the tree. The full path of the selected folder is then returned.
Basic Usage
To display a folder explorer UI to the user, a FolderBrowserDialog instance is created and the ShowDialog method is called. This shows the modal dialog containing the folder browser control (tree) and an OK and Cancel button. If the user selects a folder and clicks the OK button, the ShowDialog method returns DialogResult.OK and the SelectedPath property contains the full path of the selected folder. If the user clicks the Cancel button, the ShowDialog method returns DialogResult.Cancel.
Advanced Usage
The FolderBrowserDialog has some additional features such as limiting the view of the file system that is displayed to the user, pre-selecting a folder when the dialog is first displayed and displaying a button to allow the user to create a new folder.
The RootFolder property can be set to the full path of the folder which is to be displayed as the root of the tree control of the folder browser component. For example, if this property is set to Environment.SpecialFolder.Personal, only folders from the 'My Documents' are displayed in the tree, so the user can only select 'My Documents' or its sub-folders.
Prior to displaying the folder browser control, the SelectedPath property can be set to the full path of a folder causing that folder to be pre-selected in the folder browser tree. For example, when this property is set to "c:", the node corresponding to the c: drive is pre-selected in the tree when the dialog is first displayed.
If the ShowNewFolderButton property is set to true, then, in addition to the folder browser tree control, and the OK and Cancel buttons, the folder browser dialog also displays an additional 'New Folder' button which when clicked, creates a new folder under the currently selected folder.
Limitations
While the folder browser component is a handy way to allow the users to browse and select folders, it suffers from many limitations, some of them preventing the component from being of practical use in applications.
Modal Functionality
The folder browser component of the most obvious drawback is that it is displayed in the form of a modal dialog user interface. Displayed, it will prevent the rest of the application until the user selects a folder. As long as the dialog box is displayed, there is no input (keyboard or mouse click) In addition to occur in the dialog box. The user must input may appear before the caller identification or the Cancel button.
This is a very annoying and limited FolderBrowserDialog function. Users are likely to be irritated, and tired when they interact with a modal dialog box each time they want to explore and select a folder. A non-modal user interface controls can be the application itself is a form or dialog box, which is a more user-friendly display of the same user-friendly way.
No Virtual (Non-file system) folders
The FolderBrowserDialog does not allow the user to select virtual (Non-file system) folders such as the Control Panel or My Computer. It only allows the user to select a file system path such as "c:" or "c:windows".
No Files
The component does not allow the user to select files. This is a major drawback since there are many circumstances where the user may need to select a file while still using the tree UI to browse to that file.
Limited Choice of RootFolder
The root folder of the folder browser control can be only set to one of the 'special folders' defined by Windows such as the 'My Documents' or 'My Computer'. This is a major limitation since this means you cannot set the root folder to a path such as the "d:" drive.
No Check Boxes
The folder explorer tree in the FolderBrowserDialog cannot show check boxes next to nodes. Ability to show multi-state check boxes can be a very handle feature for such a control.
No Filtering
The FolderBrowserDialog has no support for filtering. For example, it is not possible to display only network folders or only shared folders or only folders starting with the string "Documents" or files having a particular extension.
No Custom Controls
When using FolderBrowserDialog, you are only limited to the actual folder tree control manager to identify, cancel, and the New Folder button and description tags. This is a can not add custom control dialog box. This will be useful, in many cases, such as when you want to display thumbnails / preview of the selected file / folder, or any other relevant information.
No Appearance Control
The appearance of the FolderBrowserDialog and its constituent controls cannot be changed. Neither can attributes of individual folders show in the folder explorer control be changed. For example, it is not possible to change the background color of the tree control or to set the font and color of individual nodes/folders in the tree.
No Custom items
The FolderBrowserDialog cannot display external/custom items in the folder explorer tree. For example, it may be necessary to display items from an FTP location in addition to the file system items. This is not possible with the FolderBrowserDialog.
No Lockdown
The FolderBrowserDialog operations can freely Folder. The user can rename the folder, go drag
Beyond The FolderBrowserDialog : The FolderView Control
The Folder View Control brings a Windows Explorer-like folder browser component to your applications complete with AutoUpdate, dragdrop, icons, context menus, non-filesystem items, default key-handling, info tips and rename. It features powerful behavior control and customization functionality takes it miles ahead of Windows Explorer by adding features like filtering, checkboxes, custom items, more than one root node, dragdrop control and customization of default context menus, display names, icons and more tips.
The FolderView control is a UI control which can be dropped right inside your own forms and dialogs. A non-modal file & folder browsing/selection experience right inside your own dialogs and forms is something that users will appreciate and find intuitive and simple.
Additionally, FolderView overcomes all the limitations of the FolderBrowserDialog and provides far greater and advanced features and functionality than the FolderBrowserDialog. The following table is a quick comparison of the FolderView Control with the FolderBrowserDialog.
Drop-In Windows Explorer like folder browser functionality.
FolderView Control : Yes
FolderBrowserDialog : Modal UI. The component cannot be dropped in your own form.
- Complete Windows Explorer functionality include a file/folder browsing listview (similar to Windows Explorer's right-side) and a drive selection control (similar to Windows Explorer's address bar)
FolderView Control : Yes. As part of Shell MegaPack
FolderBrowserDialog : No
- Ability to select virtual (Non-file system) folders
FolderView Control : Yes
FolderBrowserDialog : No
- Ability to specify any and all folders as root.
FolderView Control : Yes
FolderBrowserDialog : No
- Ability to show files as well as folders.
FolderView Control : Yes
FolderBrowserDialog : No
- Multi-state check boxes
FolderView Control : Yes
FolderBrowserDialog : No
- Filtering capabilities
FolderView Control : Yes
FolderBrowserDialog : No
- Custom controls
FolderView Control : Yes
FolderBrowserDialog : No
- Appearance Control
FolderView Control : Colors and appearance of the control as a whole and of individual folders/files can be changed.
FolderBrowserDialog : No.
- Custom Items
FolderView Control : Yes
FolderBrowserDialog : No
- Prevent renaming, drag-drop, context menus
FolderView Control : Yes. For all folders or on a per-folder basis.
FolderBrowserDialog : No
- Multiple root folders
FolderView Control : Yes
FolderBrowserDialog : No
- Change default display names, icons, overlay icons, infotip, etc
FolderView Control : Yes
FolderBrowserDialog : No
- Simply and easy to use API
FolderView Control : Yes
Clumsy, inflexible API
- Access complete information of a file/folder including its displayname, fullpath, checkstate, selection state and attributes like whether it is a shortcut, shared, hidden, readonly, file and folder.
FolderView Control : Yes
FolderBrowserDialog : No
- Prevent display of contextmenus for all folders using a simple property or on a per-folder basis using an event.
FolderView Control : Yes
FolderBrowserDialog : No
- Prevent dragdrop for all folders using a simple property or on a per-folder basis using an event.
FolderView Control : Yes
FolderBrowserDialog : No
- Allow/disallow renaming for all folders using a simple property or on a per-folder basis using an event.
FolderView Control : Yes
FolderBrowserDialog : No
- Allow/disallow selection for all folders using a simple property or on a per-folder basis using an event.
FolderView Control : Yes
FolderBrowserDialog : No
- Allow/disallow expanding/collapsing on a per-folder basis using an event.
FolderView Control : Yes
FolderBrowserDialog : No
- Change default drag actions during dragdrop (e.g. from Copy To Move)
FolderView Control : Yes
FolderBrowserDialog : No
- Control checking/unchecking on a per-folder basis.
FolderView Control : Yes
FolderBrowserDialog : No
- Prevent execution of default shell commands ( e.g. Open, Cut, Properties, etc. in response to keystrokes or through the context menu) for all folders using a simple property or on a per-folder basis using an event.
FolderView Control : Yes
FolderBrowserDialog : No
- Show/hide hidden folders using a simple property.
FolderView Control : Yes
FolderBrowserDialog : No
- Show/hide virtual folders ( e.g. Control Panel ) using a simple property.
FolderView Control : Yes
FolderBrowserDialog : No
- Enumerate all folders shown in FolderView.
FolderView Control : Yes
FolderBrowserDialog : No
- Enumerate all folders according to folder hierarchy structure.
FolderView Control : Yes
FolderBrowserDialog : No
- Execute shell commands ( e.g. Cut, Delete, etc ) on folders.
FolderView Control : Yes
FolderBrowserDialog : No
- Associate developer defined data with each folder
FolderView Control : Yes
FolderBrowserDialog : No
The FolderView control (and Shell MegaPack ) is available in two editions :
.Net Edition : For use in .Net development using Windows Forms, WPF and ASP.Net
ActiveX Edition : For use in applications developed using Visual C++/MFC/ATL, Visual Basic 6, VBA (Access, Word, Excel, AutoCAD,etc), Borland Delphi and Borland Builder, and HTML/ASP pages.
Posted in: asp.net| Tags: Introduction Component article framework everything browser folder unmasked original folderbrowserdialogcreate xml slideshow with free template
This tutorial is primarily about howmake flash xml slideshow with simple 4 steps. First you should know something about XML knowledge. If you don't know much about XML please try another free flash slideshow software. It need no xml skills and can make flash slideshow for website instantly and easily.
So the tutorial will include two parts:
- How to make flash xml slideshow with free xml template
- Use flash slideshow software to make flash slideshow
Now follow my steps and I am sure you will be met thisflash xml slideshow tutorial soon.
Step 1: Download free flash xml slideshow source file Download free xml source file and unzip it. The package should include images folder, xml.fla file, xml-gallery-slideshow.swf file, and images.xml file.
Open xml-flash-slideshow.swf file to see the original samples as below thumbnail:
Step 2: Add your digital photos to image folder Choose your favorite photos to add into image folder. There is no quantity limitation for digital photos. However, in order to get a good presentation, the size of your digital photo should not exceed 300px*200px.
Step 3: Edit XML file for adding digital photos Open images.xml file with a text editor, such as Dreamweaver MX. You will notice that all images are described with the following XML tags located between the <pic> and </pic> tags. You can place as many images as you want by copy and paste the content between the <pic> and </pic> tags. You just need to revise the red content according to your own requirements.
<pic> <image>images/1.jpg </image> <caption>First </caption> </pic>
Step4: Upload your xml flash slideshow on website Copy and paste the following HTML code to your website, such as MySpace, Blogger. So long as your website supports HTML code, you can put it anywhere as you like. Don't forget to revise the red URL blow to your own URL. Learn more about how to upload slideshow on website
.
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="264" width="550" data="http://www.flash-slide-show.com/images/tutorials/flash_banner/banner550.swf" <param name="allowScriptAccess" value="never" /> <param name="allowNetworking" value="internal" /> <param name="movie" value="http://www.flash-slide-show.com/images/tutorials/flash_banner/banner550.swf" /> <param name="quality" value="high" /> </object>
Step 5: Create a new category for flash xml slideshow You may found that there are some different categories in the sample xml gallery. If you also want to create new category to grouping your photos, just copy and paste the content between <category> and </category> tags and revise its name. Then the flash xml gallery will be made. You can open the gallery.html or gallery.swf file to enjoy it.
Another easy way to create Flash Slideshow is the use of Wondershare Flash Gallery Factory, is an easy to useflash slideshow software which provides 60+ free flash slideshow templates and 70+ transition and motion effects for you and need not edit XML code at all. All the processes are automatically and instantly, and you just need to move your fingers to click some buttons in the software.
Counter Strike tutorials, easy steps of macking counter strike server
hi
today I am giving some easy steps of making counter strike server:
1.portforwording, for example from a modem or router port 27015 forword to the Internet and other WAN users server.every your modem can participate in a variety of ways portforwording,
2.make folder "hlds" to any partition,like you make folder in partition C:/.download server creator and install it to c:/hlds, after installing automaticaly hlds updater will open, it will take time becouse it will download around 200 mb files [btween updating if your net got disconnected,you will need to reinstall server creator].
3.download non-steam patch, installed to c: / HLDS, and it will allow agents to join more than 47 non-steam 48 to your server can welcome to join
4.goto c:/hlds/cstrike open server.cfg and write:
setmaster add 207.173.177.11
setmaster add 69.28.151.162
setmaster add 72.165.61.189
setmaster add 68.142.72.250
setmaster add hlmaster.jolt.co.uk
setmaster add 65.73.232.251:27040
setmaster add 65.73.232.253:27040
setmaster add 207.173.177.12:27010
setmaster add 207.173.177.11:27010
5.goto c: hlds open HLDS Launcher settings and restart your server set.
IF you getting errors and need, post you errors to our forums
Get some reducing lag tips:
Have HLDS launch, go to the task maneger [Alternative press Ctrl Delete], and then go to the Processes tab, findhlds, the right-click in the HLDS and set piority real-time.
HL Booster installation, from the (www.cspk.co.cc / hlbooster.html] download, which will reduce the latancy and reduce lag
goto hlds folder, then read cstrike folder and open server.cfg write:
// Bandwidth Rates
sv_rate "12000"
sv_minrate "0"
sv_maxrate "3000"
sv_maxupdaterate "7"
sv_minupdaterate "10"
decalfrequency "10"
cl_latency "-50"
goto www.cspk.co.cc for? more amx? and other modsinstalltion guide,
The death match, football game gun mod is the mod superhero, but as a fun tutorial to find the modified modules installed War Craft, remodeling, anti-sxe documentary Chutoriaruchito guard injected, sxe hack to work with maps creator, the logo creator 7.8 Kauntasutoraikusupure injection, creating add -
Posted in: html tutorial| Tags: server download creator counter setmaster strike partition hlds modem folder