Joke Collection Website - Public benefit messages - I want to use VB programming to make a process monitoring program.
I want to use VB programming to make a process monitoring program.
Private declaration function findnowlib "user 32" alias "findnowa" u
(ByVal lpClassName in string form, ByVal lpWindowName in string form).
The private declaration function is the window library "user 32”(ByVal hwnd As Long).
As long as Dim lngAns
LngAns = FindWindow(vbNullString, "form title")
lngAns = IsWindow(lngAns)
If lngans < > then 0
MsgBox "Form has been loaded!" ,vbOKOnly
end
other
MsgBox "Form not loaded!" ,vbOKOnly
If ... it will be over.
VB6 method 2 Dim frm As Object
Dim blnFlag is a boolean value.
For each frm in the form
If frm. Caption = "Form Title" and then
blnFlag = True
Quit for ...
If ... it will be over.
The next frm
If blnFlag, then
MsgBox "Form Loaded"
other
MsgBox "Form not loaded"
End if VB. NET code (simple need to change, VB6 can also run) public function midchi (byval frmname as string) is Boolean.
Dim windows. Form form
For every thought in my heart. MdiChildren
If Chiffm. Then Name = frmName
If Chiffm. Visible at that time
Chiffm. Activate ()
other
Chiffm. Show ()
If ... it will be over.
Return True
If ... it will be over.
then
Returns False
end function private Sub menuitem 7 _ Click(ByVal sender As System。 Object, ByVal e as the system. EventArgs) processing MenuItem7. click
If midchi(“frm computer ") then
outlet connection
If ... it will be over.
Dim frmCp as the new frmComputer
frmCp。 MdiParent = me
frmCp。 Show ()
End joint
- Previous article:I'm afraid of sending a text message to the teacher.
- Next article:How to write the personal profile of the interview agency?
- Related articles
- Shijiazhuang epidemic prevention consultation telephone number is 24 hours.
- Do you call Xinyi micro-loan?
- How to draw cuteness in the remaining blank of handwritten newspaper?
- Is it credible to push stocks with a flush message?
- How many days can express parcels be stored at the rookie station? Must I pick it up on the same day? I didn't pick it up on the same day. Is there a charge the next day?
- How to open Unicom's 5G SA service?
- I downloaded a mobile phone client with my mobile phone to send a fetion asking for money. We are good friends, but he is not online. Do you want me to send it to you for money?
- Today, I saw a poster of 58 yuan's activities posted at the door. When I bought it, I got a 10% discount. It was a tragedy when I paid, saying that cash was not allowed and I could only use a membersh
- How to write a recruitment template
- Data SMS MMS