BleepingComputer.com: Pset + Vb 2008

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Pset + Vb 2008

#1 User is offline   bicker x 2 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 9
  • Joined: 16-July 08

Posted 22 November 2008 - 02:52 PM

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

#2 User is offline   Billy O'Neal 

  • Bleepin Engineer GRADUATE
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,403
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

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

#3 User is offline   bicker x 2 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 9
  • Joined: 16-July 08

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 User is offline   Wolfy87 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 414
  • Joined: 25-July 08
  • Gender:Male
  • Location:England

Posted 30 April 2009 - 07:45 AM

Ok you will probably need an array like so:

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 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

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.

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)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users