|
Hi I am I want Ftp Upload File but I have The remote server returned error: (530) did not at logon.
what is problem ?
FtpWebRequest Istek;
try
{
Istek = (FtpWebRequest)FtpWebRequest.Create(new Uri(@"Ftp://" + HostName));
Istek.UseBinary = true;
Istek.Credentials = new NetworkCredential(HostName, Password);
Istek.Method = WebRequestMethods.Ftp.ListDirectory;
WebResponse elcavab = Istek.GetResponse();
|
|
|
|
|
|
Hi,
i think your codes are right.
my codes:
//create the ftpwebrequest object.
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(textServer.Text);
request.Credentials = new NetworkCredential(textUsername.Text, textPassword.Text);
request.Method = WebRequestMethods.Ftp.ListDirectory;
//send the request to the server.
response = (FtpWebResponse)request.GetResponse();
//read the response and fill the list box.
stream = response.GetResponseStream();
FillDirectoryList(stream);
..............................
the error may be : the host user is not logined. the host's ftp is closed.
try to use 'cmd' to check, ping that 'IP'.
modified 27-May-14 5:36am.
|
|
|
|
|
I have developed a control. Among other things this control can popup other controls at runtime. When you include the assembly in Visual Studio, the control that I created shows up, but the other controls (the ones my control uses) show up as well. I would rather not have them show up in the toolbox in Visual Studio. Is there an Attribute that I can apply to these classes to make them not show up? I found the browsable attribute, but it says it is for properties and events.
Tanks for your support
Pat O
<a href="http://currentchaos.blogspot.com/">Blog</a>
_ _ _
|
|
|
|
|
Try System.ComponentModel.ToolboxItemAttribute
[System.ComponentModel.ToolboxItem(false)]
public class YourControl : YourBaseControl
{
}
|
|
|
|
|
Hi,
when the control Init , try to set "control.visible = false ";
|
|
|
|
|
i have an MDI child (MDI1) form which I am opening another MDI child (MDI2) from that form. How can I check if MDI1 was ctivated after closing MDI to refresh it? do I have to use Enter or Activated events?
|
|
|
|
|
use
this.ActiveMdiChild
It will return the MDI child form that is currently active. If you want to activate another form just use
frm2.focus();
|
|
|
|
|
I don't want to focus it.
well, let me explain it more..
MDI2 is an edit form of MDI1 so MDI is just viewing the data where MDI2 is the edit.
when the user clicks on the edit button (on MDI1) it will open MDI2.
when the user click save (on MDI2) it will close MDI2..
now I want to know if any data were changed and refresh the data on MDI accordainaly.
|
|
|
|
|
Well, Do the refresh of data when form is activated. Write the code inside Form_Activated to refresh the form with new data.
Dont forget to set a flag when edit is done and recheck the flag within form_Activated . Otherwise the data will be refreshed every time you activate the form.
|
|
|
|
|
Create a bool on MDI2, set it to true if data is edited.
Create a readonly property for this bool on MDI2 and check it from MDI1.
Refresh if true.
Regards
Mick Curley
|
|
|
|
|
of course, you should use these event.
for example, use 'closing event ' to check if MDI1 was activted.
or you can use WINAPI ('FindWindow')to Find out that 'WinForm', and then check if it was actived.
modified 27-May-14 5:31am.
|
|
|
|
|
Hi guys!
I have a question concerning the Timer Elapse Event and the invoked Method.
Is it possible to add an object to the timer which is passed to the Method?
Something like this:
public Timer MouseHooverTimer
{
get
{
if (mouseHooverTimer == null)
{
mouseHooverTimer = new Timer(2000);
mouseHooverTimer.Elapsed += new ElapsedEventHandler(mouseHooverTimer_Elapsed);
}
return mouseHooverTimer;
}
}
private void StartTimer(object information)
{
mouseHooverTimer.Start(); <== HERE ADD THE OBJECT information
}
void mouseHooverTimer_Elapsed(object sender, ElapsedEventArgs e)
{
}
Thanks in advance!
|
|
|
|
|
No, just use a field. Or derive your own timer class that will do it.
|
|
|
|
|
|
Hi,
of course, you can add an object to the timer.
but you must recognize that 'timer Thread' is not the same to 'main Thread',
so after you create the object in 'timer thread',
if you use it in 'main thread', will throw an error.
modified 27-May-14 5:37am.
|
|
|
|
|
I have a field which calculate the total minutes the PC in an internet cafe was used? what's the best field type to use to avoid having the maximam number after few years?
|
|
|
|
|
BigInteger, total minutes?
I probably wouldn't store the value anyway unless it was accessed frequently, which I doubt.
What I would do is have a table containing sessions, with beginning and ending times.
I could then calculate the total elapsed time of all the sessions when needed.
Why do you need it?
|
|
|
|
|
Hello,
I am looking for video editing code information. The requriment is user can edit the video file as well as can take a snapshot.
Please give me some help or any link or site available.
Thanks
Sanyukta
|
|
|
|
|
|
Hi,
video is made up of a lot of pictures.
so if you want to edit the video. Acutally,you can edit pictures.
i remember that Win32Api Provides some functions to create 'avi' format's video, get 'avi' format's video pictures....
or you can use 'Directshow' or 'vfw' to edit video.
|
|
|
|
|
hi i write porgram .porgram me have 3 form. form1 is mdiparent form1,2;time form2 maximize and close; i see form3 maximiz; i no form3 maximize;i what worke?
|
|
|
|
|
Sorry, I am afraid your question does not compile.
Are you saying that when form2 is maximized, form3 is also maximized? And this is not what you want to happen?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Please read this[^]
only two letters away from being an asset
modified on Monday, September 14, 2009 2:09 PM
|
|
|
|
|
That links to this forum, with no selected message. Did you mean this?[^]
|
|
|
|