|
Hi thanks for your reply !!
I think they want to loose the files (they only upload them in their database anyway) This is the reason why I thought webservices, because you can just send the data via a datasets eg.
Mm sockets, I need to read into that, but at least I have a new keyword for google
Thanks a lot...
|
|
|
|
|
Well if you wrote your own FTP server (using Sockets) then you could also upload files directly into the database, plus there isn't the overhead of calling a WebService.
Try googling "C# FTP Server" and the first few results may be helpful to you.
Of course you could simply write your own "protocol" to do exactly what you want, this might take a bit longer but will ultimately be more powerful. It may also be worth a look into TelNet since I think you can send files using that, plus it has has command-like features.
|
|
|
|
|
Hi Folks,
Any help for this issue would be appreciated.
Am trying to move a file from a soruce to destination folder in the following steps :
1)Check if destination directory exists [Directory.Exists(path)].. Else, create one.
2)DiretoryInfo di=new DirectoryInfo(sourcePath);
3)FileInfo[] fi= di.getFiles("TAX");
4)Foreach FileInfo
{
FileInfo.move(source, destination);
}
So, am getting an error right after the first step and error is "Second path fragment must not be a drive or UNC name. ".
Any ideas please?
Thanks,
RB
|
|
|
|
|
Sounds like the second path fragment is a drive or UNC name. Have you stepped through in the debugger ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I'm devoloping a project and in my project i want to create a .Net user control ( for example a combobox control) and implement this control's events in runtime. The question is how to add this combobox control to a ToolStrip control? I searched help documents but there is no "handle" property in ToolStripItem control. Is there any way to add this combobox control to ToolStrip control as a ToolStripItem control or any way?
Is there any suggestion? Thanks is advance...
Mustafa AKTAS
Software Engineer
ISLEMGIS Engineering Corporation
|
|
|
|
|
[I already posted this, but I can't see it even though it says that it is a duplicate message. So here it is again.]
Yes you can. You have to derive your ToolStripWhatever from ToolStripControlHost , and pass your control to the base constructor. Then use OnSubscribeControlEvents and OnUnsubscribeControlEvents to subscribe/unsuscribe to events.
If you are really looking for a combo box (and it was not just an example) for your toolstrip, it exists already: ToolStripComboBox[^].
I hope this helps!
|
|
|
|
|
Thanks Luis.
Your message is very helpfull...
|
|
|
|
|
i want a exe file in my cd that when my software isn't installed run setup from cd otherwise run cd software from client computer
i know i must do it with Registry
is there any sample code ?
Thanks
MHF
|
|
|
|
|
I imagine you just want to put the installed path to the exe in the registry, and if it's there, run it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
yes but how can do it ?
(it is better not be .Net code )
MHF
|
|
|
|
|
MHASSANF wrote: yes but how can do it ?
Most installation software lets you create registry keys. You've not told us what you're using for an installer. Then your program can read the registry, how to do that is well documented.
MHASSANF wrote: (it is better not be .Net code )
Well, that takes the cake. Why on earth are you asking in the C# forum then ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Why on earth are you asking in the C# forum then ?
Looks like he also heard that you live here.;)
Regards
|
|
|
|
|
Hi
i put a bitmap on to the control but this bitmap is with alpha layer
and aplha color is black.How can i make the alpha color transparent
|
|
|
|
|
How is there an alpha layer ? The typical way is the create an image attributues class, specify a transparency range and use it in the call to DrawImage.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
In VB we are using Timer.Is there anything like that in C#.Net ?
Thanks,
Mirunalini
|
|
|
|
|
Yes, there is. You have System.Windows.Forms.Timer control that uses the timer in windows UI, and there are System.Threading.Timer and System.Timers.Timer which are a multi-threaded timers.
---
b { font-weight: normal; }
|
|
|
|
|
Can u just explain me with an example.
It will be so helpful to me..
Thanks,
Mirunalini
|
|
|
|
|
An example of what? What are you going to use the timer for?
---
b { font-weight: normal; }
|
|
|
|
|
Sorry, I don't know whether am I right or not.But the thing is, I wants to display the value(time)continuously in a textbox as every secondchanges.is it possible?
Thanks,
Mirunalini
|
|
|
|
|
you can also use DateTime class for the same thing....
see the sample code... this may do...
Thread time = new Thread( new ThreadStart(Systime));
time.Start();
private void Systime()
{
while(true)
{
DateTime t = DateTime.Now;
this.textBox1.Text = t.ToString();
}
}
Thanks and Regards
Dillu
|
|
|
|
|
I'm not sure you want to do that!
That is going to be one very busy thread, continually updating the time when it doesn't need to. At the very least you could add a Thread.Sleep(1000) in there to rest the thread for a second between updates, although why you'd do this rather than use a timer escapes me.
Not to mention that you should *never* update the GUI from anything apart from the thread which created it (and in VS2005 it will explicitly block you from doing so). You'd need a call to BeginInvoke to make this solution acceptable.
Regards,
Rob Philpott.
|
|
|
|
|
I developed Multi threaded application ([MTATrhead]). And am using OpenFileDialog, when clicked on My Computer (from left wokspace) it is not showing the Drives available. I found its a bug in COM Interoperability (Pls see link http://discuss.develop.com/archives/wa.exe?A2=ind0509d&L=advanced-dotnet&T=0&F=&S=&P=6681)
Is there any Work Around?
Thanks
Santosh
|
|
|
|
|
Is there any specific reason you specified the [MTAThread] attribute? Multithreaded applications can be STA, unless COM clients are involved. Otherwise, the only option I can think of is launching another thread (STA) and showing the file dialog from that thread.
|
|
|
|
|
Thanks senthil you posting was helpful
|
|
|
|
|
Hi
Guys can any one let me know , how to make the collection classes serializable, thankx in advance.
|
|
|
|