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
LEUNG TING YU
NA
2
0
moving figure in a range
Feb 11 2011 5:15 AM
I have a visual c# program to move channela bmp in y axis , it can moved upwards and downwards in a limit value , moving up to a limit value can be done while downwards cannot , can someone help me ?
private void channela_MouseDown(object sender, MouseEventArgs e)
{
drag = true;
y_down = e.Y;
}
private void Channela_MouseMove(object sender, MouseEventArgs e)
{
if (drag)
{
int topPosition = channela.Top + e.Y - y_down;
channela.Top = Math.Max(80, topPosition);
if (channela.Bottom == 477
{
channela.Top = Math.Max(477,topPosition);
return;
}
}
}
Reply
Answers (
1
)
How to develop "delete" using 3 tiers architecture?
create exe file for application uisng VS 2008(stand alone exe)