moving controls with in an image

  • Thread starter Adrian.Martin.Taylor
  • Start date
A

Adrian.Martin.Taylor

Hello

I'm affriad i'm a bit of a novice to VB but have been asked to create a
form.

I wanted to create a map which will display powerstations in thier
correct geographical positions. I have a combobox (which is linked to a
database in excel) and when the powerstation name is selected I want
the corresponding label to appear on the map in the correct position??

I have a coordinate system working on my image/map,

Private Sub Image1_MouseMove(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)
'show X,Y for station reference purposes
fr_coord.tb_x_coord.Value = X
fr_coord.tb_y_coord.Value = Y
End Sub

I thought i would be able to use these coordinates to position the
label with the Moveto command but it isn't there in my version of VB

Any help would be much appreiciated

Adrian
 
P

Peter Proost

In vb.NET the location property is use to position a control,
for example: Label1.Location = new System.Drawing.Point(X,Y)

Hth

Greetz, Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top