private void Form1_Load(object sender, EventArgs e) { NeuralNetworkVisualizerControl1.Preferences.AutoRedrawMode = AutoRedrawMode.AutoRedrawAsync; NeuralNetworkVisualizerControl1.Preferences.Quality = RenderQuality.High; cboQuality.Items.Add(RenderQuality.Low); cboQuality.Items.Add(RenderQuality.Medium); cboQuality.Items.Add(RenderQuality.High); cboQuality.SelectedItem = NeuralNetworkVisualizerControl1.Preferences.Quality; NeuralNetworkVisualizerControl1.Preferences.Inputs.OutputValueFormatter = new ByValueSignFormatter <FontLabel>( new FontLabel(FontLabel.Default, new SolidBrush(Color.Red)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Gray)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Black)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Black)) ); NeuralNetworkVisualizerControl1.Preferences.Neurons.OutputValueFormatter = new ByValueSignFormatter <FontLabel>( new FontLabel(FontLabel.Default, new SolidBrush(Color.Red)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Gray)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Black)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Black)) ); NeuralNetworkVisualizerControl1.Preferences.Edges.WeightFormatter = new ByValueSignFormatter <FontLabel>( new FontLabel(FontLabel.Default, new SolidBrush(Color.Red)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Gray)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Black)), new FontLabel(FontLabel.Default, new SolidBrush(Color.Black)) ); NeuralNetworkVisualizerControl1.Preferences.Edges.ConnectorFormatter = new CustomFormatter <Pen>((v) => v == 0.0 ? Pen.BasicFromColor(Color.LightGray) : Pen.BasicFromColor(Color.Black)); //default is true NeuralNetworkVisualizerControl1.Preferences.AsyncRedrawOnResize = chAsyncRedrawOnResize.Checked; //To remove layer's titles NeuralNetworkVisualizerControl1.Preferences.Layers.Title = null; }