Shapes control in vb.net - vb.net

Is there anything like shapes control of VB 6.0, in Vb.Net?
I need to draw lines etc. at design time. But I could not find any shapes control in the toolbox.
Thanks
Furqan

Microsoft released the free Microsoft Visual Basic Power Pack that contains Line and Shape controls that you can add to the tool box. A post here suggests it is included in VS2008 SP1 so you may already have it.
Alternatively you can create your own using a panel and override the onPaint event.

no built in controls but you can easily achieve the same goal with some API calls: http://msdn.microsoft.com/en-us/library/bbw12xs4(v=VS.90).aspx

Related

VSTO Addin - Own button type like "ShapeWidth" and "ShapeHeight"

I am currently working on an PowerPoint Addin and I am currently finishing the Ribbon. I'd like to create a control to change the size of objects that looks similar to the inbuild button "ShapeWidth" and "ShapeHeight":
However, I couldn't find the correct control type and hence I built the below by myself using an editbox and buttons. Although it's working I find the other style way cleaner but I haven't found the correct type.
Not all Ribbon X (Office Fluent UI) control types that Microsoft uses in its Office applications are made available to third-party developers. This, I'm afraid, falls into that category.
You should probably be able to get the image, at least, by specifying the idMso for the built-in control.

windows form control property?

Good day everyone,
I just want to ask how to do this on vb.net using vs2010
It's like a label(i'm not sure if it's really a label), like this
and when you put the cursor on it, it will show a "button"?.. like this,
The Control to create the menu is called a toolstrip:
Tutorial for this:
Tooltrips - basics
.Net Heaven
To add those labels when hovering above it, you must use a tooltip.
There is a built in option (that doesn't require an extra control)
Tutorial: MSDN- How to: Use ToolTips in ToolStrip Controls
But you could implement the behavior yourself using the control "tooltip".
Here's some tutorials on how to implement it:
Tooltips
.Net Heaven
Dotnetperls
Enjoy

Can We use the VB6 PictureBox in VB.NET?

I have a Migrated Project which contains PictureBox Events.When it is migrated to VB.NET 2008 some events are converted which are not correct.Because the PictureBox in VB.NET is different to VB6 PictureBox.I want to know one thing that can we use the Same picture box in VB.NET also.I think which may help us to use the same events.Can we do like this ? It contains some events like Picture_paint,AutoRedraw,setPoint etc.It has some Twips and Pixel Calculation also.
Will this help ?Do we have any upgraded control in .NET equivalent to Picture box of VB6?
This is not the right way to accomplish your goal. Try to upgrade to the new PictureBox in VB.Net.
Yes, they are different, but, you can hardly say that the VB.Net version is less capable than the VB6 version.
If you upgrade, do it fully and you will not regret the decision in the future.
This MSDN link exposes the difference between the two controls
Converting from VB6 to VB.Net is not easy process almost all your events will not work you need to find equivalent events in vb.Net
Go with this link
As already mentioned the controls in VB6 and VB.NET work differently so upgrading line for line is not really possible.
As a hlaf way house you could create an ActiveX Control (OCX) in VB6 containing your picturebox which raised the events required to the application and then use this in VB.NET
This tutorial may help you to get started

VB.Net / Winform - draw a line?

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.)

Windows Forms' Appearance

Just started using Visual Studio 2008 and was hoping to convert my VBA UserForms to VB.NET with the intent of upgrading my antiquated UserForm controls to newer Windows form controls that match the operating system.
The Windows forms I create in Visual Studio look great, but when I load them in PowerPoint or Excel, the form controls look just as ugly as they did before (e.g. plain, rectangular buttons).
Is there a way to employ modern controls in my Windows forms using VB.NET in Visual Studio?
You either use one of the many available custom drawn buttons. Or it could be that you have to turn on visual style to make them render better http://dotnet.mvps.org/dotnet/faqs/?id=xpvisualstyles&lang=en