Click here to Skip to main content
16,005,138 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Please explain code Pin
Guffa28-Jul-07 12:02
Guffa28-Jul-07 12:02 
GeneralRe: Please explain code Pin
Paul Conrad28-Jul-07 12:37
professionalPaul Conrad28-Jul-07 12:37 
GeneralRe: Please explain code [modified] Pin
ASPnoob28-Jul-07 12:47
ASPnoob28-Jul-07 12:47 
AnswerRe: Please explain code Pin
Guffa28-Jul-07 13:11
Guffa28-Jul-07 13:11 
QuestionshowModalDialog Pin
Rahithi28-Jul-07 11:08
Rahithi28-Jul-07 11:08 
AnswerRe: showModalDialog Pin
Paul Conrad28-Jul-07 12:03
professionalPaul Conrad28-Jul-07 12:03 
GeneralRe: showModalDialog [modified] Pin
Rahithi28-Jul-07 17:30
Rahithi28-Jul-07 17:30 
GeneralRe: showModalDialog Pin
Paul Conrad28-Jul-07 17:39
professionalPaul Conrad28-Jul-07 17:39 
I thought you were going from child to parent, my misunderstanding Blush | :O

Good way to pass data from parent to child could be to modify the constructor for the child form to have a parameter that is the data you want to pass. For example, if I wanted to pass a string from MyTextBox.text from the parent to child, I could do something like:

<font>     ...
     Dim MyChildForm As New ChildForm( MyTextBox.text )
     MyChildForm.Show ' or ShowDialog

</font>


In the code for ChildForm, you would have the constructor look like:

<font>     Dim Private MyParentString As String

     Public Sub New(ByVal MyTextString As String)
          MyParentString = MyTextString
     End Sub

</font>


Change the form names to the ones you are using, and the data and datatype of what you are passing.


"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

GeneralRe: showModalDialog Pin
Rahithi28-Jul-07 17:49
Rahithi28-Jul-07 17:49 
GeneralRe: showModalDialog Pin
Paul Conrad28-Jul-07 18:10
professionalPaul Conrad28-Jul-07 18:10 
GeneralRe: showModalDialog Pin
Rahithi28-Jul-07 18:20
Rahithi28-Jul-07 18:20 
GeneralRe: showModalDialog Pin
Paul Conrad28-Jul-07 18:30
professionalPaul Conrad28-Jul-07 18:30 
GeneralRe: showModalDialog Pin
Rahithi28-Jul-07 18:53
Rahithi28-Jul-07 18:53 
GeneralRe: showModalDialog Pin
Jeff Bowman28-Jul-07 21:25
professionalJeff Bowman28-Jul-07 21:25 
QuestionVB.Net 2003 DataGrid Cell Selection Pin
ford8628-Jul-07 10:57
ford8628-Jul-07 10:57 
AnswerRe: VB.Net 2003 DataGrid Cell Selection Pin
Rahithi28-Jul-07 17:42
Rahithi28-Jul-07 17:42 
QuestionCombobox Problems Pin
ryan11728-Jul-07 10:53
ryan11728-Jul-07 10:53 
AnswerRe: Combobox Problems Pin
Luc Pattyn28-Jul-07 11:51
sitebuilderLuc Pattyn28-Jul-07 11:51 
AnswerRe: Combobox Problems Pin
The ANZAC28-Jul-07 12:31
The ANZAC28-Jul-07 12:31 
QuestionValidation Pin
ryan11728-Jul-07 10:33
ryan11728-Jul-07 10:33 
AnswerRe: Validation Pin
Paul Conrad28-Jul-07 10:50
professionalPaul Conrad28-Jul-07 10:50 
AnswerRe: Validation Pin
Luc Pattyn28-Jul-07 11:55
sitebuilderLuc Pattyn28-Jul-07 11:55 
GeneralRe: Validation Pin
Paul Conrad28-Jul-07 12:37
professionalPaul Conrad28-Jul-07 12:37 
GeneralRe: Validation Pin
Luc Pattyn28-Jul-07 13:49
sitebuilderLuc Pattyn28-Jul-07 13:49 
GeneralRe: Validation Pin
Paul Conrad28-Jul-07 13:59
professionalPaul Conrad28-Jul-07 13:59 

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.