By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,557 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,557 IT Pros & Developers. It's quick & easy.

The Form Properties!

P: 27
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
Share this Question
Share on Google+
13 Replies


P: 17
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

P: 47
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

Expert 5K+
P: 8,434
Windowstate=Maximize.
If it's VB6, the actual name of the constant to use is vbMaximized (value is 2).
May 1 '07 #4

isotope11
P: 10
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

Expert 5K+
P: 8,434
To prevent it from clicking the maximize button you should disable it. ...
Good point. Thanks, isotope.
May 1 '07 #6

P: 47
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

P: 27
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

Expert 5K+
P: 8,434
As SanjuMtr pointed out, set .Moveable = False.
May 4 '07 #9

P: 27
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

P: 27
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
100+
P: 103
It is because in vb6 the forms Moveable property is read only at run time.
May 4 '07 #12

P: 27
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

Expert 5K+
P: 8,434
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

Post your reply

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