Question Locked

Create Popup Box Like Messenger in Visual Basic 6.0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to create a Popup box like messenger. When i give the particular IP address of system then on that system popup box appears and communicate with each other.

Please solve my problem how to create this?

Please send your advice on this email address.

pankajsriv1@rediffmail.com

Thanks & Regards

Pankaj

3 replies

by kunalich

hey pankaj have u got the answer of your question. (messenger in VB).plz forward it to me if u have it.

by Former member

http://www.codeguru.com/columns/vb/article.php/c6541/
http://www.wonderhowto.com/how-to/video/how-to-program-a-pop-up-message-box-in-visual-basic-173795/

Example code

Here are some examples of the language:

Program to display a pop-up message box with the words "Hello, World!" on it:

Private Sub Form_Load()
MsgBox "Hello, World!"
End Sub

Program to display an input box:

Sub Main()
Dim a As String
a = InputBox("Enter your name:")
MsgBox a
End Sub

Running Another Application Using Visual Basic:

Private Sub Run_Notepad()
Shell "notepad.exe", vbMinimizedFocus
'opens notepad
End Sub

Printing multiplication table of 5 on form:

Private Sub PrintMul_Click()
Dim I As Integer
For I = 1 To 10
Print 5; " x "; I; " = "; 5 * I
Next I
End Sub

Displaying all prime numbers below 100:

Private Sub DisplayPrimeNumbers()

Dim Num As Long
Dim NN As Long
Dim IsPrime As Boolean

For Num = 2 To 100
IsPrime = True
For NN = 2 To Int(Num / 2)
If Num Mod NN = 0 Then
IsPrime = False
Exit For
End If
Next
If IsPrime Then
MsgBox CStr(Num) + " is a prime number!"
End If
Next

End Sub
..........................................

Please post back if you have any more problems or questions.

This discussion is closed to new replies.