|
|
Hi all,
I developed application in VC++ 6.0 about gets file in the FTP server using CFtpConnection class. What class is similar it in C#.
Thanks for your help.
|
|
|
|
|
batman < binhpt.evnit@evn.com.vn > wrote:
What class is similar it in C#.
None. The .NET framework doesn't offer FTP support (IMO, a big omission). You'll need some FTP library, and there are lots of free FTP libraries out there, some of them here at CP.
Yes, even I am blogging now!
|
|
|
|
|
It probably would have been a good idea to have it in a seperate assembly (not everyone needs FTP support so no point in bloating the main assemblies)
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Hi,
How will I be able to pass data I get back in a static Callback to a parameter in the same form-class?
public class TestForm : System.Windows.Forms.Form
{
public sting result;
...
...
public static void ParseResult(IAsyncResult arResult)
{
//This is what I want to do but it doesn't work!
this.result = "test!";
}
...
...
}
/Dalle
|
|
|
|
|
wrong variable declaration
public static string result;
|
|
|
|
|
Tanks!
/D
|
|
|
|
|
I'm not very familiar with asynchronous execution but I think the following should work:
When beginning the asynchronous call pass the actual instance of TestForm as state object and retrieve it in the callback by using the IAsyncResult.AsyncState property.
www.troschuetz.de
|
|
|
|
|
Hi all,
I am writing a program that can notify users of certain event
by showing up a pop up window of the notifying message on the
desktop. The notification can be set to be triggered at a preset time.
The notification message can be triggered even that the program is not running, once it is set to be triggered at certain time by the program and then the program is shutdown. Is it possible ?
Thanks
Patrick
|
|
|
|
|
There are obviously 2 ways to do it (or there are 2 I know of).
You could use the Windows-Scheduler and have it start a program at a certain time. That program could then "notify" the user.
Or you could create a little "Taskicon"-Application which would be launched by the program and do your notification.
Basically, that is the way Real (RealScheduler/RealPlayer), ICQ and others do it: they have a small app running, which reacts to certain events.
Cheers
Sid
|
|
|
|
|
Venerable sir,.
I want a two dimensional matrix of boxes on my fom. what is the best way to do this ?. Also I need to add some text to each box and these boxes must be accessible from any button click event ? Please response to this thread as soon as possible.
thank you,
|
|
|
|
|
By your requirements, there's nothing special here. All you do is drag the boxes you want onto the form and arrange them how you want. All the properties and methods of the boxes are available to any code behind any of the controls on the form after that.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Where can I get Windows XP and Office 2003 graphic icons which I need to use in my application?
Brendan
|
|
|
|
|
|
Found a weird bug in an app that we are writing, and I narrowed down to this special case:
<br />
double a = double.NaN;<br />
Console.WriteLine("a = {0}", a);<br />
Console.WriteLine("(int)a = {0}", (int)a);<br />
Console.WriteLine("Math.Round(a) = {0}", Math.Round(a));<br />
Console.WriteLine("(int)Math.Round(a) = {0}", (int)Math.Round(a));<br />
We just moved to 1.1 so this appears to be a 1.1 issue.
For debug build, the output is:
<br />
a = NaN<br />
(int)a = 0<br />
Math.Round(a) = NaN<br />
(int)Math.Round(a) = 0<br />
For release build, the output is:
<br />
a = NaN<br />
(int)a = 0<br />
Math.Round(a) = NaN<br />
(int)Math.Round(a) = -2147483648<br />
It seemed for some reason Release does not behave the same and that was causing my problem. Granted I shouldn't depend on the cast to be 0 because it is NaN (should never depend on undefined behaviour ), but at least give me a consistent answer or throw an exception if NaN is used in Math.Round()?
Again when my runtime was 1.0 it seemed fine, so could this be just a weird bug?
|
|
|
|
|
Correction: I have verified and this happens on both 1.0 and 1.1. Looks like an issue that no one has noticed before?
|
|
|
|
|
Since Nan is not a real number, I wouldn't expect int casting to work predictably anyway. The easiest way around it is to check if a IsNaN before attempting the Round and int cast operations.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Venerable Sir.,
How can I have any array of Labels on windows form? If I could Can I change them at form design ? Please any one knows kindly explain to me with example code.
Thank you,
|
|
|
|
|
You can't have control arrays on a form, however you can have an event handler that fires on multiple events from multiple controls providing they have the same signature:
this.button1.Click += new System.EventHandler(this.button_Click);
this.button2.Click += new System.EventHandler(this.button_Click);
this.button3.Click += new System.EventHandler(this.button_Click);
this.button4.Click += new System.EventHandler(this.button_Click);
private void button1_Click(object sender, System.EventArgs e)
{
}
To change multiple controls at the same time at design time, click on the first, hold down CTRL and click on the other in turn, hit F4 and you'll get the properties that can be changes for all the selected controls at the same time.
Hope this helps
Tom
|
|
|
|
|
Venerable Dr.,
How can I have any array of Labels on windows form? If I could Can I change them at form design ? Please any one knows kindly explain to me with example code.
Thank you,
|
|
|
|
|
Hello techies,
I used DataGridControlButtonColumn to embed a button in datagrid.But the button is visible only if the focus goes to that particular column. I want the button to be visible all the time in all the rows.Any pointers to how to go about this problem wud be of utmost help.
Thanks
Jagan
|
|
|
|
|
Hi friends,
I would like to pass a combox.Items to other dialog form, because the dialog will have a combo which contains the same item collections of pervious form.
Suppose I have loaded all data classes from a folder to a combo, then now I going to pass the collection of data to other combo, what is the data type to pass then ?
e.g. using(SetupUIasf = new SetupUI(this.comboBox2.Items))
to ....
public SetupUI(ICollection datas)
am I right? or using ArrayList is better ?
thanks
|
|
|
|