[QUEST] my.location

Posts 1–8 of 8 · Page 1 of 1
[QUEST] my.location
i did already different things with

Code:
my.location
but i want to do this

Code:
my.location = 20,100
or
my.location(200;100) , my.location(200,100)
and that sort things

but all don't work i want to do this

Code:
my.location = rondom1,rondom2
help me plox :P
Please be more specific, and I think you may have to use the
Code:
Dim random1 as string
Dim random2 as string
OR:
Code:
Dim random as string
Dim random1 as string
and change it to this:
Code:
my.location = random, random1
But you made one error in that code, you put rondom, it's random
And I'm not sure on this, but I think you should try changing

Code:
my.location = rondom1,rondom2
to
Code:
me.location = random ,random1
will try this out

found something else (a harder way 0.o)
try'd it out

Code:
        Dim rnd4 As New Random
        Dim random As String
        random = rnd4.Next(0, 500)

        Dim rnd1 As New Random
        Dim random1 As String
        random1 = rnd1.Next(0, 500)

        me.location = random ,random1
get 2 errors

1:Value of type 'String' cannot be converted to 'System.Drawing.Point'

2:End of statement expected.

so yeay :S
Quote Originally Posted by maarten551 View Post
try'd it out

Code:
        Dim rnd4 As New Random
        Dim random As String
        random = rnd4.Next(0, 500)

        Dim rnd1 As New Random
        Dim random1 As String
        random1 = rnd1.Next(0, 500)

        me.location = random ,random1
get 2 errors

1:Value of type 'String' cannot be converted to 'System.Drawing.Point'

2:End of statement expected.

so yeay :S

End of statment would mean like,
Code:
End Sub
At the bottom of your code
IF it isn't already there...
mental incapability? first thing i'd do would be looking up System.Drawing.Point on msdn...
i was thinking on that yeay

but i found a other way but it's takes no random

Code:
Me.Location = New Point(Me.Location.X = 20, Me.Location.Y = 500)
or
Me.Location = New Point(Me.Location.X + 20, Me.Location.Y + 20)
that works

but if i use a random var, then the form goes to the location 0; 0
FOUND IT

Code:
        Dim objRandom As New Random
        Dim getal As Integer
        getal = objRandom.Next(1, 900)

        Dim getal1 As Integer
        getal1 = objRandom.Next(1, 900)

me.location = new point(getal, getal1)
thanks for all who trying to help me :O
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?