PC Review


Reply
Thread Tools Rate Thread

Center text in a MSgBox

 
 
accesshacker
Guest
Posts: n/a
 
      19th Jan 2010
Was wondering how I could center the text in a MsgBox that I am putting in my
code.

Thanks
 
Reply With Quote
 
 
 
 
Daniel Pineault
Guest
Posts: n/a
 
      20th Jan 2010
As far as I know, there is no way to do this using a MsgBox. However, all
you have to do is create your own custom Message box form and then you can
control anything and everything you would like to.
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.



"accesshacker" wrote:

> Was wondering how I could center the text in a MsgBox that I am putting in my
> code.
>
> Thanks

 
Reply With Quote
 
accesshacker
Guest
Posts: n/a
 
      20th Jan 2010
Had a feeling that was going to be the answer. I am sure that is also easier
to do in 2007 than in previous versions. Unfortunately, client is on 2003 and
am using their program to develop.

Thank you for the prompt reply!!

"Daniel Pineault" wrote:

> As far as I know, there is no way to do this using a MsgBox. However, all
> you have to do is create your own custom Message box form and then you can
> control anything and everything you would like to.
> --
> Hope this helps,
>
> Daniel Pineault
> http://www.cardaconsultants.com/
> For Access Tips and Examples: http://www.devhut.net
> Please rate this post using the vote buttons if it was helpful.
>
>
>
> "accesshacker" wrote:
>
> > Was wondering how I could center the text in a MsgBox that I am putting in my
> > code.
> >
> > Thanks

 
Reply With Quote
 
Douglas J. Steele
Guest
Posts: n/a
 
      20th Jan 2010
It's the same MsgBox in Access 2007 as in previous versions: it actually is
a Windows API.

Check the free Custom MsgBox Creator Arvin Meyer has at
http://www.datastrat.com/DataStrat2.html

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"accesshacker" <(E-Mail Removed)> wrote in message
news:09466355-1703-42A5-B552-(E-Mail Removed)...
> Had a feeling that was going to be the answer. I am sure that is also
> easier
> to do in 2007 than in previous versions. Unfortunately, client is on 2003
> and
> am using their program to develop.
>
> Thank you for the prompt reply!!
>
> "Daniel Pineault" wrote:
>
>> As far as I know, there is no way to do this using a MsgBox. However,
>> all
>> you have to do is create your own custom Message box form and then you
>> can
>> control anything and everything you would like to.
>> --
>> Hope this helps,
>>
>> Daniel Pineault
>> http://www.cardaconsultants.com/
>> For Access Tips and Examples: http://www.devhut.net
>> Please rate this post using the vote buttons if it was helpful.
>>
>>
>>
>> "accesshacker" wrote:
>>
>> > Was wondering how I could center the text in a MsgBox that I am putting
>> > in my
>> > code.
>> >
>> > Thanks



 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      20th Jan 2010
On Tue, 19 Jan 2010 16:42:01 -0800, accesshacker
<(E-Mail Removed)> wrote:

>Had a feeling that was going to be the answer. I am sure that is also easier
>to do in 2007 than in previous versions. Unfortunately, client is on 2003 and
>am using their program to develop.


It's not a bit different. Just don't call it a message box, but rather call it
a Popup Form, and it will fall into place.

Just create a small unbound form with a textbox (centered) and open it with
DoCmd.OpenForm rather than MsgBox. You may want to put an "ok" button on the
form to close it.
--

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to center MsgBox... Nigel V Thomas Microsoft VB .NET 2 5th Oct 2009 02:21 PM
Msgbox not center of screen anymore RB Smissaert Microsoft Excel Programming 1 22nd Jan 2006 03:42 PM
How to center text in a msgbox Dave_2k5 Microsoft Excel Programming 2 26th Jul 2005 02:31 PM
How to center text in a msgbox Dave_2k5 Microsoft Excel Misc 2 26th Jul 2005 01:20 PM
Center text in a msgbox Jessica Microsoft Access VBA Modules 1 28th Jan 2004 06:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:12 PM.