Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox Question Icon File 1

Status
Not open for further replies.

RileyCat

Programmer
Apr 5, 2004
124
US
Does anybody know the name of or where I can get my hands on the file that contains the "Question" icon image for the MessageBox?

Stay Cool Ya'll! [smile2]

-- Kristin
 
It is in SHELL32.dll, which you'll typically find in Windows\System32
 
The old win95 can be found at...

C:\Program Files\Microsoft Visual Studio\Common\Graphics\Icons\Computer

\Misc


if that is where you installed VB. However, strongm has pointed you to the current location of the current OS's question icon resource of which you are referring to. You can, if you wish, extract the icon with...


or




Good Luck
 
If you just want to use/draw that icon in your application than a couple of API functions may help you.
___
[tt]
Private Declare Function LoadIcon Lib "user32" Alias "LoadIconA" (ByVal hInstance As Long, ByVal lpIconName As Any) As Long
Private Declare Function DrawIcon Lib "user32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long
Const IDI_QUESTION = 32514&
Private Sub Form_Load()
AutoRedraw = True
DrawIcon hdc, 0, 0, LoadIcon(0, IDI_QUESTION)
End Sub[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top