473,659 Members | 2,540 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Imoveable Forms

Later versions of Access have form property called Moveable which, if
set, prevents users from moving forms yet still allows the form to
retain a border.

Access 97 does not have this property therefore the only way to
prevent users from moving forms is to have forms with no borders, is
there a way in Access 97 to mimic the Moveable Property?
Patrick
Nov 13 '05 #1
11 1891
"Patrick Fisher" <in**@psoftuk.c om> wrote
Access 97 does not have this property
therefore the only way to prevent users
from moving forms is to have forms with
no borders, is there a way in Access 97
to mimic the Moveable Property?


Best solution is to allow the user to have control of his/her own desktop --
that has traditionally been "The Windows Way". Otherwise, you could draw
your own "pseudo-border" on a borderless form and intercept any attempt to
resize the form in the "On Resize" event.

My personal preference is to let the user have control, but I realize there
are sometimes reasons to not do so.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #2

Larry
On Resize only works when you have the border set to Sizeable and you
try to resize the form, it has no effect on moving the form.

The problem with letting users move forms about is that once they
realize that they can have as many forms open as they like not only do
the use up resources but any On Close event procedures that may have
been programmed may not be allowed to work thus causing potential data
chaos.

Surely over the years someone has come up with a solution to this?
Patrick
On Tue, 07 Jun 2005 22:12:34 GMT, "Larry Linson"
<bo*****@localh ost.not> wrote:
"Patrick Fisher" <in**@psoftuk.c om> wrote
Access 97 does not have this property
therefore the only way to prevent users
from moving forms is to have forms with
no borders, is there a way in Access 97
to mimic the Moveable Property?


Best solution is to allow the user to have control of his/her own desktop --
that has traditionally been "The Windows Way". Otherwise, you could draw
your own "pseudo-border" on a borderless form and intercept any attempt to
resize the form in the "On Resize" event.

My personal preference is to let the user have control, but I realize there
are sometimes reasons to not do so.

Larry Linson
Microsoft Access MVP


Nov 13 '05 #3
Why is moving the forms a problem?

Oh, well, you can always open the form "full screen" so that there's no
where for the user to move the form, or if it really doesn't matter if
they move the form, you can use the MoveSize command to more the form
back to where you want it to be.

If there's something under the form you don't want the user to see, try
hiding that form when the "one on top of it" opens.

Nov 13 '05 #4
Patrick Fisher <in**@psoftuk.c om> wrote in
news:o9******** *************** *********@4ax.c om:
The problem with letting users move forms about is that once they
realize that they can have as many forms open as they like not
only do the use up resources but any On Close event procedures
that may have been programmed may not be allowed to work thus
causing potential data chaos.


Then maybe you should be using modal forms, i.e., by opening them
with the acDialog argument? That means the user has to dismiss the
form before moving onto the next form.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #5
I have found a solution that I believe is perfectly acceptable and
that is to use the On Timer Event Procedure to reposition the form
with a setting of 500 using MoveSize.
Thanks for your suggestions
Patrick

On 7 Jun 2005 15:38:34 -0700, "Chuck Grimsby"
<c.*******@worl dnet.att.net> wrote:
Why is moving the forms a problem?

Oh, well, you can always open the form "full screen" so that there's no
where for the user to move the form, or if it really doesn't matter if
they move the form, you can use the MoveSize command to more the form
back to where you want it to be.

If there's something under the form you don't want the user to see, try
hiding that form when the "one on top of it" opens.


Nov 13 '05 #6
"Patrick Fisher" <in**@psoftuk.c om> wrote in message
news:68******** *************** *********@4ax.c om...
I have found a solution that I believe is perfectly acceptable and
that is to use the On Timer Event Procedure to reposition the form
with a setting of 500 using MoveSize.
Thanks for your suggestions
Patrick


It seems counter-productive to me to add needless timer events because you are
concerned about wasting resources. Timer events use more resources then having
a few extra forms opened.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #7
Patrick Fisher wrote:
The problem with letting users move forms about is that once they
realize that they can have as many forms open as they like not only do
the use up resources but any On Close event procedures that may have
been programmed may not be allowed to work thus causing potential data
chaos.
If this is the issue, then your solution is a very bad one, in my
opinion, for precisely the reasons Larry has mentioned. It's counter
intuitive to users.

Think about flow of events and what you're trying to accomplish and
incorporate subs which close all open forms or specific ones in the on
open event of certain key (ie, major crossroads in the flow). Set up
and control your processes such that there are very few forms open at
one time.

I would also largely avoid on close events that do affect data. That's
a personal choice of mine. For data entry, I more often use unbound
controls/forms than bound ones. In such cases, I have an OK button that
performs an insert/update and then closes the form, but I do NOT depend
on the close even of the form to do any data manipulation.

