You can use the Label control to display the text from an array. The following code would help you do the same:
Dim sport(3) As String
sport(0) = "Soccer"
sport(1) = "Cricket"
sport(2) = "Rugby"
Me.Label1.Text = sport(0) & ControlChars.NewLine & sport(1) & ControlChars.NewLine & sport(2)...
Check the following which describes a basic client server application in which the data is transferred to and fro:
http://www.eggheadcafe.com/articles/20020323.asp
Regards,
Dave
It would be hard to guess what exactly the problem is. Try adding error handlers to see the exact error message which is causing crash i.e. add Try Catch blocks and check for the exception message as shown below:
Public Sub ServerSendData()
Try
Dim bytes() As Byte =...
duplicate Form on VB.Net 2003
Hello,
Use the code below to achieve the desired:
Dim frm As New Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If frm Is Nothing Then
frm = New Form2
End If...
Hello,
You may use the SelectedItem property of the ListBox. The code below achieves the desired:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.ListBox1.Items.Add("one")
Me.ListBox1.Items.Add("two")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.