|
You should be able to just access the FTP service on the box by using the Service Control Manager APIs.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
I'll be darned if I can find a simple code on the entire internet to implement a ProgressBar for a common File.Copy procedure. One that actually show real-time progress and not just a timer or
min-max settings. Help
File.Copy(txtAudioSourceDir.Text + txtAudioSourceFile.Text);
|
|
|
|
|
I don't think there is a framework way for you to track the progress of the copy. The only way I see you doing it is to read the bytes into abuffer and then write them again. From that you can get your progress values on the number of bytes read/written.
"If you just say porn then you get all manner of chaff and low grade stuff." - Paul Watson, Lounge 25 Mar 03 "If a man is standing in the middle of the forest speaking and there is no woman around to hear him, is he still wrong?" - Anon
Jonathan 'nonny' Newman
Homepage [www.nonny.com] [^]
|
|
|
|
|
|
Hi Codegurus,
I keep getting MouseMove messages without the mouse moving at all!! .. have anybody been in the same situation? Hopefully it's not a bug, I doubt that that behavior is intended by design. This's what is written about MouseMove in MSDN, "Occurs when the mouse pointer is moved over the control".
More info...
// Used Software
VS .NET 2002
Microsft .NET Framework 1 SP2
Windows 2000 SP2
IE 6, DirectX 9 SDK
Thanks,
(a.k.a. Wal2k) www.wal2k.com
|
|
|
|
|
Do you know of any equivalent to the PaintDesktop() Win32 API function in the .NET framework?
Many thanks
(a.k.a. Wal2k) www.wal2k.com
|
|
|
|
|
I try to add a 3rd party control to my project. I added the reference to the DLL. (via Add Reference)
But I don't see the control in the toolbox.
What I'm missing?
[edit] It's not strong named assembly and the control works properly with the provided sample project. [edit]
Don't and drive.
|
|
|
|
|
Hi,
why don't you add it by customizing the toolbox or did I understood something wrong?
Greetz
Torge
|
|
|
|
|
Torsch wrote:
customizing the toolbox
I did it and it worked.
Thx.
Don't and drive.
|
|
|
|
|
Huhu,
sure...customizing the toolbox is like giving a hore 1,000 €
Greetz
Torsch
|
|
|
|
|
Right click on the toolbox and go to Customize Toolbox. Add the reference to the DLL from there and you'll see the control in your toolbox.
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|
|
David Stone wrote:
Add the reference to the DLL from there and you'll see the control in your toolbox.
Duah...It worked.
Earlier I thought the list in the "Customize Toolbox" dialog is generated when you add the reference to the project. I didn't saw "browse" button. Agh!!!
Learning something new everyday in this stupid .noet world ...
Thx.
Don't and drive.
|
|
|
|
|
Hello!
I've a big problem with the Panel's Autoscroll function...
I want to draw on-the-fly on a picturebox located in the panel.
F.e. the pBox's Size is 500*500 and the panel's Size is 100*100 and the panel's autoscroll function is set true.
If i click on the scrollbar's button for a single scrollstep, everything's fine.
But f.e. I click in the Hscrollbar and track it to make a step of 50 pixels, the new Area shows me 50 pixels of the "old" picture and the rest is empty.
So I guess, I've to tell the panel that it has to perform the same action as it performs, if only a one-step scroll is performing.
But how? And Where?
I've failed by tracking the Event, which is activated by scrolling...
Or is there another way to scroll a on-the-fly drawn picture?
Thank you for helping!
Greetz
Torge
|
|
|
|
|
Welcome to the stupid world of the .NET scrolling support. If you are planning on doing more than just a little bit with that scrollable panel, you might be better off just writing your own. That's what I'm doing. When I'm done, I'll probably write an article about it and put it on CodeProject, 'cause so many people have asked for it.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Hi,
maybe we could do it together...
mail me please...
Cause I'm on a project in my studies and I've to make this fool become god-created wellfish
So if you like we better work together...
I've the opportunity to ask one of my Profs, who works over twenty years in the software engeneering buisness, a c++ overgod and a mentor of mine, so we hopefully could work with his force...
Greetz
Torge
|
|
|
|
|
The only thing about doing it together is that I've worked for many moons on designing it and the design phase is mostly finished. That doesn't at all mean I won't be accepting any input. It just means that first I'll have to write up a paper on its design first so you can see where it's at now - but I really should do that anyway.
I have it 3/4 finished in VB Classic, but I think I'll port it to C# .NET. It does panning, zoom, auto drag-detection, etc. The things that aren't already done in it are the panning and scaling, plus the document object that goes along with it.
By the way, what is the project in your studies, if I may ask?
And what do you mean by "hopefully we can work with his force"?
Regards,
J Dunlap
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Hi,
with "working with his force" I want to say, that by any problem, we could ask him, so the phase of solving problems would be shorter, I think.
The project is about tour-and routeplanning like map&guide, but a little bit more complex, so there will be some aditional features...if we handle that project in time
Greetz
Torge
|
|
|
|
|
Hi
Who can help me to custom drawing for caption and MinBox and ... in Title of Form?
Thanks
Bahman Salehi
|
|
|
|
|
Can you also let me if you found to custom drawing for Caption?
Thanks
|
|
|
|
|
I'm looking for a pre-written ListView-derived C# class that behaves as closely as possible to DataGrid in terms of its Data Binding functionality. Can anyone point me in the right direction??
Jade Burton
Programmer
|
|
|
|
|
Answer for a similar post a few weeks ago in this forum.
|
|
|
|
|
Hi,
I have written code that executes within a Windows.Forms application but fails when the code is run within a WebService.
I add a reference to the SHDocVw.dll windows library.
The common code is as follows:
System.Object nullObject = 0;<br />
System.Object nullObjStr = "";<br />
string url = @"https://www.123456789.com";<br />
<br />
InternetExplorer ie = new InternetExplorerClass();<br />
<br />
ie.Navigate(url, ref nullObject, ref nullObjStr, ref nullObjStr, ref nullObjStr);<br />
<br />
<br />
while( ie.ReadyState != tagREADYSTATE.READYSTATE_COMPLETE )<br />
{<br />
System.Threading.Thread.Sleep(1000);<br />
count++;<br />
if (count > 30)<br />
{<br />
return null;<br />
}<br />
}<br />
<br />
return (ie.Document as IHTMLDocument2).body.outerText;
The code runs fine in the windows application but raises this exception in a WebService
System.Runtime.InteropServices.COMException (0x800706BF): The remote procedure call failed and did not execute.<br />
at SHDocVw.InternetExplorerClass.get_ReadyState()
Does anyone have any ideas about this problem?
|
|
|
|
|
Do you have to use the IE webcontrol? I think a better way to do it would be this:
using System.Text;
using System.Net;
class Demo
{
public static string GetPage()
{
System.Net.WebClient client = new System.Web.WebClient();
byte[] resultSet = client.DownloadData("https://www.123456789.com");
Encoding myEncoding = Encoding.Default;
return myEncoding.GetString(resultSet);
}
} That'll get you the HTML for the page...and it's all managed, no COM Interop needed.
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|
|
I have tried to use the WebClient, WebRebRequest and WebResponse classes with the URI that I am trying to retrieve. All of these classes return an invalid request response from the server. The method I have shown works with the URI.
|
|
|
|
|
Are you sure you have the Network credentials right? The https protocol uses a username and password that you may have to pass through in the Credentials property.
Hawaian shirts and shorts work too in Summer.
People assume you're either a complete nut (in which case not a worthy target) or so damn good you don't need to worry about camouflage...
-Anna-Jayne Metcalfe on Paintballing
|
|
|
|