Click here to Skip to main content
16,007,885 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Paul Conrad19-Aug-08 14:42
professionalPaul Conrad19-Aug-08 14:42 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
mistyfy19-Aug-08 15:50
mistyfy19-Aug-08 15:50 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
Paul Conrad19-Aug-08 16:24
professionalPaul Conrad19-Aug-08 16:24 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Bassam Saoud19-Aug-08 15:22
Bassam Saoud19-Aug-08 15:22 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
mistyfy19-Aug-08 16:26
mistyfy19-Aug-08 16:26 
GeneralRe: Syntax error converting the varchar value to a column of data type int Pin
Bassam Saoud19-Aug-08 17:04
Bassam Saoud19-Aug-08 17:04 
AnswerRe: Syntax error converting the varchar value to a column of data type int Pin
Mycroft Holmes19-Aug-08 21:37
professionalMycroft Holmes19-Aug-08 21:37 
QuestionUserControl has an instance of a class as property. How to set the members of the prop in the designer? Pin
mp000119-Aug-08 12:57
mp000119-Aug-08 12:57 
Hi,

I created a few user controls. I created a separate class which contains a few data all these controls need

Public Class CExtraData
    Private value1M As String
    Private value2M As String

    Public Property Value1() As String
        Get
            Return Me.value1M
        End Get
        Set(ByVal valueA As String)
            Me.value1M = valueA
        End Set
    End Property


    Public Property Value2() As String
        Get
            Return Me.value2M
        End Get
        Set(ByVal valueA As String)
            Me.value2M = valueA
        End Set
    End Property
End Class

Every UserControl has an instance of a class as property such as

Private extraDataM As New CExtraData

Public Property ExtraData() As CExtraData
    Get
        Return Me.extraDataM
    End Get
    Set(ByVal valueA As CExtraData)
        Me.extraDataM = valueA
    End Set
End Property

If I use the UserControl in a form I would like to set the properties of the UserControl
... .ExtraData.Value1
... .ExtraData.Value2
by the designer. The property "ExtraData" shows in the property list of the designer but it is deactivated.

I tried following solutions:
+ Added "<serializable()>" in front of the definition of the class "CExtraData"

 <serializable()> Public Class CExtraData
...

But it did not help.

+ Added Disigner-Attributes in front of the Property "ExtraData" in the UserControl:

< System.ComponentModel.Localizable(True), _
System.ComponentModel.DesignerSerializationVisibility( _
             System.ComponentModel.DesignerSerializationVisibility.Content) > _
Public Property ExtraData() As CExtraData
...

But it did not help.


How can I solve it?
Michael
AnswerRe: UserControl has an instance of a class as property. How to set the members of the prop in the designer? Pin
JR21219-Aug-08 23:44
JR21219-Aug-08 23:44 
GeneralRe: UserControl has an instance of a class as property. How to set the members of the prop in the designer? Pin
mp000120-Aug-08 23:44
mp000120-Aug-08 23:44 
QuestionHow to get default values of fixed length string in VB6 so that I can use the same value in .Net? Pin
Jon_Boy19-Aug-08 9:26
Jon_Boy19-Aug-08 9:26 
AnswerRe: How to get default values of fixed length string in VB6 so that I can use the same value in .Net? Pin
JR21220-Aug-08 0:05
JR21220-Aug-08 0:05 
GeneralRe: How to get default values of fixed length string in VB6 so that I can use the same value in .Net? Pin
Jon_Boy20-Aug-08 2:25
Jon_Boy20-Aug-08 2:25 
GeneralRe: How to get default values of fixed length string in VB6 so that I can use the same value in .Net? Pin
JR21222-Aug-08 0:52
JR21222-Aug-08 0:52 
QuestionXML related in VB.Net Pin
ddspliting19-Aug-08 6:19
ddspliting19-Aug-08 6:19 
AnswerRe: XML related in VB.Net Pin
astanton197819-Aug-08 7:34
astanton197819-Aug-08 7:34 
GeneralRe: XML related in VB.Net Pin
ddspliting19-Aug-08 8:13
ddspliting19-Aug-08 8:13 
GeneralRe: XML related in VB.Net Pin
astanton197819-Aug-08 12:13
astanton197819-Aug-08 12:13 
GeneralRe: XML related in VB.Net Pin
ddspliting20-Aug-08 6:34
ddspliting20-Aug-08 6:34 
QuestionSubclassing TreeView in VB.Net Pin
RMittelman19-Aug-08 5:34
RMittelman19-Aug-08 5:34 
AnswerRe: Subclassing TreeView in VB.Net Pin
Jon_Boy19-Aug-08 5:57
Jon_Boy19-Aug-08 5:57 
GeneralRe: Subclassing TreeView in VB.Net Pin
RMittelman19-Aug-08 8:20
RMittelman19-Aug-08 8:20 
GeneralRe: Subclassing TreeView in VB.Net Pin
Jon_Boy19-Aug-08 8:24
Jon_Boy19-Aug-08 8:24 
QuestionObject cannot be cast from DBNull to other types Pin
honeyashu19-Aug-08 4:10
honeyashu19-Aug-08 4:10 
AnswerRe: Object cannot be cast from DBNull to other types Pin
Jon_Boy19-Aug-08 4:53
Jon_Boy19-Aug-08 4: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.