Ive made an icon library for my program, so that I dont have my program depend on Windows for icons. I want to know how I can have my program use the icons from that dll file instead of from individual icons that I have in the program directory.
Tamir09
0
Light Poster
Recommended Answers
Jump to PostThis code should do it:
Imports System Imports System.Collections.Generic Imports System.ComponentModel Imports System.Data Imports System.Drawing Imports System.Text Imports System.Windows.Forms Imports System.Runtime.InteropServices Namespace ExtractIcon Partial Public Class Form1 Inherits Form ' Constants that we need in the function call Private Const SHGFI_ICON As Integer = &H100 Private Const …
Jump to PostAlso, Im getting errors that OpenFile.Filename is not available. And the picIcons
The code doesn't work "as is". You have to modify it for your purposes like you do with any other sample code. Just drop OpenFileDialog and Picture Box controls on the form.
I didn't test djjaries's code …
All 8 Replies
djjaries
0
Newbie Poster
Tamir09
0
Light Poster
Tamir09
0
Light Poster
Teme64
215
Veteran Poster
Tamir09
0
Light Poster
Teme64
215
Veteran Poster
Tamir09
0
Light Poster
Teme64
215
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.