Help Me!

Posts 1–8 of 8 · Page 1 of 1
Help Me!
OK so i need help, i am making a window spammer, basically what i want it to do is to just make windows keep popping up, i have a few other versions of them automatically doing it but this one i want to be different.

This is what each window will look like:


How can i make it so that the users mouse will keep returning to the same position so that they cant click the cross at the corner to exit.

My overall plan is to make them only able to click EXIT.
Therefore multiple windows popping up
is it possible?

why do you want that? if you dont want them to be able to close the window just do

e.cancel under form1.closing



but yeah..thats probably possible..i just dont know how to do that

anyone else know?
Quote Originally Posted by XGelite View Post
why do you want that? if you dont want them to be able to close the window just do

e.cancel under form1.closing



but yeah..thats probably possible..i just dont know how to do that

anyone else know?
whats e.cancel?

whats it do?

lol im so nub

Quote Originally Posted by Chester Bennington View Post
whats e.cancel?

whats it do?

lol im so nub

it cancels the form closing.
so if you press the exit button, it does nothing.
EDIT: never mind i got it , i just turned no border off so theres no title strip xD
Quote Originally Posted by Chester Bennington View Post
ok i tried putting e.cancel into FormClosing and it dont work.


it just says:
Error 1 Property access must assign to the property or use its value.

I tied Exit.cancel and more but it dont fukin work


plz explain in detail, im still getting to know the basics
Code:
 Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
   
        e.Cancel = True
     
 End Sub
that should work. e.cancel needed a value. true is the value it needed.

Quote Originally Posted by Chester Bennington View Post
EDIT: never mind i got it , i just turned no border off so theres no title strip xD
ahhh ok..
e.cancel = true was all you needed though
But if you wanted to send the mouse to random places then you go like this:
Code:
        Dim Randomshit As New Random
        Dim randomNum As Integer = Randomshit.Next(0, 1200)
        Dim RandomNu2 As Integer = Randomshit.Next(0, 800)
        Cursor.Position = New Point(randomNum, RandomNu2)
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?