Luizdodibre
Luizdodibre
CC#
Created by Luizdodibre on 7/16/2023 in #help
✅ Listview color
I misunderstood, sorry
11 replies
CC#
Created by Luizdodibre on 7/16/2023 in #help
✅ Listview color
How can i make this?
11 replies
CC#
Created by Luizdodibre on 7/16/2023 in #help
✅ Listview color
winforms
11 replies
CC#
Created by Luizdodibre on 10/19/2022 in #help
wait for processes [closed]
ok thanks
6 replies
CC#
Created by Luizdodibre on 10/19/2022 in #help
wait for processes [closed]
a process that I started
6 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
Ok thanks
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
okay, I'll look
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
@Kouhai OK. but how can I be ""notified""
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
@Kouhai yes it is running every 5ms just so the application can't even run (but I don't know any other way to do this without using a thread)
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
@Anchy the code looks like this
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
internal void exc()
{
if (!hasStarted)
{
hasStarted = true;
var ff = new Form();
int flag = 0;
Thread eventThread = new Thread(() =>
{
while (keepRunning)
{
Thread.Sleep(5);
Process[] ps = Process.GetProcesses();

foreach (Process pr in ps)
{
if (pr.ProcessName.Contains("notepad++"))
{
flag += 1;
try
{
pr.Kill();
if (flag == 1)
{
this.Invoke((MethodInvoker)delegate { ff.Show(); });
}
}
catch (Exception ex)
{
keepRunning = false;
MessageBox.Show($"Oops! {ex}", "Error");
}
}
}
}
});


eventThread.IsBackground = true;
eventThread.Start();
}
}
internal void exc()
{
if (!hasStarted)
{
hasStarted = true;
var ff = new Form();
int flag = 0;
Thread eventThread = new Thread(() =>
{
while (keepRunning)
{
Thread.Sleep(5);
Process[] ps = Process.GetProcesses();

foreach (Process pr in ps)
{
if (pr.ProcessName.Contains("notepad++"))
{
flag += 1;
try
{
pr.Kill();
if (flag == 1)
{
this.Invoke((MethodInvoker)delegate { ff.Show(); });
}
}
catch (Exception ex)
{
keepRunning = false;
MessageBox.Show($"Oops! {ex}", "Error");
}
}
}
}
});


eventThread.IsBackground = true;
eventThread.Start();
}
}
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
however this demands a lot of CPU and I don't know another effective way or that doesn't spend so much cpu
20 replies
CC#
Created by Luizdodibre on 10/9/2022 in #help
Process Checker [Answered]
@Peep i'm checking every certain time if the process (I'll give an example) notepad.exe was executed if it was it terminates the process
20 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
blushowo
53 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
that. i am creating it just to learn more about c#
53 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
I'm doing this because I'm trying to "create" an ""antivirus""
53 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
Ok
53 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
I thought of recording the name and time
53 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
Yes.
53 replies
CC#
Created by Luizdodibre on 10/7/2022 in #help
Files on desktop
I think complex would be little '-'
53 replies