|
What kind of app is this? When it's a local windows forms app trying to write a central log every time a user starts it, it's bound to fail. The all users folder is just the one that needs admin rights.
You could implement the logical part as a windows service running under the system account, and the UI part communicating with it via remoting.
|
|
|
|
|
Thanks a million for the reply! The structure I'm designing is a standard windows form app. I was assuming that the AllUsers folder would allow any user to read/write to it. The "windows service" and "remoting" option is of great interest to me! Those are topics that I'm not too familiar with. I plan to do some research on this issue but do you know of any good resources that explain these topics?
"Make it as simple as possible, but no simpler" Issac Newton
|
|
|
|
|
Well, the all user folder is there for application wide data, so logically some poor user must not have writing access. Otherwise they could place settings there from which all other users would suffer.
As to the concepts of services and remoting: There may be books, but I don't know. My policy has always been to read a little MSDN, try it out, read a little more MSDN, or someting else (like a code project article), and try it out again.
There are examples for services in Visual Studio online help, and examples for remoting as well. And you may find introductions to both in the code project data base.
Meaning I can't help you there on the spot; I'd have to write a textbook to do so. But you can look at the examples in MSDN and Code Project, and when you get stuck you can post back here and get some help.
|
|
|
|
|
Hello,
I use a datagridcheckbox column but I don't know how to get and set the value of each check box.
Thanks.
Dad
|
|
|
|
|
dataGridView1[Cindex, Rindex].Value = 1;
dataGridView1[Cindex, Rindex].Value = 0;
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks for help,I use the rowheaderdoubleclick event to allow user check the cell when double clicking its header your code works well but after I leave the row and click an other.
Dad
|
|
|
|
|
|
Did you know, CodeProject has an ASP.NET forum for these kinds of questions?
|
|
|
|
|
Sorry. Message was deleted and posted in ASP.NET.
Thanks.
King Regards!
countNazgul
|
|
|
|
|
countnazgul wrote: Message was deleted
Don't do that once someone replies. Just remember to post in correct forum next time
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi guys,
I am working on a program which reads and writes XML for plugin objects. In some instances a plugin might not be available, for example if a document is loaded on a computer which does not have the plugin installed. So to remedee this situation I am writing a class which will store all of the origionally read XML and then later restore that XML to the document.
Is there a simple way to read an entire XML subtree (of a particular XML element) into a string using an object of the XmlReader class? This would be fantastic because this would solve my problem instantly.
From past work I seem to remember something about writing raw XML into a file, however I cannot find anything about reading an entire subtree as a string in MSDN. Any help would be fantastic!
Best regards!
Lea Hayes
|
|
|
|
|
lhayes00 wrote: Is there a simple way to read an entire XML subtree (of a particular XML element) into a string using an object of the XmlReader class?
Why not go with XMLDocument class and use XPath to get the element and child elements. Look at the "innerXML" property to get a string representation of the entire element.
|
|
|
|
|
Hi!
That's exactly what I needed!
Thanks!!
Lea Hayes
|
|
|
|
|
Hey all... I am working with .NET 1.1 (!) and I am trying to find a method that canonicalizes a filesystem path. Basically the .NET equivilent of the Win32 Shell API function PathCanonicalize(...) .
What I need to do is convert a path like:
C:\Program Files\Company\App\User1\Data\Res<code>\..\..\..\</code>User2\Data\Media To:
C:\Program Files\Company\App\User2\Data\Media I am sure I can write code to do it (I had to in C++ before to get around the shell functions' MAX_PATH limit), but want to know if a method exists.
Searching for "Canonicalize" in the MSDN help and in this forum does not yield anything useful.
Adva[Thanks ]nce!
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hi.
Long time since 1.1.
Have you tried the DirectoryInfo object ?
DirectoryInfo di = new DirectoryInfo(@"C:\Program Files\Company\App\User1\Data\Res\..\..\..\User2\Data\Media");
Then the di.FullName would give C:\Program Files\Company\App\User2\Data\Media
Kjetil
|
|
|
|
|
I think that will do it!
Thanks!
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
This is what Path.GetPath() is there for (System.IO namespace).
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
No such method. Perhaps you meant Path.GetFullPath (...)?
I am realizing that the documentation is lacking simple terms like "Canonicalize" unless it is talking about a URL...
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Apologies, I meant GetFullPath.
Still, I don't think that deserved a 1 (not from you, obviously, but some random guy)
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
That was me... I hit the "not helpful" button thinking it was separate from the normal rating/voting buttons on the bottom right of the message.
Sorry.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Never mind
As you've probably found out, you can change your votes now with the .net version of CP.
Cheers,
Vikram.
The hands that help are holier than the lips that pray.
|
|
|
|
|
Dear all,
I want to create a mp3 player use Windows Media Player control,but I cann't find any reference assembly in my Visual Studio 2008 ,What should I do?
Thanks very much.
|
|
|
|
|
Dear developers,
my managed C#-Code calls an unmanaged C++-Class-Method which allocates an array of integers (int *pInt = new int [5])and returns a reference to this array.
How can I use this reference in my C#-Code without copying the values in the array.
So far I didn't find any solution.
Kind regards
|
|
|
|
|
Hi,
AFAIK you can't. The only way I am aware of that avoids copying is by allocating the array
on the managed side, pass it to the unmanaged side, and let it fill it there.
The rationale is the managed metadata needs to be added to the raw data, and .NET is unable
to do that for existing data.
|
|
|
|
|
seems reasonable what you say
Thanks ! !
|
|
|
|