Hello All,
I'm new to this whole "classes" tier of the three tier data model, so please be kind:).
I have a .dll -- I want to place data into classes from textboxes on a form that then gets placed into a form in my .dll from those created classes:
1) I have no idea of any of the info from the form that I would receive the info from
Better yet: For example;
I have a form that has a textbox (txtPhone) that contains a phone number in it , I would like to get that data from the texbox into a class in my .dll, and then place it in a textbox (txtphone) that I have on a form inside my .dll
Sorry, if it's confusing......imagine what I think... Any help on how to go about this would be VERY much appreciated...thanks. Zcast
Loading
Kevin DavisPosted Jun 25, 2011, 3:42 PM
VulpesPosted Jun 25, 2011, 3:34 PM
Kevin DavisPosted Jun 25, 2011, 3:23 PM
Public Class phone
Public m_Phone As String
Public Property Phone As String
Get
Return m_Phone
End Get
Set(ByVal value As String)
m_Phone = value
End Set
End Property
End Class
This is the code in the .exe form (not in the .dll):
Private Sub btnSendMessage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSendMessage.Click
Dim mc As New phone
mc.m_Phone = Me.txtPhone.Text
If txtPhone.Text = "" Then
MsgBox("Please enter a phone number to text.", MsgBoxStyle.Exclamation, AcceptButton)
Else
Dim form As New frmSend
SMS.sms.ShowSendForm()
form.txtPhone.Text = mc.m_Phone
End If
End Sub
BUT.....the txtphone textbox on the form in my .dll (frmsend), still does not populate with the number from the from in the .exe. The code looks correct to me, but not working........bot txtPhone textboxes (the .exe one, and the .dll one are both set to public.
VulpesPosted Jun 25, 2011, 1:16 PM