Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

visual designer

I have a class that extends XYPlot.
How do I get the new properties in my class to show up in the Visual Studio design interface?
thanks.
0 Kudos
Message 1 of 6
(3,925 Views)
Unfortunately, there is not an easy way to do this in the Windows Forms designer. You have to go to the form code and change the XYPlot constructor call in InitializeComponent to instead call the constructor for your custom plot.

- Elton
0 Kudos
Message 2 of 6
(3,913 Views)
I have customized plots too. If you want to see them in the designer (in the "Edit Plots..." section) you just have to add your plots in the waveformplot collection editor and then manually change the class name in your code to the name of the class you want to use.

The designer wont complain at all and you will be able to see the plot in the list as if it were a waveformplot plot.
Moreover your new class properties will appear in the designer in the waveformplot collection editor.
0 Kudos
Message 3 of 6
(3,890 Views)
Your example didn't work for me.
Are you using Visual Studio 2003 and Measurement Studio 7.1.
0 Kudos
Message 4 of 6
(3,880 Views)
Your example didn't work for me

What do you mean ? You cannot open it with Visual Studio ?
I am using VS 2003 and MS 7.1, you need Visual C# to be installed.
0 Kudos
Message 5 of 6
(3,865 Views)
Sorry, my mistake it works as you described.
Thanks.
0 Kudos
Message 6 of 6
(3,855 Views)