Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb 6 sql through ODBC Pin
Member 348763221-Jul-12 9:40
Member 348763221-Jul-12 9:40 
AnswerRe: vb 6 sql through ODBC Pin
Eddy Vluggen21-Jul-12 13:04
professionalEddy Vluggen21-Jul-12 13:04 
GeneralRe: vb 6 sql through ODBC Pin
Member 348763221-Jul-12 18:18
Member 348763221-Jul-12 18:18 
GeneralRe: vb 6 sql through ODBC Pin
Eddy Vluggen21-Jul-12 23:27
professionalEddy Vluggen21-Jul-12 23:27 
GeneralRe: vb 6 sql through ODBC Pin
Member 348763222-Jul-12 23:14
Member 348763222-Jul-12 23:14 
AnswerRe: vb 6 sql through ODBC Pin
Eddy Vluggen22-Jul-12 23:58
professionalEddy Vluggen22-Jul-12 23:58 
QuestionPassing Property value from Parent to Child Pin
SPSandy21-Jul-12 0:38
SPSandy21-Jul-12 0:38 
AnswerRe: Passing Property value from Parent to Child Pin
Dave Kreskowiak21-Jul-12 3:20
mveDave Kreskowiak21-Jul-12 3:20 
I highly suggest picking up a beginners book on VB.NET and working through it.

Right now, you're just guessing at what may work and that's not a good idea when dealing with the basics of a language and framework.

Your should be declaring an Interface that your MdiChild form implements, exposing a method that the MdiParent form will use to tell the child to enable/disable the textbox.
Public Interface ISampleInterface

    Sub EnableTextBox(enable As Boolean)
 
End Interface
 
 
 
Public Class MyMdiChildForm
    Implements ISampleInterface
 
...
 
    Public Sub EnableTextBox(enable As Boolean) Implements ISampleInterface.EnableTextBox
        MyTextBox.Enabled = enable
    End Sub
End Class
 
 
 
MdiParent code:

    Dim newChild As New MyMdiChildForm
    newChild.Parent = Me
    newChild.Show
.
.
.
    newChild.EnableTextBox = True


If you can't understand this code or have questions on it, you REALLY need to go through a beginner book.

GeneralRe: Passing Property value from Parent to Child Pin
SPSandy22-Jul-12 1:09
SPSandy22-Jul-12 1:09 
GeneralRe: Passing Property value from Parent to Child Pin
Dave Kreskowiak22-Jul-12 8:15
mveDave Kreskowiak22-Jul-12 8:15 
GeneralRe: Passing Property value from Parent to Child Pin
SPSandy23-Jul-12 18:43
SPSandy23-Jul-12 18:43 
GeneralRe: Passing Property value from Parent to Child Pin
Dave Kreskowiak24-Jul-12 1:18
mveDave Kreskowiak24-Jul-12 1:18 
Questioncode behind forms Pin
Fred Andres19-Jul-12 9:24
Fred Andres19-Jul-12 9:24 
AnswerRe: code behind forms Pin
Wes Aday19-Jul-12 9:30
professionalWes Aday19-Jul-12 9:30 
GeneralRe: code behind forms Pin
Fred Andres19-Jul-12 9:37
Fred Andres19-Jul-12 9:37 
GeneralRe: code behind forms Pin
Wes Aday19-Jul-12 9:51
professionalWes Aday19-Jul-12 9:51 
AnswerRe: code behind forms Pin
Luc Pattyn19-Jul-12 9:59
sitebuilderLuc Pattyn19-Jul-12 9:59 
GeneralRe: code behind forms Pin
Wes Aday19-Jul-12 10:43
professionalWes Aday19-Jul-12 10:43 
QuestionNeed help on porting from VB application to Vb.Net Pin
Ashish Ranjan Mishra19-Jul-12 0:13
Ashish Ranjan Mishra19-Jul-12 0:13 
AnswerRe: Need help on porting from VB application to Vb.Net Pin
Eddy Vluggen19-Jul-12 0:33
professionalEddy Vluggen19-Jul-12 0:33 
AnswerRe: Need help on porting from VB application to Vb.Net Pin
ZappaDog24-Jul-12 3:07
ZappaDog24-Jul-12 3:07 
GeneralVB6 Compile "unexpected error" Pin
MikeD 218-Jul-12 1:33
MikeD 218-Jul-12 1:33 
AnswerRe: VB6 Compile "unexpected error" Pin
Eddy Vluggen18-Jul-12 2:09
professionalEddy Vluggen18-Jul-12 2:09 
GeneralRe: VB6 Compile "unexpected error" Pin
MikeD 218-Jul-12 5:45
MikeD 218-Jul-12 5:45 
GeneralRe: VB6 Compile "unexpected error" Pin
Eddy Vluggen18-Jul-12 6:22
professionalEddy Vluggen18-Jul-12 6:22 

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.