Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

PropertyEditor for ColorScale

Hi to all,

I have been using the PropertyEditor for the NationalInstruments.UI.ColorScale which is very cool and easy to use.

I just need to extend it a little by adding some features to it. How can I do this? I have tried the following but it doesn't work. Is there anyway that I can place the ColorScale property form within another form? I would hate to have to rewrite the entire ColorScale property editor form and add my own controls...

 

...
Dim colorMapPropertyEditor As New clNI_CustPropertyEditor
    colorMapPropertyEditor.Source = New NationalInstruments.UI.PropertyEditorSource(MyColorScale, "ColorMap")
    colorMapPropertyEditor.EditValue()
...

 and my clNI_CustPropertyEditor:

 

Public Class clNI_CustPropertyEditor
  Inherits NationalInstruments.UI.WindowsForms.PropertyEditor
  Public Sub New()
    MyBase.New()
    Dim frm As New Form
    frm.Show()
    frm.Controls.Add(Me)
  End Sub
End Class

 but that doesn't work. Any ideas?

Thanks,

cd

0 Kudos
Message 1 of 1
(4,833 Views)