![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Oct 2005
Posts: 84
Rep Power: 4
![]() |
How to stop a window from moving on screen
Hi
i am creating a windows form application in C# and i want that the user should not be able to move the application around the screen .is there any way to do this .please help
__________________
"You're good... but me, I'm magic" |
|
|
|
|
|
#2 |
|
Expert Programmer
|
If you don't mind not having a title bar, then you can set the form border style to none. The user will not be able to move the form.
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3
![]() |
i tried this on VS 2005
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.Location = new Point(300, 300);
}
//LocationChanged Event
private void Form1_LocationChanged(object sender,EventArgs e)
{
this.Location = new Point(300, 300);
}
}
} |
|
|
|
|
|
#4 |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,038
Rep Power: 5
![]() |
Question: wh do you want to do this? Denying users the ability to move windows around to their liking is a quick way to have them delete your program.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
edit: oops sorry didn't see samjack already had something like this
csharp Syntax (Toggle Plain Text)
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GUI Progress Bar | badbasser98 | C++ | 55 | Nov 4th, 2005 7:28 AM |
| How to stop the screen frm closing ? | Gunman | Python | 2 | Oct 26th, 2005 6:50 PM |
| WIN32 Creating a full screen window | hemanth.balaji | C | 1 | May 21st, 2005 3:48 PM |
| WIN32 Creating a full screen window | hemanth.balaji | C++ | 1 | May 21st, 2005 2:49 PM |
| Conversions | Sane | Python | 12 | Apr 28th, 2005 6:25 AM |