Jump to content


 


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.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Pset + Vb 2008


  • Please log in to reply
4 replies to this topic

#1 bicker x 2

bicker x 2

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:04:25 PM

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

BC AdBot (Login to Remove)

 


#2 Billy O'Neal

Billy O'Neal

    Visual C++ STL Maintainer


  • Malware Response Team
  • 12,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Redmond, Washington
  • Local time:08:25 AM

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
Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?)
Posted Image

#3 bicker x 2

bicker x 2
  • Topic Starter

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:04:25 PM

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 Wolfy87

Wolfy87

  • Members
  • 414 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:England
  • Local time:03:25 PM

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 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:10:25 AM

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)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users