Hi all I m making a simple game in C# (Catch ME). In this game there will be a button to catch. when a user moves the pointer to click on to it. It moves further and doesnt get clicked. i have done it by changing the location of the button. But by doing so, the button moves in a fixed set location and also when pointer is brought near the form boundries the button gets out of the form or becomes invisible. So i want the some random number be generated and assigned to the location property of the button so that button moves randomly. Also ensure that it must be within the form boundries.
Thanks in advance for any Idea
Gaurav arora 0 Junior Poster in Training
Ramy Mahrous 401 Postaholic Featured Poster
Gaurav arora 0 Junior Poster in Training
Gaurav arora 0 Junior Poster in Training
Ramy Mahrous 401 Postaholic Featured Poster
Gaurav arora 0 Junior Poster in Training
Ramy Mahrous 401 Postaholic Featured Poster
Gaurav arora 0 Junior Poster in Training
Gaurav arora 0 Junior Poster in Training
Ramy Mahrous 401 Postaholic Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.