473,505 Members | 14,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving data window not using title bar

I need to be able to drag a window around by clicking on the background
of the window.

This windows does not contain a title bar. This would be like some on
screen post-it note applications use.

Would appreciate help with the code or a link to an app which would show
how to do this.

Thanks in advance.
Jeff
Mar 7 '07 #1
3 1267
Here is a FAQ entry that might help with this.

http://www.syncfusion.com/faq/window...arch/1107.aspx

==========================
Clay Burch
Syncfusion, Inc.
Mar 7 '07 #2
On Mar 7, 2:55 pm, Jeff Williams <jeff.willi...@hardsoft.com.au>
wrote:
I need to be able to drag a window around by clicking on the background
of the window.

This windows does not contain a title bar. This would be like some on
screen post-it note applications use.

Would appreciate help with the code or a link to an app which would show
how to do this.

Thanks in advance.
Jeff
Jeff,
Copy paste this code into your form on which you need to drag clicking
the background.

protected override void WndProc(ref Message m)
{
const int WmNcHitTest = 0x84;
const int HtCaption = 2;
if (m.Msg == WmNcHitTest)
m.Result = new IntPtr(HtCaption);
else
base.WndProc(ref m);
}

hope that helps :)

Mugunth

Mar 7 '07 #3
Hi Mugunth

Thanks this does what I need but I now have a problem I cannot resize
the borders.

I am guessing I need extra code to allow a resize but again have no ide
how to restore this functionality.

Regards
Jeff
Mar 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
12488
by: Adonis | last post by:
I wish to manually move widgets in Tkinter, now I have successfully done it, but with odd results, I would like to move the widgets with a much smoother manner, and better precision. Any help is...
2
11292
by: Bhavin G | last post by:
Hi there , I am pretty new at javascripting and i am having this huge problem. I am using asp.net and C# webapplication. In my asp.net aspx file I have a place holder for taking an html table...
16
1847
by: Greg G | last post by:
I'm trying to open a popup window and then set some data, but I can't seem to make it work. I'm sure I'm missing something obvious. popwin = document.open('mypop.html', \"external\", \"width=\"...
31
4077
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
6
2680
by: Sam Lazarus | last post by:
I need to import data from a website, but the text is arranged badly: Name:John Doe Title:Grunt ID:314159 Name:Jane Doe Title:Queen-Bee ID:271828 etc...
2
1504
by: willem | last post by:
Hi, I want move my form with mouse when I press button over a different position from normal bar of title. I set MouseUp, MouseDown and, MouseMove events and all works good. is it...
1
3778
by: rsteph | last post by:
I bought a book to help me learn to use DirectX with windows programming. It's first trying to walk me through some basic windows programming and graphics before getting into DirectX. I'm trying to...
1
4131
by: ledneh | last post by:
I've been working on concurrency checking for an application I'm building, and a minor part of it has me slightly stumped. I've got a DetailsView that populates from an ObjectDataSource, using...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4699
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1528
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.