Compile Dll Used By Other Processes When They Shouldn't Be?
Feb 2, 2011DLLs made with VB.Net are different from DLLs made from other ways (i.e. with VB6). I wasn't albe to understand the cause. It might .NET has a bug.[code]...
View 1 RepliesDLLs made with VB.Net are different from DLLs made from other ways (i.e. with VB6). I wasn't albe to understand the cause. It might .NET has a bug.[code]...
View 1 RepliesI have a FixedSingle Form (I actually wan't to simulate the MessageBox). Only if i disable the ControlBox property the Form can be resized.
I have tried VB6 also (just for comparison), where everything is "OK" (as I expected it to work for me).
I'm using VS2008 and have created a dll with the following
Public Class Test
Private privatesampleProperty As String
Public Property SampleProperty() As String
Get
[code]....
From what I can see this should not be visible outside the class...
I've got a WPF application (the WPF part shouldn't make a difference i don't believe).
It loads fine, however whenever I click into a textbox it crashes.
What could be the problem? how can I troubleshoot this?
I have a Linq-to-SQL class diagram in my web application containing the two tables in my database (held in a DBPro database project in the same solution). All was working fine yesterday. I start doing some work tonight and note that the solution compiles fine in Visual Studio, but when I run the web app I get a compilation error:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'FrostAlertDatabaseDataContext' is not defined.
[code]....
I'm working with LINQ in VB.NET and sometimes I get to a query like
For i = 0 To 10
Dim num = (From n In numbers Where n Mod i = 0 Select n).First()
Next
[code].....
How can I convert the first letter of each word in a sentence to upper case? I cannot simply use .ToUpper because some words like "of" shouldn't be converted.Is there an internal function in VB.NET FW2 which do it for me automatically?
View 15 RepliesI currently have the following up in VS 2010
Dim myProcess() As Process = System.Diagnostics.Process.GetProcessesByName("calc")
For Each myKill As Process In myProcess
myKill.Kill()
However I cannot seem to get it to kill more than one process. Example I've tried
("calc",mspaint")
("calc,mspaint")
("calc"),("mspaint")
For some time ago i have notice that my App on every start make a call to csc.exe and starts it. I know for sure that that did not happened before and I can not find out why this is happening now, or better to say: what did I do in code to make this happened? I have google-it and found out that csc.exe is some kind off on-the-fly compiler for C# (If I understand it correctly ) but my App is in VB.net so I am a bit confused. Can someone explain it to me in general what have I did in my VB.NET code to make my App on every start calls csc.exe?
View 17 Repliesim making a task manager and want to get cpu usage of a process this is how my code looks now
For Each proc As System.Diagnostics.Process In pList
Dim lstStuff As ListViewItem = New ListViewItem()
lstStuff.Text = proc.Id.ToString
[code]....
everything works but the cpu part it returns values over 100%?
is there a way to only get the processes that are shown in taskmgr?
The reason for this is because taskmgr hides some task on vista because you have to be admin to see all of it.
i have a small issue while developing a windows application using VB.Net . i will explain the scenario here. My application contains one form which has two tab buttons. say tab1 and tab2. In tab1, i have an option to download data from various sites. this takes few minutes. lets say 15 minutes. and in tab2 i have an option to view the logs. my problem is i am unable to click the tab2 unless and untill the downloading finish. my doubt is how to do more than processes at the same time. if i am right we need to use threading concept here.
View 1 RepliesI have a need to search for a specific process in task manager and attach (dock) my application to the window for that process. I have this working just fine. The problem I'm having is that sometimes this process may be running more than once (for example: running two Internet Explorers would put two iexplore.exe entries in Task Manager).
Is there a way to get the one that was opened first? I'm not sure how they get "sorted" in the Process list, but currently I am retrieving the first occurrence of the process and docking to it, but I'm finding that it isn't always the correct one. How can I make it always dock to the process entry that was opened first?
[Code]...
I'm building my first application in VB2010, this application consists of running 3 different programs; one after the other. I use a progress bar for task progress. My question is on how to make the application go to the next program after finishing with the previous one? Here is some of the code:
Private Sub Timer1_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
ProgressBar1.Increment(1)
If ProgressBar1.Value = 3 Then
[code]....
I'm working on a Parental control
I have 3 questions:
1) How to detect a starting process -
Solved here
2) How to capture a copy of the process and look in all controls from all forms to see if the Text/Items property has offensive keywords
3) If yes, how to close them immediately. - myProcess.kill
Write your code as efficient as you can to reduce CPU load, to consume less energy and protect our planet from global warming.
I have done a lot of searching and cannot find a solution to my problem of, my application appearing in the processes even after exit.
Note: It doesnt appear in the processes due to the type of exit i have used after the click function happens.
Public Class FCAM
Public Sub Launch(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Launch_FCAM_FarCry.Click
Process.Start("....Bin32FarCry.exe", "-MOD:FCAM")
System.Windows.Forms.Application.Exit()
[code]....
i make a kid protect app where the parrents can add a process name to listbox and it will block the process by process kill
View 2 RepliesI am trying to check for certain processes that is running and then inform the user of those processes via textbox like "The programs; -name of the processes running goes here- are running". [code]
View 2 Repliesi am trying to develop a program that will get all the processes in the task manager and from there, i'll get a specific application so that i will restart it. the problem is this:
I can call that specific application yet before restarting it i shall manipulate it's pause button before i can actually kill it,.HOw do i "click" the pause button on the called application? Can you help me with the code that i need to use?
Trying to dim a certain amount of process (determined by Environment.ProcessorCount) to run several processes which do not support multi-threading. I have already Dim'd proinf(6) as Process.ProcessStartInfo because I have designed a queue for the processes and this encounters no errors.
View 1 RepliesI am looking for some code that will end the processes of a running program. I have found many post on how to do so but I have found that they are over complicating things. I am using this code to see if a processes is running.
code
Dim ProcessRuning() As Process
ProcessRuning = Process.GetProcessesByName("example")
Do While ProcessRuning.Length <> 0
[Code].....
I want to act with a service (kill the procces) whenever a process (executable file) comes up.Obviusly it is an Event but I don't know what event is.
View 1 RepliesHow would I get a list of running processes and show it in a listbox? I want it to be able to update.
View 11 RepliesIs it possible to get a list of running application in a remote pc through wireless or wired network?? i tried this code but i get an error
Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses(remote_pc_name)
ListBox1.Items.Add(ps.ToString)
[code].....
i'm making a new project something like a task manager. i could manage to get the names of all running processes
Imports System.Diagnostics
Public Class Form1
Dim proc As Process
[Code]...
it works. it gets process names (but without extentions) what i want to do now is to get the image path of each process. i think i will have to use a different control probably data grid view. can somebody tell me how to add items to datagridview instead of listbox? and how to get each process image path( to data grid view)?
I am making a little program for the Game "Flight Simulator X" and I need to monitor the Process state of the Program.My Main Question is How do you manage a Process so on a Label you can set maybe an If...Then...End If Statement to tell it what to say.
View 3 RepliesI have a program that instantiates Excel, programatically updates it, and then closes it. In some cases, when I look in the task manager/processes, I can still see 1 or more copies of Excel running.
1) Is there a way I can, after creating an object reference to Excel, identify the PID or some other unique identification?
2) Using that, is there a way, after I think I have told Excel to go away, to see if the PID (or whatever) is still active?
3) Given that I have a PID, can I get a new object reference and try to tell it to go away nicely
4) If it still won't go away, can I force an end process of the task?
5) Is there a library or routine available that will return the active processes so I can search to see if there are any copies of Excel still running?
6) using the approach in 5, can I also find out if the item associated with the PID is running just as a process and not as an application?
I want to be able to cycle through the active processes on the system and find when my program starts? It has the name 'Calculate Distance' as the form1.vb text. There fore, I want to be able to close a splash screen when the form1 loads. This requires checking currently running processes. How do I do that in VB.NET 2005?
View 1 RepliesI have a snippet how to kill multiple instances of one proccess
Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName("notepad")
For Each p As Process In pProcess
p.Kill()
Next
If i want to kill multiple instances of "notepad","excel" and "word" how the code should look?
I made an application that helps facilitate malware removal by running a bunch of different CLI scanners at once; among other things.
The app was made to run in normal and safe mode. The problem, is that since it has been made to run in normal mode, it essentially becomes useless if the malware has installed a rootkit that kills executables as they open or if they've messed with the exe file association in the registry.
So, to get my app to run, I thought to do 2 things.
First, change the file association of my app to either .com, scr, or .pif so that it can still launch but won't be affected by messed up reg keys or identified by the rootkit.
But, I still need to worry about that rootkit for the other apps.
So I thought to just kill all non essential processes.
What would be the best way to accomplish this?
I thought of two different ways:
I could either have a pre-compiled list of system processes that need to stay running or when looping through the processes, I can identify each by a specific property, like company name or something else.