|
WebClient class makes file downloading and uploading more easy. I am not sure there is some class which will list the specified directory. You need to supply the FTP command for this.
|
|
|
|
|
>I am not sure there is some class which will list the specified directory.
FTPWebRequet can do this because of uri can be absolute. The problem is to list directory:
FtpWebRequest reqFTP = (FtpWebRequest)FtpWebRequest.Create (new Uri("ftp://" + ftpServerIP + "/"+path));
reqFTP.UseBinary = false;
reqFTP.Credentials = new NetworkCredential(ftpUserID, ftpPassword);
reqFTP.Method = WebRequestMethods.Ftp.ListDirectory;
WebResponse response = reqFTP.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string line;
while ((line = reader.ReadLine()) != null)
{ ..... }
At this point i wanto to list next directory using existing connection? it is possible?
|
|
|
|
|
Hi Guys, It there anyway we can change some properties of a filename like FONT COLOR, FONT STYLE without affecting other file.
Thanks in advance.
erson
|
|
|
|
|
I would suggest that your asking that means you need to do some basic learning before attempting such a task. The file names in the file system are written by the shell. It's possible that a shell extension, which should probably be written in C++, is how you'd go about this.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
File names don't have fonts and colors.
|
|
|
|
|
The font, probably color and size of file names can be changed by the current windows/OS user, though not individually but for all files in the system.
The only thing you could do is display some files in your program and chnage the font for specific files.
|
|
|
|
|
In the forms designer, can you set the "Text" property of a control so that it grabs a string from your stringtable instead, or do you have to do that with code?
For instance setting the "Text" of a Label to "§MyLableString1" and it would grab the context of that string
Thanks
|
|
|
|
|
I want smiley icon (like yahoomessenger) in richtextbox
Is there anyone to know how i must do this?
Pleas answer I searched lot but Ididnt find Clear answer
if you have simple code please share it Or email me
tnx
shaghayegh244@yahoo.com
|
|
|
|
|
|
I am getting a nullable datetime from the DB and need to store it in as a sortable datetime string but display it in a different datetime string format
ex. get datetime or null from DB and store it as "yyyy-mm-dd" or "" for sorting purposes but then need to convert it to dd-MMM-yyyy or empty in the gridview
any suggestion?
|
|
|
|
|
Hi,
you can decode a date string using DateTime.Parse/ParseExact/TryParse/TryParseExact; you will have to deal with null/DBNull yourself.
you can format a date to a string with ToString(); that holds true for all .NET types
you should not store dates as strings in a database, use the existing database types instead (date, datetime, timestamp). If you do store them as strings anyway, have a look at ISO 8601 for a standard format.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
I would use System.DateTime.MinValue or .MaxValue depending on whether I want them sorted to the top or bottom.
if ( f == System.DbBull.Value ) f = System.DateTime.MinValue ;
s = ( f == System.DateTime.MinValue ? "null" : f.ToString() ) ;
|
|
|
|
|
Hi, Has anyone experienced this problem?
i'm using vs.net c# & Report Designer component CRAXDDRT V XI 2
i've added an OleObject in the report page header section by the folowing line
OleObject PicObject = m_Report.Sections[SecNo].AddPictureObject(Application.StartupPath + "\\DefaultLogo.bmp", 0, 0) it's added successfully but after that when i try to change the photo path (Graphic Location) by
PicObject.SetOleLocation("NewPath + "\\AnotherLogo.bmp");
the following error msg appears : 'Access is denied'
I would appreciate your help ...
|
|
|
|
|
U dont have appropriate administrative privileges! Log in as Administrator or its member....
|
|
|
|
|
thanx 4 reply
but i'm actually loging by Administrator
|
|
|
|
|
Hi there,
In Windows form we have a option in the property of the form called 'Opacity' which enables us to set the transparency settings of the form. However, I want that without making the form transperable, only the Buttons should be transperant. So, please tell me guys, which way can I make only the buttons in a form look transperant.
Your help will be appreciated,
Rajdeep.NET
|
|
|
|
|
If you mean, it should show desktop in back then you cant. But you can try this
Transparent Bitmap Buttons with Alpha-Blended Regions in .NET[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I have number and writting on the image.I want to save as(.doc or .xls) number and writting on the images,
how am I do?
|
|
|
|
|
|
None of these links answer the question.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
I want to leave char on image not insert writning on image
thenks
|
|
|
|
|
I can't it
for me example code pls
|
|
|
|
|
Tell you're client you're not smart enough for the job, you obviously can't understand a word we're saying.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
You'll need to buy an OCR library to do that.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
ohh...what about free Open Office[^], my friend
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|