|
Hi,
not sure, but I wouldn't trust a combination of Peek() and ReadLine(), since Peek() will check availability of any amount, and ReadLine() is to return one line.
rather do fetch all first, then split it into lines.
|
|
|
|
|
thx Luc Pattyn, I used Stream.EndOfStream, it works fine for me.
but now i faced another prob. while listing directory in a listview it takes lots of time, i want to use BackgroundWorker or delegate to add directories in listview.
I googled and gone through MSDN as well, i got some concept of that and
i would realy appreciate demo or any reference about using backworkgroundworker or delegate.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
|
thx dude, good topic.
I am using BGW to connect ftp server, retrieve data and upload to ftp server.
i am uploading files to ftp server and i can get them very fine.
but when i am uploading zip files, it upload the zip file but i can not get the size of zip file while i can get the size of other files. here is the error i am facing
"the remote server returned an error: (550) File unavailable (e.g File not found, no access..)"
I know the error which says invalid file name while the file exists in the server. This is only for zip files not for other files.
here is mypath to server, where ftpServer is the server address as ftp.address.com
ftp://ftpServer/zipFolder.zip
still i dont know my ftp address is invalid, but if its invalid than why i can access other files incase i replace "zipFolder.zip" to "myfile.txt".
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hi,
I'm not sure, but from the symptoms I think the following is probable:
some systems (WinXP, WinVista, ...) know how to look inside a ZIP/RAR file, i.e. they tend to treat them as folders rather than files, hence they don't want to associate a file size with them, etc. Not sure how to overcome this.
|
|
|
|
|
im hoping someone can help me,
for my final year project im using the webcam based laser recognition software by Ashish Derhgawen. I will use this with a PowerPoint Add-in i have created which is a toolbar containing buttons simulating basic operations, next slide, previous slide, highlight, etc. Im having a hard time assigning those actions to the buttons. it was suggested that i should use shortcut keys and pass them from the button but im still having trouble. its probably very simple but i just can get it to work, can anyone help me with this.
khuram
|
|
|
|
|
There's not enough info in your question for me to answer.
Are you saying that you have some buttons which perform some logic, and you want the same logic to be fired when you press a key?
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
hi
How to copy some files from one folder to other with multithreading in visual C#?
sample code please.
thx
|
|
|
|
|
|
|
So rather than buy and study a book, or read some interesting articles, you decided to do absolutely nothing but spam this site with five identical messages?
|
|
|
|
|
You forgot stupid. If I create 5 threads that are all trying to move files on the same hard drive, I wonder where the bottleneck will be....
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 )
|
|
|
|
|
Christian Graus wrote: You forgot stupid.
I try not to write down everything that comes to my mind.
Christian Graus wrote: I wonder where ...
Then you should either try it, or Google
|
|
|
|
|
Luc Pattyn wrote: Then you should either try it, or Google
ROTFL !!!
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 )
|
|
|
|
|
Be fair -he may have only required on thread to copy files while the rest of the application continues.
However, creating five posts asking the same thing certainly qualifies as stupid
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
Maxxx_ wrote: creating five posts asking the same thing certainly qualifies as stupid
maybe its the only way of multi-threading he currently is capable of.
|
|
|
|
|
Hadi Basiri wrote: How to copy some files from one folder to other with multithreading in visual C#?
By starting a thread and putting the copy code in there. Don't forget to terminate the thread when you're finished.
Hadi Basiri wrote: sample code please.
Here's some VB.
Dim YesYouAreIncredibly
Dim
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
hi
How to copy some files from one folder to other with multithreading in visual C#?
thx
|
|
|
|
|
My response was lost I guess.
1 - you are an absolute moron.
2 - see 1
Also, while the answer is so easy that not being able to work it out means you should never touch a compiler again, why would you even want to do this ?
you've made the whole site hate you through your cross posting and repeat posting. Well done.
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 )
|
|
|
|
|
hi
How to copy some files from one folder to other with multithreading in visual C#?
thx
|
|
|
|
|
Hi
i'm looking for any example or article about how to implement user-level security for mu application.
my app scenario is :
1. My app have some forms
2. Users & Roles can define in app
3. Each user must have a role
4. Each role must have it's security level (i want in my app, admin can select a role and give a appropriate right on selected objects(forms) to that role)
How to implement this ?
A Good Idea : if u familiar with SharePoint, u saw, even users can assign a permission just for an specific Item! but don't know how to that.
any other idea would be great appreciated.
Thanks
|
|
|
|
|
We have a seperate app (user manager) that assigns the user/role/permissions for all the apps we have built.
Each app references a DLL that manages the logon, that delivers up a table of permissions to the client app. This table is referenced whenever an object requiring security authentication is used.
The biggest issue is coding for each object that needs security applied eg: a form may need rights, a button (save/delete) each needs rights. I find it impossible to second guess the userrs requirements for security so I do a screen shot of every form and make the business owner scribble on the forms the security required. This tends to reduce the security requirements dramatically.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: This tends to reduce the security requirements dramatically.
I concur. Asking very specific questions, preferably requiring some thinking *and* some tangible action, tends to simplify the requirements all the sudden.
|
|
|
|
|
I've confusing what data store in each table ?
con u give me more explain ?
modified on Friday, April 17, 2009 6:53 AM
|
|
|
|
|
I created a ftps utility in c# (console app). The uitilty works great (push and pull) for the root secure folder. So ftp.mysite.com works fine. The problem happens when I try to access a sub folder (ftp.mysite.com/ClientA). I get the following error msg from the ftp.loginWithoutUser() function:
The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for
I can not be the only developer who needs to access multiple secured folders at the same address.
Thanks in advance for your help.
dwa
|
|
|
|