|
It is not possible with .NET. AFAIK, it's not even possible on the newer Windows versions.
xacc.ideIronScheme a R5RS/R6RS-compliant Scheme on the DLR
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Well Leppie,thanks for the reply...
but i think that it is possible to check the box containing "Allow System to interact with Desktop" via code.Here is the code...
RegistryKey ckey=Registry.LocalMachine.CreateSubKey(@"SYSTEM\CurrentControlSet\Services\",this.ServiceName);
if (ckey != null)
if (ckey.GetValue("Type") != null)
ckey.SetValue("Type", ((int)ckey.GetValue("Type") | 256));
This code runs well and the box is checked,when I call it in myService.cs file.But I think that I got to do this in projectinstaller.cs file at the method OnBeforeInstall() and OnAfterInstall() accordingly.But my problem is that its not working when I put inside above methods.Could anybody suggest me the Right way??
Any type of advice is welcome.
thank u.
|
|
|
|
|
how to check the box in the windows service containing "Allow System to interact with desktop" via c# code?Where should this method be kept?Is we put this into the methods such as BeforeInstall() or AfterInstall(),Do we need to call it in our Service.cs file??
Please help me.
Thank u.
|
|
|
|
|
Don't know, but have you tried a google or msdn search?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I already got the solution.I get to change the value of registry and set it to 272 and all i got to do is to restart the computer.
anyway thanks.
|
|
|
|
|
|
Reflection, I guess.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Something like the following should do it for you...
ArrayList namespaces = new ArrayList();
foreach(Type t in System.Reflection.Assembly.GetExecutingAssembly().GetTypes())
{
if(!namespaces.Contains(t.Namespace))
{
namespaces.Add( t.Namespace );
}
}
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
Try this: Assembly.GetName() Examine the returned object to get the data you need
|
|
|
|
|
Through reflections.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I want to build an application that will enable the user to create chart of accounts in nXn(n by n) tree structure. I want to use data structures to do so. The user should be able to not only add new nodes to the tree but also manipulate the data in the tree using references to parent and child nodes(Traversing). Please, help me and provide a solution ASAP.
Thank You.
HASAN ABBAS
|
|
|
|
|
Basically, i would just use the treeview.
But if not have a struct or class for your node, and within it, have a list of itself:
class Node
{
List<node> nodeCollection;
...
}
My current favourite word is: Bauble!
-SK Genius
|
|
|
|
|
I implemented a simple AVL-tree (that are balanced trees) - the code will only compile in .net 3.5 (because I use some simple LINQ to object statements and a lot of var-declerations) but you should be able to modify it to .net 2.0 without problems (.net 1.1 is not that easy because I use generics for the tree-structures)
I only commented the code in german but I can send you the files if you PM me your adress.
|
|
|
|
|
Hi,
Even I am working on similar tree-project. I have already performed lot of research on it but not getting some proper result.
Can you please mail your code on ujjavalmodi@gmail.com
It would be a great help.
Thanx in advance !
Regards,
Ujjaval Modi
Manpower moves wrenches, horsepower moves cars, and the power of the mind moves the world.
|
|
|
|
|
Hey!! I'd love to have ur code. My email ID is hasanabbas19@hotmail.com.
Thanks.
HASAN ABBAS
|
|
|
|
|
Hi,
I'm not at office for till Jan. 9th but I will send you the files on first ocassion.
|
|
|
|
|
Ok, thx for ur cooperation buddy. I am working on it in the meantime. I think I have come up with some kinda solution. But, please do send the code anyhow.
Thanks again for ur cooperation.
HASAN ABBAS
|
|
|
|
|
Hasan_Abbas wrote: provide a solution ASAP
Nope.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How can i use The cameras depending on
a number of cameras that i want them to do at the same time ?
Is this posible with Webcamcapture library ?
if not,Do you know how to solve by using thread ?
|
|
|
|
|
Not sure. Good luck.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I have one programme, which may needs many loops, I found if the loop is too large, then after the running is done, the speed of computer is very slow. Then I want to know is there method to clear the
memory after each loop?
|
|
|
|
|
In order to force garbage collection, you would use GC.Collect() but this is an expensive operation. Let the garbage collector work out when it needs to collect from your application. I suspect that your real issue is that you have items that aren't being disposed - thus taking up memory.
|
|
|
|
|
What do you do in the loop ? How much memory do you end up using ? Unless you're creating objects in the loop and not cleaning them up, GC.Collect is going to do precisely zero for you.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks a lot.
related to this quesiton, I have several small questions to trouble you:
1) I use many static variables in my program, does this influence the memory?
2) in the loop I mentioned, I do create several temporal objects such as Dictionary<key, string=""> dic1=new Dictionary<key, string="">, does this will influence the memory? or this can be automatically released when one loop is finished?
thanks again.
|
|
|
|
|
Hi everybody,
I am using toolstrip menuitems in my form.Problem is that when menuitem is disabled and mouse is moved over it,it shows a rectangle on that menuitem as if it is active.
so,I want that rectangle should not appear when menuitem is disabled.
thanks
|
|
|
|