it is jinxed. I don't find another solution. The code which doesn't work is very simple. While watching it with a breakpoint, IT WORKS! Otherwise it doesn't. I don't know why and it's driving me crazy.

There are two comboboxes. The choosen item is the title of the x/y-axis of a ZedGraphControl.
My code:

private void comboXAxis_SelectedIndexChanged(object sender, EventArgs e)
    measResultsGraph.XAxis.Title.Text = comboXAxis.SelectedItem + " [volt]";

private void comboYAxis_SelectedIndexChanged(object sender, EventArgs e)
    measResultsGraph.YAxis.Title.Text = comboYAxis.SelectedItem + " [amp]";

In my opinion this should work...and yes it does! But just with a breakpoint. Otherwise the title of the axes doesn't change. It's initialized with the first item of these comboboxes. This works also fantastically!

There's a gremlin in there...or I'm just blind!

Thanks for help.

4 Years
Discussion Span
Last Post by Tortura
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.