TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anthony Rose
NA
1
0
C# object problem
Jan 30 2009 3:02 AM
Hey guys i am trying to make this work it works with out the function (or method as C# calls it) but it would require a lot of similar code copied and pasted over and over again how would i get this to work? (if im making any sense)
public void objCollision(object a, object b)
{
if (a.Bottom >= b.Top && a.Right >= b.Left && a.Left <= b.Right && a.Top <= b.Bottom)
{
MessageBox.Show("Collision Detected!");
}
}
i just want to be able to use objCollision(box1, box2); if that is possible...
thanks in advance!
Reply
Answers (
1
)
how to start a windows application before windows login(not as service)
How to run an external script from a C# script?