473,563 Members | 2,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The Form Properties!

27 New Member
In my project i want the forms to be maximized always and the option of draging it with a mouse should be disabled!

Though i can make all the form to the condition i proposed, i donno what to do to some of the forms as to stop them from being dragged, And also how can i make the startupform fro being dragged!

Please suggest!!!!!!!! !!!!!!!???????? ??????????
Apr 28 '07 #1
13 3392
Geoff
17 New Member
From what you've said I'm guessing that you're wanting to change the form(s) so they're in windowstate maximized. In the form properties there is an option near the bottom of the list "Window state" with 3 options, normal, minimised, and maximised. Changing this changes how the form loads in form load. Hope this helps.

Geoff.
Apr 28 '07 #2
SanjuMtr
47 New Member
In my project i want the forms to be maximized always and the option of draging it with a mouse should be disabled!

Though i can make all the form to the condition i proposed, i donno what to do to some of the forms as to stop them from being dragged, And also how can i make the startupform fro being dragged!

Please suggest!!!!!!!! !!!!!!!???????? ??????????
Use the property of Form
Set Moveable=false
Windowstate=Max imize.
2nd Question???? conffusing.Plz Explain in Details.
Apr 28 '07 #3
Killer42
8,435 Recognized Expert Expert
Windowstate=Max imize.
If it's VB6, the actual name of the constant to use is vbMaximized (value is 2).
May 1 '07 #4
isotope11
10 New Member
To prevent it from clicking the maximize button you should disable it.
You can do this by changing the MaxButton property of the form to False.
May 1 '07 #5
Killer42
8,435 Recognized Expert Expert
To prevent it from clicking the maximize button you should disable it. ...
Good point. Thanks, isotope.
May 1 '07 #6
SanjuMtr
47 New Member
If it's VB6, the actual name of the constant to use is vbMaximized (value is 2).
Yes, its a spelling Mistake. thank u for pointed out.
May 1 '07 #7
rave3085
27 New Member
yeah i was maximize my form but i want to prevent the form from being dragged by mouse! how can i do this?????

Pls Help!!!!!!!!!!! !!!1
May 4 '07 #8
Killer42
8,435 Recognized Expert Expert
As SanjuMtr pointed out, set .Moveable = False.
May 4 '07 #9
rave3085
27 New Member
I typed this in the form_load event

form1 is my form's name

with form1
.moveable=false
end with

and also simply wrote form1.moveable= false

Either ways i got this error:

Compile Error:
Function or interface marked as restricted,or the function uses an automation type not supported in visual basic.

Pls Help

this was the complete code in my form_load event

Expand|Select|Wrap|Line Numbers
  1. Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
  2.     Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
  3.     Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
  4.     Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
  5.     Form1.Moveable = False
May 4 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1797
by: Nancy | last post by:
Hi, I am working on a project where I have to make a form list static, i.e. put in links so that users can choose a local file. As it stands, it's looking for a php file. Here's an example of the body code: <select name="standardcode" size="10" onchange="document.reqForm.submit()" tabindex="4"> <option value="0" SELECTED>-- Select a...
25
10183
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the data in each record, which includes the ID of the father and the mother (who also have records in the table). One record per form. I have a Tab...
5
18612
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can dynamically resize an object on the form in the form's Form_Resize method when a user resizes the form, both horizontally and vertically. Thanks,...
14
10115
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought I should give back to the community by posting our findings. Thanks you all for all your help till now by posting problems and their solutions. ...
19
3589
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the thing you know ;-) After discovering that access 2000 support form properties (I'm a
7
1664
by: alsemgeest | last post by:
Hi, I'd like to change the properties of the default form design. Every form I need to change many settings. Especially the following properties (I try to translate them well from Dutch): * make the borderstyle dialog * no recordlines * no navigationbuttons * backgroundcolor white * font change * no scrollbars
12
2095
by: Simon Jefferies | last post by:
Hello, I have created a new form within C# and I am unable to get any properties on this form and also unable to add a new controls to it. Any ideas? Simon Jefferies
10
1319
by: Rob Meade | last post by:
Hi all, I've got myself into a bit of a problem and I'm trying to dig my way back out, in a) the quickest way due to project deadline and also b) best approach. I have a form which gets a set of document type properties from SQL Server, these properties are used to create corresponding controls on the form, so for example:
6
3027
by: jean.ulrich | last post by:
Hi I have a form that is not related with a table neither a query (unbound form) On this form I have a text field where the user can put a text or a number As I dont want to create a table just for that field, is it possible that when someone write someting in the field, the text don't disapear when he close the form and open it again
9
2499
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett -- comp.lang.javascript FAQ <URL: http://jibbering.com/faq/ >
0
7664
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...
0
7583
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...
0
7885
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. ...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6250
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...
0
3642
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...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
923
bsmnconsultancy
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...

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.