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

Visual Basic

 
GeneralRe: multiple web chart in a data repeater. Pin
uglyeyes6-Mar-06 14:53
uglyeyes6-Mar-06 14:53 
AnswerRe: multiple web chart in a data repeater. Pin
FeRtoll6-Mar-06 15:41
FeRtoll6-Mar-06 15:41 
GeneralRe: multiple web chart in a data repeater. Pin
uglyeyes6-Mar-06 18:44
uglyeyes6-Mar-06 18:44 
GeneralRe: multiple web chart in a data repeater. Pin
FeRtoll6-Mar-06 19:28
FeRtoll6-Mar-06 19:28 
QuestionSending info from Form1 to Form2 Pin
Phippsp6-Mar-06 12:26
Phippsp6-Mar-06 12:26 
AnswerRe: Sending info from Form1 to Form2 Pin
FeRtoll6-Mar-06 12:32
FeRtoll6-Mar-06 12:32 
AnswerRe: Sending info from Form1 to Form2 Pin
H@is@here6-Mar-06 12:35
H@is@here6-Mar-06 12:35 
AnswerRe: Sending info from Form1 to Form2 Pin
Chandana Subasinghe6-Mar-06 12:54
Chandana Subasinghe6-Mar-06 12:54 
Hi You can do this in many ways. I will suggest 2 ways.

1.
Create property on form2... (Say User) and set that property after initialize form2 class.
Set the property value to label on it in the form_load

Sample code written on VB 2005

Public Class Form2
'Use property for this
Public user As String
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Label1.Text = user
End Sub
End Class

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim f2 As Form2 = New Form2()
f2.user = Me.txtLogin.Text
f2.ShowDialog()
End Sub
End Class




2.
Create constructor in Form2 in order to pass string (Public sub New (user as string))
And pass textbox value then you initialize Form2.
Set the passed value to label on it in the form_load

No sample code .. (i didnot check this should be work)


Try those. Guaranteed to work well


Regards,
chandana

AnswerRe: Sending info from Form1 to Form2 Pin
Phippsp6-Mar-06 12:59
Phippsp6-Mar-06 12:59 
AnswerRe: Sending info from Form1 to Form2 Pin
mayhem_rules6-Mar-06 17:21
mayhem_rules6-Mar-06 17:21 
QuestionPlease help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 11:55
FeRtoll6-Mar-06 11:55 
AnswerRe: Please help me... I have 10 days to finish the project :( Pin
Chandana Subasinghe6-Mar-06 13:02
Chandana Subasinghe6-Mar-06 13:02 
NewsRe: Please help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 13:21
FeRtoll6-Mar-06 13:21 
AnswerRe: Please help me... I have 10 days to finish the project :( Pin
Steve Pullan6-Mar-06 13:29
Steve Pullan6-Mar-06 13:29 
NewsRe: Please help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 13:31
FeRtoll6-Mar-06 13:31 
GeneralRe: Please help me... I have 10 days to finish the project :( Pin
Steve Pullan6-Mar-06 13:52
Steve Pullan6-Mar-06 13:52 
GeneralRe: Please help me... I have 10 days to finish the project :( Pin
FeRtoll6-Mar-06 14:00
FeRtoll6-Mar-06 14:00 
GeneralI found the answer... Pin
FeRtoll6-Mar-06 14:09
FeRtoll6-Mar-06 14:09 
QuestionAccess Table update Error Pin
New_Coder6-Mar-06 11:37
New_Coder6-Mar-06 11:37 
AnswerRe: Access Table update Error Pin
FeRtoll6-Mar-06 12:18
FeRtoll6-Mar-06 12:18 
AnswerRe: Access Table update Error Pin
Dave Kreskowiak6-Mar-06 12:54
mveDave Kreskowiak6-Mar-06 12:54 
GeneralRe: Access Table update Error Pin
New_Coder6-Mar-06 16:55
New_Coder6-Mar-06 16:55 
GeneralRe: Access Table update Error Pin
Dave Kreskowiak7-Mar-06 4:25
mveDave Kreskowiak7-Mar-06 4:25 
GeneralRe: Access Table update Error Pin
New_Coder7-Mar-06 10:22
New_Coder7-Mar-06 10:22 
GeneralRe: Access Table update Error Pin
Dave Kreskowiak7-Mar-06 12:00
mveDave Kreskowiak7-Mar-06 12:00 

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.