i just got VB 2008.net express edition on my PC in VB 6.0 you can use Pset to make a point but what is the command in VB 2008 to do the smae thing or how do you do it
Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.
Page 1 of 1
Pset + Vb 2008
#2
Posted 22 November 2008 - 03:05 PM
Most vb6 features are derepecated or removed in VB2008. Could you explain what you are trying to achieve? It may better help us help you.
Billy3
Billy3
Look buddy, I'm an Engineer, and that means I solve problems. Not problems like "What is beauty?" .. 'cause that would fall under the purview of your conundrums of philosophy....
Twitter: @MalwareMinigun Blog: WinWrench
Students get free software through Microsoft DreamSpark
Students compete to solve world problems in the Microsoft Imagine Cup
Twitter: @MalwareMinigun Blog: WinWrench
Students get free software through Microsoft DreamSpark
Students compete to solve world problems in the Microsoft Imagine Cup
#3
Posted 22 November 2008 - 03:14 PM
i'm trying to draw an elipse i'e got all the mathamatical information needed i just can't plot the pionts needed which i would normaly do with vb 6
#4
Posted 30 April 2009 - 07:45 AM
Ok you will probably need an array like so:
I am using long winded names for your benefit
There may be some slight changes needed to that but your IDE will point that out for you or you could use an array like this:
Now you can use both dimensions of this array as the x and y, for example lets use it to move a picture box (as long at is there that is...):
And thats all there is to it. i know this was posted a long time ago but still.
Hope this helps, Wolfy87.
Dim MyFirstPoint As Point
I am using long winded names for your benefit
There may be some slight changes needed to that but your IDE will point that out for you or you could use an array like this:
Dim MyArrayXAndY(1) 'Now you can refer to two parts of this! Like so... MyArrayXAndY(0) = 20 MyArrayXAndY(1) = 10 'You can store two different values inside one array, this is called a Multi dimensional array
Now you can use both dimensions of this array as the x and y, for example lets use it to move a picture box (as long at is there that is...):
Dim MyArrayXAndY(1) 'Now you can refer to two parts of this! Like so... MyArrayXAndY(0) = 20 MyArrayXAndY(1) = 10 'You can store two different values inside one array, this is called a [b]Multi dimensional array[/b] PictureBox1.Left = MyArrayXAndY(0) PictureBox1.Top = MyArrayXAndY(1)
And thats all there is to it. i know this was posted a long time ago but still.
Hope this helps, Wolfy87.
#5
Posted 30 April 2009 - 01:47 PM
PSet() is not supported in VB.net
There is a workaround, you can draw an ellipse using DrawEllipse() with height and width of 1.
This would put a Blue dot, at position (50,50)
There is a workaround, you can draw an ellipse using DrawEllipse() with height and width of 1.
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawEllipse(Pens.Blue, 50, 50, 1, 1) End Sub
This would put a Blue dot, at position (50,50)
[url="http://www.avast.com/"]avast! free antivirus[/url]
Share this topic:
Page 1 of 1

Help

Back to top












