|
Hi,
VS2005, .NET 2
I have a winforms app that makes use of web services and crystal reports.
I have created an install for the app. After installing on the client machine the app works fine if running as an administartor - but if i relog in as a user it complains about not having access to .TMP files in the application folder.
The .TMP files seem to have random names something like hTHuskG.TMP im not sure whether its the web service, crystal reports or the app itself that creates these.
If I allow users full access to the application folder it works fine.
(The app will be installed by an admin and be used by users with very limited access)
How can I modify the install to give users full access to the install directory?
Many thanks,
Chas
|
|
|
|
|
I hope that you can't - it would be up to the administrator to set these kind of permissions.
I are troll
|
|
|
|
|
in my app i've two threads , one for update the listview and one for main form,the problem is i used thread.sleep() method to update the listview,instead of using a timer periodically, but when this thread is strated in a while(true) loop,it doesn't allow the other thread to execute, how can i use the thread.sleep() to do fill th listview periodically
|
|
|
|
|
The actual filling of a ListView should be done from the mainthread if I'm not mistaken. Doing this from another thread has no advantages, since the other thread needs to synchronize with the mainthread anyhow.
You can use the second thread to fetch the items that go in the ListView, and you can use it to modify the resultset before inserting them into the ListView.
I are troll
|
|
|
|
|
Do a search for 'InvokeRequired'.
That should give you some clues.
Henry Minute
If you open a can of worms, any viable solution *MUST* involve a larger can.
|
|
|
|
|
Use a delegate to update the List items... Control.Invoke( delegate )..
Moim Hossain
R&D Project Manager
BlueCielo ECM Solutions BV
|
|
|
|
|
I has a same problem too.
|
|
|
|
|
if you have code c# or asp about information extraction , share for me.Then save infomation to a file
thank you veru much !
|
|
|
|
|
What an awful question! Extraction of what sort of information?
|
|
|
|
|
extraction infomation from website online (code= c#)
help me pls !
|
|
|
|
|
daicapeter wrote: extraction infomation from website online (code= c#)
The main problem is that you don't know what is your exact requirement
|
|
|
|
|
Wow. this has to be the worst question I have seen for some time. It makes no sense at all.
I *think* you want to parse a website. You can do this with the DOM, or with regex.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
And a damned good one at that! Just went through it and printed it for a better read, thanks for that post.
|
|
|
|
|
Are you looking for something like this[^]?
/ravi
|
|
|
|
|
Hello,
How to retrieve information of installed anti-virus using WMI.
Thanks
Kiran Banker
|
|
|
|
|
banker_kiran wrote: How to retrieve information of installed anti-virus using WMI.
What kind of information do you want to retrieve ?
|
|
|
|
|
Like,
Name, Version and UpdateStatus
Kiran Banker
|
|
|
|
|
Have a look on Win32_Product Class .
Read This[^]
Hope this will helps you !!
|
|
|
|
|
Hi !!!
I done a program in C# that I can access all MS Access database file (Inside all table).
Know i can access all table values. know I m planning to update / delete/ and insert operation.
1.For that I want find Primary Key Value for delete and update.
2.In case Insertion find the Primary key to avoid duplication.
3.If any new method plz tel me.
I m new to C#.
Thanx's in advance.
|
|
|
|
|
Hi,
do you need help with your sql-statements?
1. Well, what do you want to delete/update? E.g. if you want to update data for a person, you normally have a row representing this person. If your user enters data in a form to edit this person, you have the primary key, since you loaded this person before.
2. If the primary key will be incremented automatically, you don't need to set one. If it is not, just do a select with the new primary key before inserting the new row.
3. Don't understand the question here. What do you mean by "new method"?
Regards
Sebastian
|
|
|
|
|
Thanx's for your Replay
Actually I m not use a single database.
My application can open any database(MS Access File).
So that i don't know content of file. After open the database it retrieve all data value and header name also.
Know I can view all the data but can't update, delete or insert b'coz
1. Don't know the Primary Key value. some time it gives error.
and Which base I can perform the delete / Update Operation.
|
|
|
|
|
Hmm, I think you are using odbc or something similar to access the database.
One possibility to identify the primary key column could be to use Automation (take a look here http://support.microsoft.com/?scid=kb%3Ben-us%3B317114&x=18&y=5[^].
Then you could open the file using access and find the primary-key column.
Some SQL-DBS offers the possibility to get information abouot the structure by sql statements, but I don't know if access can do this.
Hope this helps you a bit.
Regards
Sebastian
|
|
|
|
|
|
Please don't abuse the articles system. We get enough crap posted in there without having to weed stuff like this out. Articles are places to post, well, articles which should give useful information and advice. They aren't there to post questions.
|
|
|
|