473,498 Members | 1,873 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 3377
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=Maximize.
2nd Question???? conffusing.Plz Explain in Details.
Apr 28 '07 #3
Killer42
8,435 Recognized Expert Expert
Windowstate=Maximize.
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
rave3085
27 New Member
Though i got the form not to be moved by the mouse by making the moveable property in its property's table to FALSE, i would like to know why the same cannot be done with the code i gave in the previous post.

Please explain the error i mentioned above!

Thanx a lot!!!!!!!!!!
May 4 '07 #11
Tig201
103 New Member
It is because in vb6 the forms Moveable property is read only at run time.
May 4 '07 #12
rave3085
27 New Member
what is the difference there in typing it as a code!
Even it is gng to be run only at runtime, isn't it!

Pls do explain clearly!

thanx!
May 5 '07 #13
Killer42
8,435 Recognized Expert Expert
what is the difference there in typing it as a code!
Even it is gng to be run only at runtime, isn't it!
DEsign mode and run-time mode are quite differnt. Some things can only be done in one mode or the other. It's not always clear why, though presumably there are reasons.
May 5 '07 #14

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

Similar topics

3
1782
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...
25
10162
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...
5
18582
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...
14
10099
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...
19
3584
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...
7
1661
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...
12
2083
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
1309
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...
6
3019
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...
9
2491
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 --...
0
7208
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
6890
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
7379
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
5464
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,...
1
4915
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
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
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
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...

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.