Your solution you've proposed elsewhere is counterintuitiv e and will be
irritating, I can guarantee you, to a windows user.
Surely over the years someone has come up with a solution to this?
Patrick


Yes, good design. 8)

My apologies if I am sounding brutal and mean to you, but I am trying to
offer some alternatives based on my own experiences (which are limited
compared to some of the big guns - Larry, Chuck, David & Rick - here
that have responded to you so far) and not trying to cut you down.
--
Tim http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Whatcha doin?" - Ditto "TIM-MAY!!" - Me
Nov 13 '05 #8
Patrick Fisher <in**@psoftuk.c om> wrote in
news:68******** *************** *********@4ax.c om:
I have found a solution that I believe is perfectly acceptable and
that is to use the On Timer Event Procedure to reposition the form
with a setting of 500 using MoveSize.


Timers can have very weird side effects that are hard to trace down,
and I use them only when I must.

I think you're solving a problem created by not properly structuring
your program flow, using modal forms where appropriate.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #9
David
I think you may have a point, I have never really thought much about
using the modal property on my main forms, only for smaller popups.
Thanks for the suggestion.
Patrick

On Wed, 08 Jun 2005 20:10:59 GMT, "David W. Fenton"
<dX********@bwa y.net.invalid> wrote:
Patrick Fisher <in**@psoftuk.c om> wrote in
news:68******* *************** **********@4ax. com:
I have found a solution that I believe is perfectly acceptable and
that is to use the On Timer Event Procedure to reposition the form
with a setting of 500 using MoveSize.


Timers can have very weird side effects that are hard to trace down,
and I use them only when I must.

I think you're solving a problem created by not properly structuring
your program flow, using modal forms where appropriate.


Nov 13 '05 #10

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

Similar topics

19
4091
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 the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
3
2278
by: Joshua Russell | last post by:
Hi, Both the methods below open up a windows form called MasterForm. However, one works better than the other. Method 1 opens the form correctly but I don't have any reference to the instance of master form. Method 2 opens the form but when I right click on the Notify Icon I don't get the context menu that I should be seeing. I can interact with the main form window but I cannot interact with the NotifyIcon. Method 2 gives a object reference...
7
2469
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls each with a couple of controls in them I then rebuilt my project and my new panels and all controls they contained are gone... I've looked through the Auto generated code but don't see anything that looks wrong Any body have any idea why this...
13
5567
by: MD | last post by:
I have been converting a program from VB6 to VB.Net and enhancing it as well. All has been progressing OK although its been hard work. Now, all of a sudden, when I try to execute a ShowDialog() on one of my forms I get "An unhandled exception of type 'System.ExecutionEngineException' occurred in system.windows.forms.dll". I can't work out what has caused this, and can't find any help on the Microsoft site or anywhere else on the web. ...
15
2052
by: Joshua Kendall | last post by:
I have a script in which it keeps opening the same form instead of only one instance. I also need help with a form that has a password. Where do I put the actual password? can I use a database for multiple users? opens multiple instances of password form instead of one: Public Class Splash Inherits System.Windows.Forms.Form
3
1635
by: Lloyd Sheen | last post by:
I have the following situation: Need a user resizable user control. After much trying with user control I came across the idea of hosting the controls in a form marked as not TopLevel = false. This work fine for most cases, allowing the user to resize the form (and controls within the form. The forms them selves are create dynamically when the user drags a node from a listview to a panel (contained in a Usercontrol which is hosted by...
8
2720
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a thread to access the database and then displays a modal dialog which allows the user to cancel the task, if it is taking longer than they want, and shows them a display of how long the query has been running so far.
3
2366
by: Geraldine Hobley | last post by:
Hello, In my project I am inheriting several forms. However when I inherit from a form and add additional subroutines and methods to my inherited form I get all sorts of problems. e.g. I sometimes get MyVarialble is not declared errors when the variable is quite clearly declared, when I change it to public and then back again to private the error goes away!!! Also I get lots of member not found errors, these however don't stop me from...
6
2561
by: dbuchanan | last post by:
I have a Windows Forms application that accesses SQL Server 2k from a small local network. The application has been used for weeks on other systmes but a new install on a new machine retruns errors. The machine is a new laptop Windows XP Pro SP2 The machine is up to date with respect to the dot net framework. Details: Dot Net Framework ver. 1.0.3705 is installed Dot Net Framework ver. 1.1.4322 is installed
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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,...
0
8851
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, 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...
0
8630
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
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...
0
4176
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...
1
2759
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
2
1982
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.