Am trying to create a 3d line control using lineshape control in vb2008, and i need these two color format vb3DShadow & vb3DHighlight, but can't seem to find it in .net. I originally used it in vb6.
i got the line shape control from visualbasicpowerpacks.
can someone help me with these colors version in vb.net or help me draw the control in another way using the graphics class of vb.net 2008
I found the replacement
System.Drawing.SystemColors.ControlLightLight
System.Drawing.SystemColors.ControlDark
thanks for those who participated
Related
Is it possible to have a combobox with LineShape lines in them instead of text?
if so how do i achive this?
Its for a drawing application im trying to make which alows the user to select difrent line types
(I'm using VB.Net)
You will have to inherit from ComboBox and create your own class. Set DrawMode = DrawMode.OwnerDrawFixed and handle OnDrawItem. There are many examples on how to do this. You can use this as start MSDN or Placing Images and Strings with a C# Combobox (in C# but you can easy convert this code to 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
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
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.)
using vs2008 I am trying to create a line graph using vb in a windows form. I have dragged a chart onto the form, and via the properties window, through the series option have changed the type to the graph that I want, which is line. But all the time the data is displayed as a simple bar chart. How do I remedy this please to get the type of chart that I want. Thanks for all and any help
Ah blimey at last I've the answer. The graph was originally put on the form via the designer, but as the data changed I redrew the entire graph not realising that I had to include the line Form1.ChartPlayer1.Series("Series2").ChartType = SeriesChartType.Line
Anyway, thanks to all who looked, I realise that from the vagueness of the question it was hard to help, but at least its solved now.