473,388 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

VB 2005-MessageBox problems?

Hi i have built a mobile phone in VB 2005.I am having difficulty getting it to send messages to another Form(another mobile phone image)
I can get it to send a static message ie:if i type the message in code(On both forms) to send to the other form "Hello Moto" for example-but unable to type that in the message box of the ist phone and get it to display in the message box of the second phone whilst running the program?Any ideas would be very gratefully received as this is needed asap-with thanks
Public Class Mobile_Phone
Dim starPressed As Boolean
Dim phoneLocked As Boolean
Dim phoneUnLocked As Boolean
Dim hashPressed As Boolean
Dim mobile2 As Boolean
Dim msgBox2 As String
Dim messages As String


Private Sub Mobile_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
btnScroll.Enabled = False
starPressed = False
phoneLocked = True
lblLock.Text = "Lock"
Me.PictureBox2.Show()



End Sub

Private Sub btnOFF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOFF.Click
Me.PictureBox2.Show()
phoneBook.Hide()
phoneNumbers.Hide()
MsgBox1.Hide()
btnScroll.Enabled = False
btnMsg.Enabled = False
LblSend.Hide()
MsgBox1.Clear()
btnMsg.Enabled = False


End Sub

Private Sub btnStar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStar.Click
btnScroll.Enabled = False
btnOFF.Enabled = False
btnON.Enabled = False
PhoneLocked = True
btnMsg.Enabled = False



End Sub

Private Sub phoneBook_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles phoneBook.SelectedIndexChanged
Me.Show()
End Sub

Private Sub btnON_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnON.Click
Me.PictureBox1.Visible = True
btnScroll.Enabled = True
btnMsg.Enabled = True
Me.PictureBox2.Visible = False
LblSend.Hide()
MsgBox1.Hide()


End Sub

Private Sub btnScroll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnScroll.Click
phoneBook.Show()
phoneNumbers.Show()
MsgBox1.Hide()
LblSend.Hide()
End Sub

Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
End Sub

Private Sub btnHash_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHash.Click
btnScroll.Enabled = True
btnOFF.Enabled = True
btnON.Enabled = True
PhoneLocked = False
btnMsg.Enabled = True
End Sub

Private Sub btnMsg_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMsg.Click
Messages = MsgBox1.Text
MsgBox1.Show()
phoneNumbers.Hide()
LblSend.Show()
MsgBox1.Text = "Hello Moto"
End Sub

Private Sub LblSend_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs ) Handles LblSend.LinkClicked
frmMobile2.Show()


End Sub
Private Sub MsgBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MsgBox1.TextChanged


End Sub
End Class

Form 2
Public Class frmMobile2
Dim MsgBox1 As String
Dim Messages As String
Private Sub Mobile2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Show()

End Sub

Private Sub MsgBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MsgBox2.TextChanged

MsgBox2.Text = "Hello Moto"

End Sub

Private Sub lblOFF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblOFF.Click
Me.Close()
End Sub
End Class
Dec 3 '06 #1
0 1597

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: melledge | last post by:
The Reliable Source for Everything XML - XML 2005 Update XML 2005 - November 14-18 - Atlanta Hilton Hotel - Atlanta, GA www.xmlconference.org Register today and participate in IDEAlliance's...
0
by: Marcel - IDUG Europe 2005 | last post by:
Dear DB2 user, My name is Marcel Lévy and I'm a member of the IDUG 2005 Europe Conference Planning Committee. ********************************************************************* Mark your...
9
by: William LaMartin | last post by:
Does anyone know when we can actually purchase Visual Studio 2005 Professional or the upgrade and have it shipped immediately? First Microsoft said that it would be released Nov. 17. When Nov...
1
by: QLD_AU | last post by:
Has anyone see the following error ? VS 2005 Installs ok, however the SQL Mobile Edition (part of a full install) fails with the following error ? With Thanks Jason
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
9
by: Leon | last post by:
Hi Everybody. I have my website developed in VS 2003. Now I want to upgrade my website to VS 2005 and develop new web pages in a new environment. What steps should I take to upgrade? I cannot find...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.