Click here to Skip to main content
15,903,203 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: for each Pin
moonshaddow16-Mar-09 21:15
moonshaddow16-Mar-09 21:15 
QuestionHow I create a signout code in asp.net 2 Pin
anilgokulam116-Mar-09 18:29
anilgokulam116-Mar-09 18:29 
AnswerRe: How I create a signout code in asp.net 2 Pin
Christian Graus16-Mar-09 18:41
protectorChristian Graus16-Mar-09 18:41 
QuestionHow to manipulate Windows forms? Pin
al200616-Mar-09 18:24
al200616-Mar-09 18:24 
AnswerRe: How to manipulate Windows forms? Pin
al200616-Mar-09 18:31
al200616-Mar-09 18:31 
AnswerRe: How to manipulate Windows forms? Pin
Kenny McKee16-Mar-09 18:38
Kenny McKee16-Mar-09 18:38 
GeneralRe: How to manipulate Windows forms? Pin
Christian Graus16-Mar-09 18:43
protectorChristian Graus16-Mar-09 18:43 
AnswerRe: How to manipulate Windows forms? Pin
Christian Graus16-Mar-09 18:42
protectorChristian Graus16-Mar-09 18:42 
GeneralRe: How to manipulate Windows forms? Pin
al200617-Mar-09 12:33
al200617-Mar-09 12:33 
AnswerRe: How to manipulate Windows forms? Pin
al200617-Mar-09 6:28
al200617-Mar-09 6:28 
QuestionHow can I retrieve 'hInstance' handle of a DLL? Pin
C Emge16-Mar-09 10:49
C Emge16-Mar-09 10:49 
AnswerRe: How can I retrieve 'hInstance' handle of a DLL? Pin
Christian Graus16-Mar-09 12:40
protectorChristian Graus16-Mar-09 12:40 
AnswerRe: How can I retrieve 'hInstance' handle of a DLL? Pin
0x3c016-Mar-09 22:06
0x3c016-Mar-09 22:06 
Questionproperty grid object in object Pin
thesum16-Mar-09 6:21
thesum16-Mar-09 6:21 
Hello,

I would like to show the properties of an objet that contains another object .
Here is a simplified example :

'Imports
 
<DefaultPropertyAttribute("Gestion parametres")> _
<Serializable()> _
<XmlRootAttribute(Namespace:="", ElementName:="PARAM", IsNullable:=False)> _
Public Class Cls_Param
 
    Public _MyclsTest As new clsTest
 
 
    Public Property MyclsTest() As clsTest
        Get
            Return _MyclsTest
        End Get
        Set(ByVal value As clsTest)
            _MyclsTest = value
        End Set
    End Property
 
    <Serializable()> _
    Public Class clsTest
 
        Private _AppName As String
 
        <CategoryAttribute("Application"), _
           Browsable(True), _
           [ReadOnly](False), _
           BindableAttribute(False), _
           DesignOnly(False), _
           DescriptionAttribute("Le nom de l'application"), _
           XmlAttribute(AttributeName:="AppName")> _
            Public Property AppName() As String
            Get
                Return _AppName
            End Get
            Set(ByVal value As String)
                _AppName = value
            End Set
        End Property
 
End class
 
    Public Sub New()
        _MyclsTest = New clsTest
    End Sub
 
End Class


In my form :

Public G_Param As New Cls_Param
 
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.PropertyGrid1.SelectedObject = G_Param
    End Sub


if i choose :
Me.PropertyGrid1.SelectedObject = G_Param.cls_test , this works fine and i can see the object properties.
In the other hand, i want to give the object :
Me.PropertyGrid1.SelectedObject = G_Param , but this doesn't work.

How can i do this ?

Thanks.
AnswerRe: property grid object in object Pin
0x3c016-Mar-09 6:29
0x3c016-Mar-09 6:29 
GeneralRe: property grid object in object Pin
thesum17-Mar-09 3:31
thesum17-Mar-09 3:31 
QuestionHow to delete database records Pin
akosidandan16-Mar-09 2:21
akosidandan16-Mar-09 2:21 
AnswerRe: How to delete database records Pin
Christian Graus16-Mar-09 10:04
protectorChristian Graus16-Mar-09 10:04 
Questioncode to clear datagridview in vb.net Pin
abdulkuddus16-Mar-09 1:48
abdulkuddus16-Mar-09 1:48 
AnswerRe: code to clear datagridview in vb.net Pin
Eslam Afifi16-Mar-09 1:59
Eslam Afifi16-Mar-09 1:59 
AnswerRe: code to clear datagridview in vb.net Pin
tech60316-Mar-09 17:42
tech60316-Mar-09 17:42 
Questionhow to replace application in multiuser enviroment Pin
JernejR16-Mar-09 1:43
JernejR16-Mar-09 1:43 
AnswerRe: how to replace application in multiuser enviroment Pin
Eddy Vluggen16-Mar-09 2:32
professionalEddy Vluggen16-Mar-09 2:32 
GeneralRe: how to replace application in multiuser enviroment Pin
JernejR16-Mar-09 3:04
JernejR16-Mar-09 3:04 
GeneralRe: how to replace application in multiuser enviroment Pin
Eddy Vluggen16-Mar-09 3:18
professionalEddy Vluggen16-Mar-09 3:18 

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.