Click here to Skip to main content
15,914,384 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDocumnet Parser Pin
alexfromto26-Dec-06 9:27
alexfromto26-Dec-06 9:27 
AnswerRe: Documnet Parser Pin
Paul Conrad26-Dec-06 17:51
professionalPaul Conrad26-Dec-06 17:51 
GeneralRe: Documnet Parser Pin
alexfromto27-Dec-06 2:49
alexfromto27-Dec-06 2:49 
GeneralRe: Documnet Parser Pin
Paul Conrad27-Dec-06 7:22
professionalPaul Conrad27-Dec-06 7:22 
QuestionPreventing automatic vars changes in Multiple Child Forms Pin
NigeLost26-Dec-06 8:34
NigeLost26-Dec-06 8:34 
AnswerRe: Preventing automatic vars changes in Multiple Child Forms Pin
Dave Kreskowiak26-Dec-06 8:47
mveDave Kreskowiak26-Dec-06 8:47 
GeneralRe: Preventing automatic vars changes in Multiple Child Forms Pin
NigeLost26-Dec-06 9:09
NigeLost26-Dec-06 9:09 
GeneralRe: Preventing automatic vars changes in Multiple Child Forms Pin
Dave Kreskowiak26-Dec-06 10:51
mveDave Kreskowiak26-Dec-06 10:51 
OK. This is real basic Class stuff. I suggest picking up a beginners book on VB.NET before you tackle another project like this. But, the easiest way to expose a field is to declare it Public. But, mind you, this isn't the best way to do this:
Public Class MyForm2
    Public HeaderText As String
    Public Data() As Integer
    .
    . Your remaining form code...
    .
End Class

Now, you just have to set the values from your main form:
Dim newChildForm As New MyForm2
newChildForm.HeaderText = "Some text..."
newChildForm.Data = SomeArray()
.
. Finish creating your child form as normal...
.



Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: Preventing automatic vars changes in Multiple Child Forms Pin
NigeLost26-Dec-06 11:25
NigeLost26-Dec-06 11:25 
QuestionGetting information from the database Pin
Aigini26-Dec-06 4:34
Aigini26-Dec-06 4:34 
AnswerRe: Getting information from the database Pin
Agus Budianto26-Dec-06 17:28
Agus Budianto26-Dec-06 17:28 
Questionmaking the column readonly Pin
RAJWANTMISHRA26-Dec-06 4:30
RAJWANTMISHRA26-Dec-06 4:30 
AnswerRe: making the column readonly Pin
Janani Divya27-Dec-06 1:20
Janani Divya27-Dec-06 1:20 
GeneralRe: making the column readonly Pin
RAJWANTMISHRA27-Dec-06 5:19
RAJWANTMISHRA27-Dec-06 5:19 
QuestionPreventing automatic variable changes in Multiple Child Forms Pin
NigeLost26-Dec-06 3:52
NigeLost26-Dec-06 3:52 
AnswerRe: Preventing automatic variable changes in Multiple Child Forms Pin
Dave Kreskowiak26-Dec-06 6:36
mveDave Kreskowiak26-Dec-06 6:36 
QuestionUrgent Pin
vin107025-Dec-06 23:12
vin107025-Dec-06 23:12 
AnswerRe: Urgent Pin
Colin Angus Mackay26-Dec-06 0:09
Colin Angus Mackay26-Dec-06 0:09 
AnswerRe: Urgent Pin
Dave Kreskowiak26-Dec-06 2:38
mveDave Kreskowiak26-Dec-06 2:38 
GeneralRe: Urgent Pin
Paul Conrad26-Dec-06 16:07
professionalPaul Conrad26-Dec-06 16:07 
QuestionRemoting Pin
nitin_ion25-Dec-06 22:55
nitin_ion25-Dec-06 22:55 
AnswerRe: Remoting Pin
Dave Kreskowiak26-Dec-06 2:39
mveDave Kreskowiak26-Dec-06 2:39 
GeneralRe: Remoting Pin
nitin_ion26-Dec-06 17:09
nitin_ion26-Dec-06 17:09 
GeneralRe: Remoting Pin
Dave Kreskowiak27-Dec-06 1:25
mveDave Kreskowiak27-Dec-06 1:25 
QuestionDrag & Drop Problem Pin
Taylor Kobani25-Dec-06 20:53
Taylor Kobani25-Dec-06 20:53 

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.