|
That's look like a loop. Try again.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Oh, I'm sorry, my bad.
void Yay()
{
ThreadStart starter = new ThreadStart(DoWork);
Thread thread = new Thread(starter);
thread.Start();
}
void DoWork()
{
while(!perfectCircle)
{
DoSomething();
}
}
Would this be OK?
|
|
|
|
|
LOL threads come and go in programs, and it will change depending on what your doing in the app and perfect timing. And seriously what is "degree of multi threading"?
|
|
|
|
|
hello every body.
i want creat a program in c# that can run other C# program (exe) and show one of the form in it.
please help.
thanks.
modified on Monday, May 4, 2009 2:42 AM
|
|
|
|
|
use
System.Diagnostics.Process
*12Code
|
|
|
|
|
thanks.
but how to call a form (with handle) that is not main form in destination program.
|
|
|
|
|
Either you can sue System.Diagnostic.Process.Start or just create an object of the other C#.net class and execute it.
Either you love IT or leave IT...
|
|
|
|
|
saanj wrote: Either you can sue System.Diagnostic.Process.Start
Sue it on what grounds?
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
For invading privacy of other program?
जय हिंद
|
|
|
|
|
Possible!! I am giving up programming now!!!.....
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
no it is because my programs have some relations with each other in some cases and I need it
|
|
|
|
|
in a company two programs have some relations with each other i want it for this reason thanks
|
|
|
|
|
can you help me how and with which namespace i can do it.thanks
|
|
|
|
|
As both 12Code and saanj mentioned, look at System.Diagnostics .
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Hi there,
I am creating a Windows form, of which, I have removed the title bar which addresses the Minimize, maximize and close buttons, by defining the FormBorderStyle entry as None. However, I have added the minimize and close button on the top right corner of my Border/Title less form. But the problem is, when I try to drag the form from one location of the desktop to another, it doesn't seem to move and remains static in its original location. Can anyone offer me a solution to this?
Your help will greatly be appreciated,
Thanks,
Rajdeep.NET
|
|
|
|
|
Just add this code to your form
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0084 )
{
m.Result = (IntPtr)2;
return;
}
base.WndProc(ref m);
}
|
|
|
|
|
Here's where .net is really useful !
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Hi T_Lokzz,
Thanks for your help man , the code really worked out!!!!! I'm feeling so happy.... thank you once again,
Rajdeep.NET
|
|
|
|
|
No problem man I was really pissed when I first realized that also and found that code somewhere Google searching
|
|
|
|
|
Hi All,
Using a Windows service I want to find all login users into a PC. I've try to loop all the process in the system and collect user names? Any clues
Thanks a lot
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
Ok I have been having the most trouble with the Process class. It keeps throw Access Is Denied for everything. I stumbled across this.
[HostProtectionAttribute(SecurityAction.LinkDemand, SharedState = true, Synchronization = true,
ExternalProcessMgmt = true, SelfAffectingProcessMgmt = true)]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
Now I have no clue about this but I know your supposed to put above a func, constructor and all that. How can I just give my app all these permissions. Or better yet is there a better way to stop these rediculous exceptions. It happens on HasExited, Kill, Close, etc.
modified on Monday, May 4, 2009 2:03 AM
|
|
|
|
|
Where is the code being launched from and what does your code that uses the Process class look like.
|
|
|
|
|
Declaring
AobotProc = new Process();
AobotProc.StartInfo.FileName = AOPath + "//" + AOExe;
AobotProc.StartInfo.Arguments = "-run -hide";
AobotProc.StartInfo.WorkingDirectory = AOPath;
AobotProc.EnableRaisingEvents = true;
AobotProc.Start();
AobotProc.Exited += new EventHandler(aobot_proc_Exited);
and errors wen
if (AobotProc != null && !AobotProc.HasExited)
{
if (!AobotProc.CloseMainWindow())
AobotProc.Kill();
}
errors at AobotProc.HasExited saying Access Is Denied
|
|
|
|
|
What version of the .NET Framework are you using?? Is this code running under Vista??
|
|
|
|