473,699 Members | 2,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FolderBrowserDi alog only showing 3 buttons. It doesn't desplay the

My FolderBrowserDi alog shows just the description on the top then 3 buttons
(OK, Cancel, NewFolder) at the buttom of the dialog. It doesn't desplay the
directory tree. I even specified not to show the NewFolder button and it
still has it there. How can I fix this problem?

Thanks, Alpha
private void btnDirBrowser_C lick(object sender, System.EventArg s e)
{
DialogResult PathResult;
try
{

// Set the help text description for the FolderBrowserDi alog.
this.fbdLogFold erPath.Descript ion =
"Please select ATS Log files directory.";

// Do not allow the user to create new files via the FolderBrowserDi alog.
this.fbdLogFold erPath.ShowNewF olderButton = false;
PathResult = this.fbdLogFold erPath.ShowDial og();

if (PathResult == DialogResult.OK )
{
//If user selected new path then put it in the txtbox
if (string.Compare (txtLogFilePath .Text,
fbdLogFolderPat h.SelectedPath. ToString(),fals e) !=0)
{
txtLogFilePath. Text = fbdLogFolderPat h.SelectedPath. ToString();
}
}

}
Nov 17 '05 #1
0 1054

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1863
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open the FolderBrowserDialog after I opened the database connection no folders will be displayed in the FolderBrowserDialog. It's empty.
2
1573
by: JohnR | last post by:
Wow, this is unbelieveable. I've narrowed it down to a few lines of code. Create a new project in VB.NET and put 2 buttons on it (a FBD button and an EXIT button) and enter these lines for the click events: Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click End End Sub Private Sub btnDoFBD_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDoFBD.Click
0
2823
by: R A | last post by:
Hi, I use FolderBrowserDialog in my c# windows forms project. It was working with no issues, but right now the dialog shows but I can't see any directories selection. I can see the buttons at the buttom of the dialog and the caption but there is nothing at the place where the directories selection should have been. Any ideas? When I try it in a different c# application it works fine. Now I am sure the code is right: ...
0
3319
by: Derrick | last post by:
If I have code... FolderBrowserDialog fbd = new FolderBrowserDialog(); fbd.RootFolder = Environment.SpecialFolder.MyComputer; fbd.SelectedPath = "C:\\Documents and Settings\\theCurrentUser" fbd.Description = "Select a Directory"; if(fbd.ShowDialog()==DialogResult.OK) { ...
0
1586
by: Tommy Clark | last post by:
I am using Microsoft Development Environment 2003 Version 7.1.3088 and .NET Framework 1.1 Version 1.1.4322 SP1. I have an MFC application that we have ported to .NET and have added the FolderBrowserDialog dialog to select a folder. This works fine if we do not preceed the dialog with a CString.Format call. When we have the call, the folder browser dialog has the buttons but not the folder tree. I am able to reproduce the problem by...
12
5865
by: JohnR | last post by:
I have narrowed a problem down to a simple example. A form with two buttons. One EXIT and one FBD. The exit button does an "END" to end the application. The FBD button does a FolderBrowserDialog and nothing else. When I start the application and hit EXIT everything works fine. However if it display the FBD box (even if I don't pick a folder and immediately hit cancel) and then try to exit one of two things happens. Either (1) the...
4
1878
by: hotmit | last post by:
I'm trying to create a program that dynamicly saves and loads path of a FolderBrowserDialog , but I ran into a problem. Since FolderBrowserDialog is not a Control, therefore it doesn't have attribute such as Name. How do I get the name of a Component or unique string to identify each FolderBrowserDialog instances in the my form. I tried GetHashCode() but that doesn't work out too well. Any suggestion is apreaciated!!! Thanks
3
22315
by: antuantuan | last post by:
Hi. How can I initialize a FolderBrowserDialog choosing a particular RootFolder? I saw that FolderBrowserDialog has a RootFolder member, but it accepts only an Environment.SpecialFolder (but I don't want to choose a SpecialFolder for my FolderBrowserDialog). I hope I've been clear. Thanks in advance
3
6723
by: ImageAnalyst | last post by:
I'm trying to have the user browse to a folder, once they click a button, using the standard FolderBrowserDialog tool, System.Windows.Forms.FolderBrowserDialog. I'm using VB.Net 2005. There is a property, SelectedPath, that you're supposed to be able to set that will initialize the folder browser window so that the tree structure is already opened at that folder. The problem is that it doesn't seem to work. No matter what I put, it has...
0
9171
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7743
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.