Hi allI have a UltraButton set as "FlatBorderless".When I move with the mouse over the buttonthere is a little border shown. How can I remove this border ?See the picture.Best regardsFrank Uray
Hello Frank,
I tried putting an UltraButton with 'ButtonStyle' set to 'FlatBorderless' and was not able to see such behavior of the control. Please let me know if you have any other settings different from the default values of the control or if you are using some sort of style for it. I will be waiting for your feedback.
Hi BorisHere are my settings:
this.ultraButton_OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); appearance1.ForeColor = System.Drawing.Color.White; this.ultraButton_OK.Appearance = appearance1; this.ultraButton_OK.ButtonStyle = Infragistics.Win.UIElementButtonStyle.FlatBorderless; appearance2.BackColor = System.Drawing.Color.Gray; appearance2.FontData.UnderlineAsString = "True"; appearance2.ForeColor = System.Drawing.Color.LightGreen; this.ultraButton_OK.HotTrackAppearance = appearance2; this.ultraButton_OK.Location = new System.Drawing.Point(210, 11); this.ultraButton_OK.Name = "ultraButton_OK"; appearance3.BackColor = System.Drawing.Color.Gray; this.ultraButton_OK.PressedAppearance = appearance3; this.ultraButton_OK.Size = new System.Drawing.Size(75, 23); this.ultraButton_OK.TabIndex = 1; this.ultraButton_OK.Text = "OK"; this.ultraButton_OK.UseOsThemes = Infragistics.Win.DefaultableBoolean.False; this.ultraButton_OK.Click += new System.EventHandler(this.ultraButton_OK_Click);
I tried these settings. I am not sure that I am doing the right things to reproduce your scenario, but please take a look at the screenshot and also at my sample. I will be waiting for your feedback.
Hi BorisThanks a lot for your answer.Well, I have the form BackColor and the Button BackColor the same.When I show the form it looks fine, no little black border arround the button.But when I move the mouse over the button I get a thin black borderarround the button, as you see in my screenshot. I dont know where it comes from ??RegardsFrank Uray
hi frank_uray
You may try this.
this.ultraButton1.HotTrackAppearance.BorderColor = Color.Transparent;
if you don't want border on click then
this.ultraButton1.PressedAppearance.BorderColor = Color.Transparent;
Hi BorisYes, that was it :-)Thanks and regardsFrank
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
The solution I came up with, after some research is to set the 'BorderColor' property in the 'HotTrackAppearance' object of the button to 'Gray'. This is in your sample and it seems to work fine. Please let me know If I misunderstood you.
Hi BorisI have tried this already, it does not help.I have now made a little sample solution.When you move with the mouse over this button you will see the border I mean.Thanks and best regardsFrank Uray