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

Stephen Lebans Code

P: n/a
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of the
screen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this and
can help.
Regards
Patrick
Nov 12 '05 #1
Share this Question
Share on Google+
11 Replies


P: n/a
Patrick I think this issue was brought up a couple of months ago. It has
to do with a timing issue if I remember as Access leaves space for a
Menu/Toolbar even if it will actually end up not displaying it.
Have you searched on Google? I'm sure there is a thread there.

Let me know.

--
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Patrick" <in**@businessformat.co.uk> wrote in message
news:d2********************************@4ax.com...
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of the
screen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this and
can help.
Regards
Patrick


Nov 12 '05 #2

P: n/a
Hi Stephen
I have asearched every way I can think of, it very difficult to phrase
a search as most users will not have come across this problem. I was
hoping as you wrote the code that you could come up with a solution, I
will be most gratefull if you can, UI can put a screen shot up on the
web if it will help.
Regards
Patrick

On Tue, 14 Oct 2003 21:56:05 GMT, "Stephen Lebans"
<St***********@mvps.org> wrote:
Patrick I think this issue was brought up a couple of months ago. It has
to do with a timing issue if I remember as Access leaves space for a
Menu/Toolbar even if it will actually end up not displaying it.
Have you searched on Google? I'm sure there is a thread there.

Let me know.


Nov 12 '05 #3

P: n/a
I typed in "Lebans" and "MDI". Google returned:
http://groups.google.com/groups?hl=e...=M3NHa.727%24S
v5.93908%40ursa-nb00s0.nbnet.nb.ca&rnum=7&prev=/groups%3Fas_q%3Dlebans%2
520MDI%26safe%3Dimages%26ie%3DISO-8859-1%26as_scoring%3Dd%26lr%3D%26num%
3D100%26hl%3Den

Does this sound like the same issue you are experiencing?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Patrick" <in**@businessformat.co.uk> wrote in message
news:ql********************************@4ax.com...
Hi Stephen
I have asearched every way I can think of, it very difficult to phrase
a search as most users will not have come across this problem. I was
hoping as you wrote the code that you could come up with a solution, I
will be most gratefull if you can, UI can put a screen shot up on the
web if it will help.
Regards
Patrick

On Tue, 14 Oct 2003 21:56:05 GMT, "Stephen Lebans"
<St***********@mvps.org> wrote:
Patrick I think this issue was brought up a couple of months ago. It hasto do with a timing issue if I remember as Access leaves space for a
Menu/Toolbar even if it will actually end up not displaying it.
Have you searched on Google? I'm sure there is a thread there.

Let me know.


Nov 12 '05 #4

P: n/a
On Wed, 15 Oct 2003 00:47:52 GMT, "Stephen Lebans"
<St***********@mvps.org> wrote:
I typed in "Lebans" and "MDI". Google returned:
http://groups.google.com/groups?hl=e...=M3NHa.727%24S
v5.93908%40ursa-nb00s0.nbnet.nb.ca&rnum=7&prev=/groups%3Fas_q%3Dlebans%2
520MDI%26safe%3Dimages%26ie%3DISO-8859-1%26as_scoring%3Dd%26lr%3D%26num%
3D100%26hl%3Den


A little tip: type the link between tw < >:
<http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=M3NHa.727%24Sv5.93908%40ursa-nb00s0.nbnet.nb.ca&rnum=7&prev=/groups%3Fas_q%3Dlebans%2520MDI%26safe%3Dimages%26i e%3DISO-8859-1%26as_scoring%3Dd%26lr%3D%26num%3D100%26hl%3Den>

Best regards, and thanks for all the hard work!
--
bebelino
Nov 12 '05 #5

P: n/a
They say a picture is worth a thousand words:

I have posted a screen shot of the problem to www.rhub.com/lebans
which should make clear what is happening, I have deliberately kept
things as simple as possible with a form and a button to run the code
as follows

Private Sub Command0_Click()
Dim blRet As Boolean
Dim lngColor As Long
lngColor = 100
If lngColor = -1 Then lngColor = RGB(255, 255, 255)
blRet = RestoreMDIBackGroundImage(lngColor)
End Sub

I looked at the group postings as suggested but they did not seem to
describe the problem I am having as the web page will make clear.

Help
Regards
Patrick

On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of the
screen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this and
can help.
Regards
Patrick


Nov 12 '05 #6

P: n/a
Thanks for the screen shot...very strange!
Patrick I cannot duplicate this here at home. Have you duplicated this
effect on more than 1 machine?
What happens when you cause a screen redraw.. say if you drag your Form
over top of this stray rectangle. WHne you again move the form to
uncover this rectangle does it finally dissappear?
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Patrick" <in**@businessformat.co.uk> wrote in message
news:it********************************@4ax.com...
They say a picture is worth a thousand words:

I have posted a screen shot of the problem to www.rhub.com/lebans
which should make clear what is happening, I have deliberately kept
things as simple as possible with a form and a button to run the code
as follows

Private Sub Command0_Click()
Dim blRet As Boolean
Dim lngColor As Long
lngColor = 100
If lngColor = -1 Then lngColor = RGB(255, 255, 255)
blRet = RestoreMDIBackGroundImage(lngColor)
End Sub

I looked at the group postings as suggested but they did not seem to
describe the problem I am having as the web page will make clear.

Help
Regards
Patrick

On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of thescreen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this andcan help.
Regards
Patrick


Nov 12 '05 #7

P: n/a
Hi Stephen
Yes I can duplicate it every time I install it on any machine.

Moving another window over it done not remove it.

This problem only occurs when using the runtime which I create using
Access97 distribution kit and Sagekey.

Regards
Patrick

On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of the
screen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this and
can help.
Regards
Patrick


Nov 12 '05 #8

P: n/a
Patrick I cannot duplicate it here so I'm not sure how to help you with
this. Have you tried loading a Bitmap instead of specifying a colored
brush, and see if that works?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Patrick" <in**@businessformat.co.uk> wrote in message
news:9g********************************@4ax.com...
Hi Stephen
Yes I can duplicate it every time I install it on any machine.

Moving another window over it done not remove it.

This problem only occurs when using the runtime which I create using
Access97 distribution kit and Sagekey.

Regards
Patrick

On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of thescreen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this andcan help.
Regards
Patrick


Nov 12 '05 #9

P: n/a
Ho Stephen
Yes the bitmap option has the problem, I wonder if it could have
anything to do with the distribution kit or Sagekey?
Patrick

On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of the
screen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this and
can help.
Regards
Patrick


Nov 12 '05 #10

P: n/a
I have finally solved the probem - It seems that a WindowHide command
is required as the first entry in the Autoexec macro - simple as that!
Regards
Patrick
On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of the
screen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this and
can help.
Regards
Patrick


Nov 12 '05 #11

P: n/a
Patrick I'm glad you found a solution!
:-)

--
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Patrick" <in**@businessformat.co.uk> wrote in message
news:do********************************@4ax.com...
I have finally solved the probem - It seems that a WindowHide command
is required as the first entry in the Autoexec macro - simple as that!
Regards
Patrick
On Tue, 14 Oct 2003 14:18:49 +0000 (UTC), Patrick
<in**@businessformat.co.uk> wrote:
I am using Stephans code to change the background color of the Access
container in Access 97, the code works fine when running in Access in
the normal way.

The problem occurs when running the program after creating a RunTime
version when a gray rectangle appears at the top left hand side of thescreen.

This effect is present when using the sub that changes the color and
when using the sub that calls up an image.

I expect that only Stephen can sort this out, I hope he reads this andcan help.
Regards
Patrick


Nov 12 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.