Is there a way i could move or center my VB.net form in Visual Studio 2010?
I'm asking because whenever my toolbox is open, it hides my form and it's getting annoying.
At the top of the toolbox is a button that looks like a pin which toggles auto-hide. Click it and everything will move over so you can see the form and toolbox at the same time.
also, if you don't want the toolbox to auto hide, you can move it to the right side of the window, out of your way.
Related
I'm using the visual designer and have one custom ribbon with 12 or so buttons on it. I'd like to add the most important button from that ribbon onto "TabMail" so that I can use it more easily.
I have added another ribbon via the "add..." dialog, then ribbon, and then add a test button to it. When I then run the solution (from Visual Studio, debug or release) it seems to pick one ribbon or another to show - either leaving me missing a button, or missing 12!
What am I doing wrong?
I've just found that what I should be using is two Tabs, not two Ribbons. Each tab can appear wherever you want, rather than each having to come up as a separate custom tab.
Here's the setup inside visual studio:
Shown below is "My Button" in blue, and in red is "My Tab"
I am trying to make a Windows Form application using Visual Studio in which I right click on a word document, select an item 'pages count' from the right-click menu, and a form will pop up with the number of pages in that document.
Am I right to be using Visual Studio for this?
How do I call "thisDocument" or "activeDocument", and make the document the one that is selected in the menu, if the document is not actually open?
I saw that for application.ThisWorkbook, if it the application is an add-in, it will bring up the application calling it, but I am not quite sure if an add-in is part of Visual Studio?
https://msdn.microsoft.com/en-us/library/office/ff193227.aspx
I hope this question isn't too basic -- all these things sound so similar to me, I'm having trouble sorting it all out with googling and reading questions.
Thanks for any clarification!
I'm digging through a program that contains a lot of forms with names that aren't as descriptive as I'd like them to be. I am trying to edit some motor control functions, and in the GUI I am able to reach the form that contains buttons controlling the motor, but I'm not sure where the code is that controls this form. Is there a way to open up the code block corresponding to the form I navigate to from the GUI in debug mode?
Or, alternatively, how can I navigate through the GUI without running it? I know I can right click and do "View Code", so if I could navigate to the form I'd be able to that.
I am using VB.NET in Visual Studio 2010
Go by button text. In visual studio search(Ctrl+F) using the text, visual studio will find the designer.vb file holding the button with the text, once it is done try to look at the design of particular then you can figure out which form you need to look at.
thanks
I'm creating an Microsoft Office 2010 add-in ribbon with a bunch of controls on it. I am able to add things like buttons, TextBoxes, and Labels. :-) I am not, however, able to add the one control I need, which is a DateTimePicker. :-( Is there some workaround or hack to getting other controls like a DateTimePicker on my ribbon?
If it helps any, I'm using Visual Basic 2010.
I wound up just making one of my buttons open up a separate form which then was able to have the DateTimePicker control on it. :-)
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)