home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{26F67CA6-5AD8-11D3-8FCF-0080C87630EC}#7.0#0"; "WinNetworkComm.ocx"
- Begin VB.Form TestSimulator
- Caption = "Form1"
- ClientHeight = 1860
- ClientLeft = 60
- ClientTop = 375
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 1860
- ScaleWidth = 4680
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command2
- Caption = "Command2"
- Height = 195
- Left = 2400
- TabIndex = 3
- Top = 1560
- Width = 2055
- End
- Begin VB.TextBox lABEL1
- Height = 1455
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 2
- Top = 0
- Width = 4575
- End
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 255
- Left = 0
- TabIndex = 1
- Top = 1560
- Width = 2055
- End
- Begin WinNetworkComm.WinPoPupEmulator WinPoPupEmulator1
- Height = 495
- Left = 0
- TabIndex = 0
- Top = 0
- Visible = 0 'False
- Width = 735
- _ExtentX = 1296
- _ExtentY = 873
- End
- Attribute VB_Name = "TestSimulator"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim cpt As Integer
- Private Sub Command1_Click()
- WinPoPupEmulator1.SendToWinPopUp "moi", ".", "test" & cpt
- cpt = cpt + 1
- End Sub
- Private Sub Command2_Click()
- WinPoPupEmulator1.SendToWinPopUp "moi", ".", "test" & cpt
- cpt = cpt + 1
- WinPoPupEmulator1.SendToWinPopUp "moi", ".", "test" & cpt
- cpt = cpt + 1
- End Sub
- Private Sub Form_Load()
- cpt = 1
- WinPoPupEmulator1.Initialisation
- Debug.Print WinPoPupEmulator1.MailSlotHandle
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- WinPoPupEmulator1.CloseSimulator
- End Sub
- Private Sub WinPoPupEmulator1_MessageWaiting(NbrMessageWaiting As Integer)
- Dim x As Integer
- For x = 1 To NbrMessageWaiting
- lABEL1.Text = lABEL1.Text & vbCrLf & "Message From " & WinPoPupEmulator1.MessageFrom(1) & vbCrLf & WinPoPupEmulator1.MessageText(1)
- WinPoPupEmulator1.ClearMessage (1)
- End Sub
-