Hi,
how can this be achieved? are there any examples anywhere?
thanks in advance
lee 4 3208
All resizable controlling is just hit testing. Tie into the mouse down
event of your form and get the mouse coordinates. Check to make sure
that the mouse down is within some range of the border (5, maybe 10
pixels). Make sure that it's just a mouse down and not a click. Then,
resize the form as the mouse moves while the mouse button is down. This
lets you have the click and drag resizing.
Let me know if this helps.
~ Justin Creasy
Immerge Technologies
Hi,
yes thanks I got it working, but now I have a problem with flickering, any
ideas?
lee
"JustinC" <ju***********@ gmail.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . All resizable controlling is just hit testing. Tie into the mouse down event of your form and get the mouse coordinates. Check to make sure that the mouse down is within some range of the border (5, maybe 10 pixels). Make sure that it's just a mouse down and not a click. Then, resize the form as the mouse moves while the mouse button is down. This lets you have the click and drag resizing.
Let me know if this helps.
~ Justin Creasy Immerge Technologies
whoaahhhh ive sorted it,
thanks
"Lee" <le*****@hotmai l.com> wrote in message
news:Oq******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
yes thanks I got it working, but now I have a problem with flickering, any ideas?
lee
"JustinC" <ju***********@ gmail.com> wrote in message news:11******** **************@ u72g2000cwu.goo glegroups.com.. . All resizable controlling is just hit testing. Tie into the mouse down event of your form and get the mouse coordinates. Check to make sure that the mouse down is within some range of the border (5, maybe 10 pixels). Make sure that it's just a mouse down and not a click. Then, resize the form as the mouse moves while the mouse button is down. This lets you have the click and drag resizing.
Let me know if this helps.
~ Justin Creasy Immerge Technologies
"Lee" <le*****@hotmai l.com> wrote in message
news:Oq******** ********@TK2MSF TNGP10.phx.gbl. .. Hi,
yes thanks I got it working, but now I have a problem with flickering, any ideas?
You could fool Windows into thinking you're clicking on a border with some
interop. Search Google for the terms SendMessage and WM_NCLBUTTONDOW N and
should be plenty of hits on how to do it. A lot of them will be for moving a
window, but just swap out HTCAPTION for the value you need (see WM_NCHITTEST
on MSDN for alternate values). This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: plank |
last post by:
Hey,
I am new to C# and am trying to resize a borderless form with the
mouse is pressed and dragged within a specified rectangle coordinates
on the form.
Any help would be much appreciated!
Thanks in advance,
|
by: Nikki |
last post by:
Hi,
Can anybody help me in solving this problem. I m developing an
application in which the main application form is borderless. now i m
not able to move the application form with the help of mouse.
Thanks,
|
by: Nikki |
last post by:
Hi,
I m developing a window's application in c#. As due to non-rectangular
forms, i m using borderless form. Now i need help in how to provide
user with resizing facality of the form using mouse.
Please reply,
Thanks,
nikki
|
by: ThunderMusic |
last post by:
Hi
I'm currently developping a skinnable form by using a borderless form
(Form.FormBorderStyle=None). Is it the right way to go in the first place?
if it is. Assuming that when there is no border to the form there is no
context menu when you right-click on your form in the start bar too (the one
with Restore, Move, Size, Close et al.)... How can I make this context menu
work again? Is there a way to tell the form to make it work even if...
|
by: SeanR |
last post by:
Hi,
I wasn't happy with the customisability of the standard Windows form,
so I decided to implement my own. Basically what I did was extend a
borderless form and add my own borders and caption bar to it so it
looks and functions like a normal bordered sizable form. However the
only thing I can't figure out is maximising. When I maximise my form,
it fills up the whole screen and covers up the Windows taskbar. I can
understand why you...
| |
by: Rick |
last post by:
I know I seen this before but IO cannot find it. How to you drag a
borderless form in Vb.net 2005
|
by: James Arnold |
last post by:
I currently have a borderless form, which I am subclassing to allow
dragging & dropping:
Protected Overrides Sub WndProc(ByRef m As Message)
Select Case m.Msg
Case 132 'Click & Drag Form
m.Result = New IntPtr(2)
'Continue message
MyBase.WndProc(m)
End Select
|
by: sierra7 |
last post by:
Hi
I have been writing Access applications for some years now and have moved away from from the 'Switchboard' type of opening form to using a menubar accross the top of the screen and borderless form used as a 'background', which shows a graphic, revision status & contact details etc
The menu-bar works fine when clicked by a mouse, but beeps when using an Alt+ letter 'acceleration' key, unless another user-form is already open over the top...
|
by: plevintampabay |
last post by:
I have a borderless form in C#.
The form has an icon specified in its properties and I also have the same icon specified for the project in the project properties.
When I had a border on the form, the icon was displayed in the task bar. But when I set the border to None, the icon no longer displays. The taskbar button only shows the text name of my program.
How can I get the icon to display in the taskbar for a borderless form?
...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |