Click here to Skip to main content
15,891,431 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionIS THIS A PATCH IN DATETIME CONTROL? Pin
manivannan.p13-Dec-04 1:29
manivannan.p13-Dec-04 1:29 
GeneralListView BackgroundImage property Pin
flip_trickle12-Dec-04 12:10
flip_trickle12-Dec-04 12:10 
QuestionHow to invoke a MouseEvent from a KeyBoard Event handler? Pin
manivannan.p12-Dec-04 6:27
manivannan.p12-Dec-04 6:27 
Questionhow do i create webmenu using .net Pin
karthikaprabhakar12-Dec-04 4:39
karthikaprabhakar12-Dec-04 4:39 
AnswerRe: how do i create webmenu using .net Pin
Steve Maier14-Dec-04 4:17
professionalSteve Maier14-Dec-04 4:17 
GeneralChanging datasource of a datagrid in runtime with allowpaging property = true Pin
Eng Nashwa10-Dec-04 22:30
Eng Nashwa10-Dec-04 22:30 
GeneralRetrieving Icons Embedded in Assemblies Pin
bneacetp10-Dec-04 9:22
bneacetp10-Dec-04 9:22 
GeneralRe: Retrieving Icons Embedded in Assemblies Pin
The Man from U.N.C.L.E.14-Dec-04 4:57
The Man from U.N.C.L.E.14-Dec-04 4:57 
All embedded icons will turn up as resources in the assembly with the .ico extension.
The only tricky bit is that VS.Net adds the DefaultNamespace to the front of the icon file name when it compiles the assembly so you have to chop that off.

Here is an example showing how you would do this using the current assembly, and display the list in a messagebox.

To run on another assembly simply use Assembly.LoadFrom() to get a pointer to it.


Dim TestAssembly As [Assembly] = System.Reflection.Assembly.GetExecutingAssembly
Dim namesList As String() = TestAssembly.GetManifestResourceNames

'   Fudge to get the default Namespace for the assembly.
Dim currentNameSpace As String = [String].Empty
currentNameSpace = TestAssembly.GetTypes(0).Namespace
If currentNameSpace.Length > 0 Then
    currentNameSpace &= "."
End If


Dim list As String = [String].Empty

Dim names As IEnumerator = namesList.GetEnumerator
While names.MoveNext
    If names.Current.ToString().ToLower().EndsWith(".ico") Then
        list &= names.Current.ToString().Replace(currentNameSpace, "") & System.Environment.NewLine
    End If
End While

MessageBox.Show(list)


If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
GeneralRe: Retrieving Icons Embedded in Assemblies Pin
bneacetp17-Dec-04 9:00
bneacetp17-Dec-04 9:00 
GeneralRemoting problem in VB.net Pin
Chris Quick7-Dec-04 12:15
Chris Quick7-Dec-04 12:15 
GeneralC#.net using WMP Pin
The Animator7-Dec-04 3:17
The Animator7-Dec-04 3:17 
GeneralPackaging Issues Pin
Member 15020566-Dec-04 13:59
Member 15020566-Dec-04 13:59 
GeneralRe: Packaging Issues Pin
Colin Angus Mackay6-Dec-04 14:05
Colin Angus Mackay6-Dec-04 14:05 
GeneralRe: Packaging Issues Pin
Member 15020566-Dec-04 16:23
Member 15020566-Dec-04 16:23 
GeneralRe: Packaging Issues Pin
Colin Angus Mackay6-Dec-04 22:00
Colin Angus Mackay6-Dec-04 22:00 
GeneralRe: Packaging Issues Pin
Member 15020567-Dec-04 1:01
Member 15020567-Dec-04 1:01 
GeneralSound frequency calculation Pin
Mattias Åslund5-Dec-04 2:45
Mattias Åslund5-Dec-04 2:45 
GeneralRe: Sound frequency calculation Pin
tom_dx5-Dec-04 15:11
tom_dx5-Dec-04 15:11 
GeneralRe: Sound frequency calculation Pin
Mattias Åslund10-Dec-04 7:03
Mattias Åslund10-Dec-04 7:03 
GeneralRe: Sound frequency calculation Pin
Mike Dimmick10-Dec-04 12:47
Mike Dimmick10-Dec-04 12:47 
Generalnet send HELP!! Pin
Kevinh77773-Dec-04 15:58
Kevinh77773-Dec-04 15:58 
General.net problem Pin
tom_dx3-Dec-04 14:03
tom_dx3-Dec-04 14:03 
GeneralRe: .net problem Pin
Florent Geffroy9-Dec-04 0:04
Florent Geffroy9-Dec-04 0:04 
GeneralHTTPHandler to create & write files Pin
shefali_sinha3-Dec-04 11:37
shefali_sinha3-Dec-04 11:37 
GeneralWebService.NET Pin
Anonymous3-Dec-04 6:27
Anonymous3-Dec-04 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.