Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-2008, 12:13 AM
Dominic Vella
 
Posts: n/a
Hide Properties

I'm developing using MS-Access 2000.

When I open a form in 'Form' view, how can I determine if the properties box
is open, and then how do I hide the properties box?

Thanks in advance.


Dominic

Reply With Quote
  #2 (permalink)  
Old 08-25-2008, 12:46 AM
Tom van Stiphout
 
Posts: n/a
Re: Hide Properties

On Mon, 25 Aug 2008 09:13:27 +1000, "Dominic Vella"
<dominic.vella@optusnet.com.au> wrote:

If you deploy your application per best practices and turn it into an
MDE, you won't have this problem.

-Tom.
Microsoft Access MVP



>I'm developing using MS-Access 2000.
>
>When I open a form in 'Form' view, how can I determine if the properties box
>is open, and then how do I hide the properties box?
>
>Thanks in advance.
>
>
>Dominic

Reply With Quote
  #3 (permalink)  
Old 08-25-2008, 01:08 AM
Linq Adams via AccessMonster.com
 
Posts: n/a
Re: Hide Properties

In form Design View goto Properties - Other and set Allow Design Changes to
Design View Only.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200808/1

Reply With Quote
  #4 (permalink)  
Old 08-25-2008, 02:34 AM
Chris O'C via AccessMonster.com
 
Posts: n/a
Re: Hide Properties

You can use Windows apis to get the window class name of the properties
window, which is OArgDlg. You could probably use more Windows apis to close
the properties window, but it's way easier if you avoid using Windows apis.
As Linq Adams suggests, make sure you set all the forms' "allow design
changes" property to design view only.

Chris
Microsoft MVP


Dominic Vella wrote:
>I'm developing using MS-Access 2000.
>
>When I open a form in 'Form' view, how can I determine if the properties box
>is open, and then how do I hide the properties box?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200808/1

Reply With Quote
  #5 (permalink)  
Old 08-25-2008, 03:26 AM
Chris O'C via AccessMonster.com
 
Posts: n/a
Re: Hide Properties

Actually, I just tried it and using the Windows apis doesn't require much
coding. Put these 3 declarations at the top of the module:

Private Declare Function _
FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long

Private Declare Function _
SendMsg Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, ByVal lParam As Long) As Long

Private Const WM_CLOSE = &H10


Now in a procedure where you want to close the properties window if it's open,
paste this line of code:

SendMsg FindWindow("OArgDlg", vbNullString), WM_CLOSE, 0, 0


Chris
Microsoft MVP


Chris O'C wrote:
>You can use Windows apis to get the window class name of the properties
>window, which is OArgDlg. You could probably use more Windows apis to close
>the properties window, but it's way easier if you avoid using Windows apis.
>As Linq Adams suggests, make sure you set all the forms' "allow design
>changes" property to design view only.
>
>Chris
>Microsoft MVP
>
>>I'm developing using MS-Access 2000.
>>
>>When I open a form in 'Form' view, how can I determine if the properties box
>>is open, and then how do I hide the properties box?


--
Message posted via http://www.accessmonster.com

Reply With Quote
  #6 (permalink)  
Old 08-25-2008, 06:26 AM
Dominic Vella
 
Posts: n/a
Re: Hide Properties

Thanks, that's excellent.

Dom

"Chris O'C via AccessMonster.com" <u29189@uwe> wrote in message
news:892d4213fb040@uwe...
> Actually, I just tried it and using the Windows apis doesn't require much
> coding. Put these 3 declarations at the top of the module:
>
> Private Declare Function _
> FindWindow Lib "user32" Alias "FindWindowA" _
> (ByVal lpClassName As String, _
> ByVal lpWindowName As String) As Long
>
> Private Declare Function _
> SendMsg Lib "user32" Alias "SendMessageA" _
> (ByVal hwnd As Long, ByVal wMsg As Long, _
> ByVal wParam As Long, ByVal lParam As Long) As Long
>
> Private Const WM_CLOSE = &H10
>
>
> Now in a procedure where you want to close the properties window if it's
> open,
> paste this line of code:
>
> SendMsg FindWindow("OArgDlg", vbNullString), WM_CLOSE, 0, 0
>
>
> Chris
> Microsoft MVP
>
>
> Chris O'C wrote:
>>You can use Windows apis to get the window class name of the properties
>>window, which is OArgDlg. You could probably use more Windows apis to
>>close
>>the properties window, but it's way easier if you avoid using Windows
>>apis.
>>As Linq Adams suggests, make sure you set all the forms' "allow design
>>changes" property to design view only.
>>
>>Chris
>>Microsoft MVP
>>
>>>I'm developing using MS-Access 2000.
>>>
>>>When I open a form in 'Form' view, how can I determine if the properties
>>>box
>>>is open, and then how do I hide the properties box?

>
> --
> Message posted via http://www.accessmonster.com
>


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:58 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Consumer Electronics | Loans | Credit Card Consolidation | Cheap Loan



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114