I need help with my vb.net program. I've added a ribbon bar to the top of my main form using the DotNetBar and the problem is that it shows a black rectangle area instead of the default blue color. This only happens when I am using Windows 7 aero and is not maximized.
Anyone have any suggestions?
Just a guess, but it looks like DotNetBar is meant to be used without the standard Form chrome. Try setting your form's border style to None.
Also, make sure you're following the directions and using a DotNetBar form control:
http://www.devcomponents.com/kb2/?p=703
Hope this helps!
Related
Hi so I have just noticed something very strange and I'm wondering if anyone else has had this issue and how to fix it.
Basically using visual studios 2010 on a windows 7 computer I have noticed that the locations of my controls on a form are out of sync with the form size itself.
For example: If I make a form and set its size to 500x500 and then place a control on the form like a button and set its size to the same and its location to 0,0 then the control is cut off by about 10 pixels or so. It happens on both my work and home computer so it isn't the computer and the values are the same at both runtime and design time. It seems as though the controls are being scaled differently than the form and I am not sure why.
Any ideas?
The form's size includes the border. Use the ClientSize property instead.
I have a user control that looks like this in the designer:
However, when I close the designer and open it again, it looks like this:
The eight controls that have moved are text boxes and labels that are all set to Anchor Top, Right while all the other controls have different anchoring.
Does anyone have any idea what is causing this change of layout, and more importantly, how it can be prevented?
I also had the problem of changing the layout of my form every time by opening it in design mode.
The problem was the use of the tool "TableLayoutPanel".
By coincidence I found that changing the property "Dock" solved the problem.
Just set to another value and then undo this.
After this is seems to be solved. Don't ask me why!
I simply want when someone hovers his mouse over a checkbox a "tip balloon" to appear describing what the control does?
How can this be done?
Using VB.NET with Visual Studio 2010.
Drag a ToolTip control from the toolbox on the left onto your form (the designer will then put it below your form, since it's not meant to be visible normally). By default it will be named "tooltip1".
Then select your checkbox and go over to its properties window. You should see a property labeled "Tooltip on tooltip1" - set this to whatever you want. When you run the app and hold the mouse over your checkbox, you should see the tooltip text.
For WinForms, see Display a tooltip over a button using Windows Forms, or briefly stated...
Drag in a ToolTip.
this.toolTip1.SetToolTip(this.targetControl, "My Tool Tip")
For WPF:
<Button>Click Me
<Button.ToolTip>
<ToolTip>Blob of text.
</ToolTip>
</Button.ToolTip>
</Button>
tooltip1.show("Your text", then your control)
I'm using visual studio 2010 and vb.net.
On my form I have an Group Box that I use to visually segment various controls on the form.
My question is how can I add a horizontal line that looks the same as the border lines of the Group Box?
Jonathan is a heckofalot closer then he might have thought. Add a GroupBox, set the Text property to an empty string, change the Size property to make the Height equal to 2. Presto, horizontal carved battle-ship gray line like seen on many dialogs.
My preference would be to use a group box, as this is more standard.
If you need something custom, use write your own Paint handler to paint whatever you need.
I'm not sure how an option box would visually segment controls, but have a look at the LineShape control in the Visual Basic PowerPacks (from Microsoft).
(Google "Visual Basic PowerPacks", download it from MS, then install it.)
I got the Telerik RadRibbonBar for free with the Express edition of vb a while back, but it did not come with any sort of form. It also, unfortunately, has the control buttons there automatically. How would I create a form which is resizable, and works like a standard winform, but doesn't have the top bar?
I tried:
FormBorderStyle = Sizable
Text = Nothing
ControlBox = False
Unfortunately, when you maximize the window, it goes in front of the taskbar...and it has an ugly border when it isn't maximized.
How can I:
Change border color?
Make it so it does not go in front of the taskbar?
Thanks for the help! I'm surprised there is not some sort of form already made for this.
Telerik comes with a "Telerik.WinControls.UI.RadRibbonForm"
You have to add a RadRibbonForm Instead of a Standar Form.