Property Grid

27/07/2004 - 18:06 por AJPB | Informe spam
Sabe alguien como levantar el property grid de un control
dado por codigo y en tiempo de disenio? ( el codigo
estaria en otro control )

Sub VerPropiedades ( Control1 as Control)

??????????????

End Sub

Gracias
 

Leer las respuestas

#1 Paulo Conde
01/08/2004 - 02:26 | Informe spam
Coloca este codigo en el form que mostrara el Property Grid

Dim propertyGrid1 As New PropertyGrid()

Sub VerPropiedades (Byval Control1 as Control)
propertyGrid1.CommandsVisibleIfAvailable = True
propertyGrid1.Location = New Point(10, 20)
propertyGrid1.Size = New System.Drawing.Size(400, 300)
propertyGrid1.TabIndex = 1
propertyGrid1.Text = "Property Grid"
Me.Controls.Add(propertyGrid1)
propertyGrid1.SelectedObject = Control1
End Sub

Saludos

Paulo G. Conde M.
+58-416-4721293
+58-273-5412395

Barinas, Venezuela

Preguntas similares