H
Hogan's Goat
Hi, another newbie question here. Believe it or not, I've got something
that's pretty slick in that it gets the name of all running apps and
populates a combobox. What I want to do is test to make sure I can do
something with it, so I just want to put it out to a label I ahve on the
form (this is just for a test, the label won't be in the finished product,
I gess I could use a message box as well).
Here's my code:
Private Sub btnGetIt_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnGetIt.Click
Dim objProcess As Process
For Each objProcess In System.Diagnostics.Process.GetProcesses
If objProcess.MainWindowTitle <> "" Then
cboProcessesList.Items.Add(objProcess.MainWindowTitle)
End If
Next
lblSelectedApp.Text = cboProcessesList.SelectedText.ToString
End Sub
OK, I know that last line before the End Sub is lame, but I just want to be
able to put the selected app out to a label. I figure, if I can do that I
can do a lot with it. It's late here (after midnight) and I'm low on
ideas.
that's pretty slick in that it gets the name of all running apps and
populates a combobox. What I want to do is test to make sure I can do
something with it, so I just want to put it out to a label I ahve on the
form (this is just for a test, the label won't be in the finished product,
I gess I could use a message box as well).
Here's my code:
Private Sub btnGetIt_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnGetIt.Click
Dim objProcess As Process
For Each objProcess In System.Diagnostics.Process.GetProcesses
If objProcess.MainWindowTitle <> "" Then
cboProcessesList.Items.Add(objProcess.MainWindowTitle)
End If
Next
lblSelectedApp.Text = cboProcessesList.SelectedText.ToString
End Sub
OK, I know that last line before the End Sub is lame, but I just want to be
able to put the selected app out to a label. I figure, if I can do that I
can do a lot with it. It's late here (after midnight) and I'm low on
ideas.