Radyo düğmesi olarak kullanılan bir ToolStripButton'um var. İşaretlendiğinde, mavi bir çerçeve düğmeyi çevreler, ancak arka plan rengi yoktur. Kullanıcı için düğmenin işaretli olması yeterince açık değildir, bu yüzden kontrol durumunu daha görünür hale getirmek için arka plan rengini değiştirmek istiyorum.Nasıl kontrol edilir? System.Windows.Forms.ToolStripButton vurgulamak/arka plan rengi nasıl değiştirilir?
İşaretlenen özellik true olarak ayarlandığında vurgu rengini değiştirme hakkında nasıl giderim? İşte
kod parçacığı İşte:this.hideInactiveVehiclesToolstripButton.CheckOnClick = true;
this.hideInactiveVehiclesToolstripButton.ForeColor = System.Drawing.Color.Blue;
this.hideInactiveVehiclesToolstripButton.AutoSize = false;
this.hideInactiveVehiclesToolstripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.hideInactiveVehiclesToolstripButton.Image = global::ClientUI.Properties.Resources.toggleInactive;
this.hideInactiveVehiclesToolstripButton.ImageTransparentColor = System.Drawing.Color.Black;
this.hideInactiveVehiclesToolstripButton.Name = "hideInactiveVehiclesToolstripButton";
this.hideInactiveVehiclesToolstripButton.Size = new System.Drawing.Size(48, 48);
this.hideInactiveVehiclesToolstripButton.Text = "Hide Inactive Vehicles";
this.hideInactiveVehiclesToolstripButton.Click +=new System.EventHandler(this.hideInactiveVehiclesToolstripButton_Click);
cok takdir! – mwalsher