|
I am using FolderBrowserDialog to Browse for folder
I want to show the address in textbox also which I select in FolderBrowserDialog
or can directly type the address of folder in textbox instead of selecting it from tree view control
FolderBrowserDialog obj=new FolderBrowserDialog();
obj.ShowNewFolderButton=true;
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
Hi sweety , it's very easy . enjoy it :
// Initialize FolderBrowserDialog
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
// If dialogResult result is OK then set txtAddress by folderBrowserDialog
// SelectedPath's property .
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
string selectedPath = folderBrowserDialog.SelectedPath;
txtAddress.Text = selectedPath;
}
have a good time.
DMASTER
|
|
|
|
|
I want it on folder browser dialog which gets opened on clicking browse button
Ankit Aneja
"Nothing is impossible. The word itself says - I M possible"
|
|
|
|
|
anyone knows how to change the directory of one file from ftp using c#.net?
please help.
thanks
|
|
|
|
|
Hi,
I want the equivalent of WithEvents (VB) in C#.
I want the equivalent of this line
VB :
Dim WithEvents theCL As TOMListenerCall
C# : ???
thank you for your answer
zinzineti
|
|
|
|
|
zinzineti wrote: VB :
Dim WithEvents theCL As TOMListenerCall
C# :
TOMListenerCall theCL;
|
|
|
|
|
I do
TOMListenerCall theCL;
And in my form.cs at InitializeComponent() i put this code :
this.theCL.onEstablished +=new ITOMListenerCallProxy_onEstablishedEventHandler(theCL_onEstablished);
but I have this error : La référence d'objet n'est pas définie à une instance d'un objet.
Thanks for your answer
|
|
|
|
|
You should not be changing InitializeComponent manually. This is where autogenerated code goes and will be re-generated by the IDE.
The code you posted does not create a new instance of TOMListenerCall, it simply declares a variable (WithEvents) of that type. That is exactly the same as the code I translated to C# for you.
In order for you to use an Instance of that object (ie, to subscribe to events) you must create a new instance using the new keyword. As I do not know whhat constructors TOMListenerCall defines, ill assume it has a parameterless constructor:
<br />
TOMListenerCall theCL = new TOMListenerCall()<br />
theCL.onEstablished +=new ITOMListenerCallProxy_onEstablishedEventHandler(theCL_onEstablished);
|
|
|
|
|
hi
is there any way to keep an array list of points in an area? i need to do this to use the points for checking if the mouse click event is in the area.
thanks
|
|
|
|
|
What are you doing here?
You posted the questions three times now, and allways provide a little less information.
And now this, no information at all!
All the best,
Martin
|
|
|
|
|
I'm sorry, i don't intend to be rude. i thought i gave enough informations. I'm just trying my best to learn, sorry...
|
|
|
|
|
F*** U...
If U don't want to answer his question, then U must shut Your f***Mouth
|
|
|
|
|
I really like the combination of, marking a post as "Joke" and all the f words in it.
I also wish you a nice day and thank you for your nice words!
All the best,
Martin
|
|
|
|
|
Point number 8 in all forums' administrative post reads like this:
<big>Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.</big>
|
|
|
|
|
Hmmm. lets review your contribution of 3 whole posts to CodeProject:
UglyxXXx wrote: f*** U...
Hei U buy by your self a**hole
UglyxXXx wrote: f*** U...
f*** U Christian...
If U dont want to answer his question, then dont answer it
UglyxXXx wrote: f*** U...
If U don't want to answer his question, then U must shut Your f***Mouth
Can I be the first top invite YOU to get lost?
|
|
|
|
|
I'm just curious who is hiding behind this name.
I think he is also active with an other name and just wants to play the "bad boy"!
All the best,
Martin
|
|
|
|
|
Hi All,
i m using the following code but this code is write on mdi form
any can give code to write on the child form.
<code>Stock childform = null;
foreach (Form f in this.MdiChildren)
{
if (f is Stock)
{
childform = (Stock)f;
break;
}
}
if (childform == null)
{
childform = new Stock();
childform.MdiParent = this;
childform.StartPosition = FormStartPosition.CenterScreen;
childform.sStock = sMdi;
childform.Show();
childform.Focus();
}
else
{
childform.Show();
childform.Focus();
}</code>
i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child.
-- modified at 5:04 Thursday 26th July, 2007
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
make yo ur child as a IsMdiContainer as true , it will become mdi child
Ashish Kasma
|
|
|
|
|
Thankx for reply,But its not the solution.
there is a particular code is use for this because i all ready have a mdiparent with many children they all are working well. now i want to create a new form which is displayed wen the one of child form is clicked and i want this new form as a child.
Nikesh Kr. Yadav
CSS Infotech
Sec- 31
Gurgaon,
Haryana(India)
|
|
|
|
|
dear what you need is not clear ,
because ur subject says you want to "make a mdi form?"
please elaborate in more detail.
|
|
|
|
|
hi
i have an asp.net page in which some control like "textbox" are present,this page is inherited from a master page and does not allow any "form" tag in the markup.
i want to get all the controls present in this page .
any solution for this.
thank you
Farhan Ali
|
|
|
|
|
To access all controls of a page use the Controls property of the Page.
-^-^-^-^-^-
no risk no funk
|
|
|
|
|
|
Which development tool do you use?
|
|
|
|
|
I think, you can use osql command to run SQL script file from setup..
check-out this ...
http://www.thescripts.com/forum/thread476966.html
|
|
|
|