473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Using Forms

2 questions

1. How do i set the whole form's opacity prop? Right now i have to set
an event handler for each element on the form. Is there are better way
to do this?

2. how do i make a form that has no border fully dragable... ie you can
click and hold any where to move it around the desktop

Thanks for any help inadvance

Jun 11 '06 #1
3 1240
For Q2, you will have to add some code to your form that captures the
mousedown, mouseup and mousemove event. In the mousemove event you need to
have an if statement that checks if the mouse button is currently pressed, if
so then you move the form.

Mark.
--
http://www.markdawson.org
"Stewart" wrote:
2 questions

1. How do i set the whole form's opacity prop? Right now i have to set
an event handler for each element on the form. Is there are better way
to do this?

2. how do i make a form that has no border fully dragable... ie you can
click and hold any where to move it around the desktop

Thanks for any help inadvance

Jun 11 '06 #2
Thanks for your reply mark...

Yes the event handlers. I can set up a bool to see if the user is
currently dragging. However i am more intrested in the code that will
move the form when dragging. Is there a method in the framework that i
can use or will i have to code the form to manually track the mouse
movement and then update the top and left props?
Mark R. Dawson wrote:
For Q2, you will have to add some code to your form that captures the
mousedown, mouseup and mousemove event. In the mousemove event you need to
have an if statement that checks if the mouse button is currently pressed, if
so then you move the form.

Mark.
--
http://www.markdawson.org
"Stewart" wrote:
2 questions

1. How do i set the whole form's opacity prop? Right now i have to set
an event handler for each element on the form. Is there are better way
to do this?

2. how do i make a form that has no border fully dragable... ie you can
click and hold any where to move it around the desktop

Thanks for any help inadvance


Jun 12 '06 #3
Try this:

http://www.syncfusion.com/FAQ/Window...5c.aspx#q1107q

"Stewart" <st**************@gmail.com> wrote in message
news:11*********************@h76g2000cwa.googlegro ups.com...
Thanks for your reply mark...

Yes the event handlers. I can set up a bool to see if the user is
currently dragging. However i am more intrested in the code that will
move the form when dragging. Is there a method in the framework that i
can use or will i have to code the form to manually track the mouse
movement and then update the top and left props?
Mark R. Dawson wrote:
For Q2, you will have to add some code to your form that captures the
mousedown, mouseup and mousemove event. In the mousemove event you need
to
have an if statement that checks if the mouse button is currently
pressed, if
so then you move the form.

Mark.
--
http://www.markdawson.org
"Stewart" wrote:
> 2 questions
>
> 1. How do i set the whole form's opacity prop? Right now i have to set
> an event handler for each element on the form. Is there are better way
> to do this?
>
> 2. how do i make a form that has no border fully dragable... ie you can
> click and hold any where to move it around the desktop
>
> Thanks for any help inadvance
>
>

Jun 12 '06 #4

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

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
0
by: grutta | last post by:
I am writing a windows service that will recieve notification when a USB Device is insterted into the machine. I have used the RegisterDeviceNotification and the RegisterServiceCtrlHandlerEx with...
5
by: Dave | last post by:
I tried posting this in the WinForm forum and got no hits so I am trying it here. After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
0
by: Marco Segurini | last post by:
Hi, I am trying to dynamically install/deinstall a message handler to a System.Windows.Forms.Form using NativeWindow. I do not use IMessageFilter derived class because it intercept only the...
2
by: Hrcko | last post by:
How to use this control? I have to grids on my form, one on the top and one on bottom. When I start application I want to be able to move bottom grip up, and top grid down, but it doesn't...
3
by: Rob | last post by:
Hi all, I am having trouble converting the code below (found on http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a format that will work using vb .NET. Can anyone have a look...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
0
by: Sister Ray | last post by:
I'm trying to create a simple form that sends an email using my company's exchange server. I'm using the System.Net.Mail Namespace of the .net framework 2.0. I've googled everywhere and i think my...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.