Click here to Skip to main content
15,917,862 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalsetting text in another form Pin
V_A_S_S19-Sep-04 14:24
V_A_S_S19-Sep-04 14:24 
GeneralRe: setting text in another form Pin
Colin Angus Mackay19-Sep-04 14:58
Colin Angus Mackay19-Sep-04 14:58 
GeneralRe: setting text in another form Pin
Nick Seng19-Sep-04 15:16
Nick Seng19-Sep-04 15:16 
GeneralRe: setting text in another form Pin
V_A_S_S19-Sep-04 15:22
V_A_S_S19-Sep-04 15:22 
GeneralRe: setting text in another form Pin
Nick Seng19-Sep-04 15:27
Nick Seng19-Sep-04 15:27 
GeneralRe: setting text in another form Pin
V_A_S_S19-Sep-04 15:42
V_A_S_S19-Sep-04 15:42 
GeneralRe: setting text in another form Pin
Nick Seng19-Sep-04 16:12
Nick Seng19-Sep-04 16:12 
GeneralRe: setting text in another form Pin
V_A_S_S19-Sep-04 16:29
V_A_S_S19-Sep-04 16:29 
I found a article with the follwing code:


Public Class Form1
Inherits System.Windows.Forms.Form
Dim F2 As New Form2

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowButton.Click
F2.ShowDialog(Me) ' Show Form2
Me.UserLabel.Text = "Current User : " & Form2.NuNameTB.Text

End Sub


======================================================================

Public Class Form2
Inherits System.Windows.Forms.Form
Public Shared NuNameTB As TextBox

Private Sub CloseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseButton.Click
' Assign this form's TextBox to the Object Variable
NuNameTB = UsersName
' Now close the form
Me.Close()
End Sub
================================================================

it seems to be working ok. Thank you for all the support Nick and Colin. VB.NET is a bit annoying sometimes. Now if i could get help about the paper size collection. Wink | ;)
Thanks again.

Trying to find the way
GeneralRe: setting text in another form Pin
Dave Kreskowiak20-Sep-04 5:16
mveDave Kreskowiak20-Sep-04 5:16 
GeneralPaper size collection Pin
V_A_S_S19-Sep-04 12:49
V_A_S_S19-Sep-04 12:49 
GeneralGet emails from account Pin
umarinam19-Sep-04 12:10
umarinam19-Sep-04 12:10 
GeneralRe: Get emails from account Pin
Christian Graus19-Sep-04 12:35
protectorChristian Graus19-Sep-04 12:35 
GeneralRe: Get emails from account Pin
umarinam19-Sep-04 12:43
umarinam19-Sep-04 12:43 
GeneralRe: Get emails from account Pin
Christian Graus19-Sep-04 12:46
protectorChristian Graus19-Sep-04 12:46 
GeneralRe: Get emails from account Pin
umarinam19-Sep-04 12:51
umarinam19-Sep-04 12:51 
Generalusing C# dll in VB.Net Pin
hagridcracker19-Sep-04 4:04
hagridcracker19-Sep-04 4:04 
GeneralRe: using C# dll in VB.Net Pin
Christian Graus19-Sep-04 12:34
protectorChristian Graus19-Sep-04 12:34 
GeneralRe: using C# dll in VB.Net Pin
hagridcracker19-Sep-04 16:08
hagridcracker19-Sep-04 16:08 
GeneralRe: using C# dll in VB.Net Pin
Christian Graus19-Sep-04 16:14
protectorChristian Graus19-Sep-04 16:14 
GeneralRe: using C# dll in VB.Net Pin
hagridcracker20-Sep-04 3:34
hagridcracker20-Sep-04 3:34 
GeneralRe: using C# dll in VB.Net Pin
Sendilkumar.M20-Sep-04 2:07
Sendilkumar.M20-Sep-04 2:07 
GeneralRe: using C# dll in VB.Net Pin
hagridcracker20-Sep-04 5:43
hagridcracker20-Sep-04 5:43 
GeneralProblem Solved Pin
hagridcracker22-Sep-04 8:47
hagridcracker22-Sep-04 8:47 
GeneralAbout comboboxes Pin
Rylogy19-Sep-04 2:47
Rylogy19-Sep-04 2:47 
GeneralRe: About comboboxes Pin
Mekong River19-Sep-04 3:09
Mekong River19-Sep-04 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.