PC Review


Reply
Thread Tools Rate Thread

How can alert icons be displayed?

 
 
=?Utf-8?B?QmlsbA==?=
Guest
Posts: n/a
 
      4th Mar 2007
I have a UserForm to which I want to add the ability to display the same
alert icons as are displayed with the MsgBox function (Critical, Question,
Information, Exclamation). (The UserForm is working with the exception of
this capability. This implementation approach is being done for consistency,
since both MsgBox and UserForm are used to communicate with the user.)

I assume these four icons are bitmaps, so in the event handler for
userform_activate, I plan to insert this line of code:

Image1.Picture = LoadPicture("C:\complete_path_and_file_name.bmp")

However, I cannot find the bitmap files! I can find constants in the VBA
Object Browser that seem to correspond to the alerts, but I cannot find the
actual bitmap files for the alerts.

Help with finding the location of these bitmap files, or an alternative way
of coding this capability, would be appreciated. Thanks!

Bill
 
Reply With Quote
 
 
 
 
RB Smissaert
Guest
Posts: n/a
 
      4th Mar 2007
Have a look at this:
http://preview.tinyurl.com/m3ad2

It is VB6 code, but it might help you or maybe you can just use the
ActiveX dll in your code.

RBS


"Bill" <(E-Mail Removed)> wrote in message
newsEBE6565-C473-485F-8829-(E-Mail Removed)...
>I have a UserForm to which I want to add the ability to display the same
> alert icons as are displayed with the MsgBox function (Critical, Question,
> Information, Exclamation). (The UserForm is working with the exception of
> this capability. This implementation approach is being done for
> consistency,
> since both MsgBox and UserForm are used to communicate with the user.)
>
> I assume these four icons are bitmaps, so in the event handler for
> userform_activate, I plan to insert this line of code:
>
> Image1.Picture = LoadPicture("C:\complete_path_and_file_name.bmp")
>
> However, I cannot find the bitmap files! I can find constants in the VBA
> Object Browser that seem to correspond to the alerts, but I cannot find
> the
> actual bitmap files for the alerts.
>
> Help with finding the location of these bitmap files, or an alternative
> way
> of coding this capability, would be appreciated. Thanks!
>
> Bill


 
Reply With Quote
 
git
Guest
Posts: n/a
 
      4th Mar 2007
I would suggest that you just get the message box to display, hit
printscrn and then use Paint to crop the screen shot down to get just the
image you want.

I would also suggest that you don't go loading images from files, it means
the files have to 'hang around'. Put the image control in the user form
with the images you want and then set them to visible=false, then just
make the appropriate one visible in the event handler. This will make the
form more reliable and portable

Cheers

AJ

--
www.nerds-central.com
nerds-central.blogspot.com

 
Reply With Quote
 
=?Utf-8?B?QmlsbA==?=
Guest
Posts: n/a
 
      12th Mar 2007
My apologies for not responding sooner .... have been chasing Internet
security software problems, which receive considerably higher priority when
the virus scan engine gets corrupted!!

Yes, I understand your point from "testing" with one of those .gif files
that is included with Windows. It loaded into the form and stayed there just
fine. I was hoping that finding the actual icons would be a simple matter,
but as we all know ....

For some unkown (at the moment) reason PrintScreen (PrtSc key) does not work
on my laptop so, I will do a screen capture through another program and
proceed from there.

Your suggestion has been a helpful one. Thanks!

Regards,
Bill

"git" wrote:

> I would suggest that you just get the message box to display, hit
> printscrn and then use Paint to crop the screen shot down to get just the
> image you want.
>
> I would also suggest that you don't go loading images from files, it means
> the files have to 'hang around'. Put the image control in the user form
> with the images you want and then set them to visible=false, then just
> make the appropriate one visible in the event handler. This will make the
> form more reliable and portable
>
> Cheers
>
> AJ
>
> --
> www.nerds-central.com
> nerds-central.blogspot.com
>
>

 
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
Desktop ALERT Not Being Displayed FARAZ QURESHI Microsoft Outlook Discussion 1 24th Dec 2008 10:39 AM
How to know an alert should have displayed ... =?Utf-8?B?amVyb21lQg==?= Microsoft Excel Programming 1 19th Sep 2006 08:49 PM
Desktop alert displayed but message can't be opened from alert =?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?= Microsoft Outlook Discussion 1 7th Aug 2006 08:16 PM
Virus Alert! / Security Alert! taskbar icons - spyware phlie Security, Spyware and Viruses 13 31st May 2006 02:24 AM
random icons displayed - not default icons =?Utf-8?B?V2ViRGFuY2Vy?= Microsoft Windows 2000 1 14th Dec 2003 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 PM.