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
Shawn Hee
NA
4
450
Windows Forms Application overlayed other Application
Dec 2 2020 10:25 PM
My WFA has overlayed other application since i added this code unto it. But i need this code to lock other users from repositioning the form. Please help ??
protected override void WndProc(ref Message m)
{
const int WM_NCLBUTTONDOWN = 161;
const int WM_SYSCOMMAND = 274;
const int HTCAPTION = 2;
const int SC_MOVE = 61456;
if ((m.Msg == WM_NCLBUTTONDOWN)&&
(m.WParam.ToInt32() == SC_MOVE))
{
return;
}
if ((m.Msg == WM_NCLBUTTONDOWN) &&
(m.WParam.ToInt32() == HTCAPTION))
{
return;
}
base.WndProc(ref m);
Reply
Answers (
1
)
Build Error in WPF MVVM Windows Form
Telerik Linear Gauge Needle