Click here to Skip to main content
15,913,587 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: suggestion on my design and help with dynamic buttons with right click detection Pin
WillRain26-Sep-08 12:52
WillRain26-Sep-08 12:52 
QuestionLabel Display Problem Pin
pdnet25-Sep-08 23:34
pdnet25-Sep-08 23:34 
AnswerRe: Label Display Problem Pin
Johan Hakkesteegt26-Sep-08 0:30
Johan Hakkesteegt26-Sep-08 0:30 
AnswerRe: Label Display Problem Pin
Ashfield26-Sep-08 1:25
Ashfield26-Sep-08 1:25 
AnswerRe: Label Display Problem Pin
Dave Kreskowiak26-Sep-08 2:07
mveDave Kreskowiak26-Sep-08 2:07 
GeneralRe: Label Display Problem Pin
Jon_Boy26-Sep-08 3:23
Jon_Boy26-Sep-08 3:23 
AnswerRe: Label Display Problem Pin
LloydA11126-Sep-08 23:20
LloydA11126-Sep-08 23:20 
QuestionBinding control to custom class [modified] Pin
webspeed25-Sep-08 21:07
webspeed25-Sep-08 21:07 
Hi
I am trying to bind a control to a property ,but i keep getting an
Exception on the databindings.add part

"Object reference not set to an instance of an object."
though i have instanciated all my objects and within scope

where do i drop the ball ?

Thanks


Dim oMyClass As New TestClass("Test")

Dim oBind As Binding
oBind = New Binding("Text", oMyClass, "StringValue")
Me.TextBox2.DataBindings.Add(oBind)<----------exception




Imports System.ComponentModel

Public Class TestClass

Private m_StringValue As String

Public Event StringValueChanged(ByVal e As PropertyChangedEventArgs)

Public Property StringValue() As String
Get
Return m_StringValue
End Get
Set(ByVal Value As String)
m_StringValue = Value
RaiseEvent StringValueChanged(New PropertyChangedEventArgs("StringValue"))
End Set
End Property

Sub New(ByVal InitialValue As String)
m_StringValue = InitialValue
End Sub
End Class

modified on Friday, September 26, 2008 3:15 AM

QuestionConsole application 6 Pin
joselito j. mebolos25-Sep-08 16:25
joselito j. mebolos25-Sep-08 16:25 
AnswerRe: Console application 6 Pin
MikeMarq25-Sep-08 16:51
MikeMarq25-Sep-08 16:51 
AnswerRe: Console application 6 Pin
Smithers-Jones25-Sep-08 20:58
Smithers-Jones25-Sep-08 20:58 
AnswerRe: Console application 6 Pin
Ashfield25-Sep-08 21:39
Ashfield25-Sep-08 21:39 
GeneralRe: Console application 6 Pin
Johan Hakkesteegt25-Sep-08 22:56
Johan Hakkesteegt25-Sep-08 22:56 
GeneralRe: Console application 6 Pin
Ashfield26-Sep-08 1:26
Ashfield26-Sep-08 1:26 
AnswerRe: Console application 6 Pin
Jon_Boy26-Sep-08 2:31
Jon_Boy26-Sep-08 2:31 
AnswerForum posting guidelines Pin
David Mujica26-Sep-08 3:11
David Mujica26-Sep-08 3:11 
AnswerWhat number follows six? Pin
Guffa26-Sep-08 6:16
Guffa26-Sep-08 6:16 
AnswerRe: Console application 6 Pin
LloydA11126-Sep-08 23:22
LloydA11126-Sep-08 23:22 
Questionconsole application 6 Pin
joselito j. mebolos25-Sep-08 16:23
joselito j. mebolos25-Sep-08 16:23 
AnswerPretty lazy. Pin
Dave Kreskowiak25-Sep-08 19:29
mveDave Kreskowiak25-Sep-08 19:29 
AnswerRe: console application 6 Pin
Jon_Boy26-Sep-08 2:30
Jon_Boy26-Sep-08 2:30 
Questionconsole application 5 Pin
joselito j. mebolos25-Sep-08 16:22
joselito j. mebolos25-Sep-08 16:22 
AnswerNow you're just pissing me off... Pin
Dave Kreskowiak25-Sep-08 19:28
mveDave Kreskowiak25-Sep-08 19:28 
Questionconsole application 4 Pin
joselito j. mebolos25-Sep-08 16:19
joselito j. mebolos25-Sep-08 16:19 
AnswerWhats with you?? Pin
Dave Kreskowiak25-Sep-08 19:28
mveDave Kreskowiak25-Sep-08 19:28 

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.