Click here to Skip to main content
12,452,251 members (55,765 online)

Visual Basic

 
Questionpng lossless resize Pin
JellyCoe4-Feb-13 5:39
memberJellyCoe4-Feb-13 5:39 
AnswerRe: png lossless resize Pin
Rene Pilon4-Feb-13 6:54
memberRene Pilon4-Feb-13 6:54 
QuestionCustom Tab Control that I found on here Pin
NSoft Studios3-Feb-13 13:10
memberNSoft Studios3-Feb-13 13:10 
AnswerRe: Custom Tab Control that I found on here Pin
Dave Kreskowiak3-Feb-13 13:19
mvpDave Kreskowiak3-Feb-13 13:19 
GeneralRe: Custom Tab Control that I found on here Pin
NSoft Studios3-Feb-13 13:44
memberNSoft Studios3-Feb-13 13:44 
GeneralRe: Custom Tab Control that I found on here Pin
Richard MacCutchan3-Feb-13 22:40
mvpRichard MacCutchan3-Feb-13 22:40 
QuestionRetrieving Custom Attributes Pin
DisIsHoody1-Feb-13 21:34
memberDisIsHoody1-Feb-13 21:34 
AnswerRe: Retrieving Custom Attributes Pin
Eddy Vluggen2-Feb-13 2:11
mvpEddy Vluggen2-Feb-13 2:11 
You'd need to fill a FieldInfo from the field whose attributes you'd wish to query. I've included a sample to reference;
Module Module1
 
    <AttributeUsage(AttributeTargets.Field, AllowMultiple:=True, Inherited:=False)>
    Public Class OutputDescriptionAttribute
        Inherits Attribute
 
        Private _oldDescription As String
        Private _newDescription As String
 
        Public Sub New(ByVal oldDescription As String, ByVal newDescription As String)
            Me._oldDescription = oldDescription
            Me._newDescription = newDescription
        End Sub
 
        Public ReadOnly Property CurrentDescription As String
            Get
                Return _newDescription
            End Get
        End Property
 
    End Class
 
    Public Enum ReadingModeType
        <OutputDescription("TC", "TimeCorrected")> TimeCorrected
        <OutputDescription("QM", "QuickMode")> QuickMode
    End Enum
 
    Sub Main()
        Dim TCFieldInfo As Reflection.FieldInfo = GetType(ReadingModeType).GetField("TimeCorrected")
        Dim customAttributes As Object() = TCFieldInfo.GetCustomAttributes(inherit:=True)
        For Each Attrib As Attribute In customAttributes
            If Attrib.GetType() Is GetType(OutputDescriptionAttribute) Then
                Dim outputDescriptionAttrib As OutputDescriptionAttribute =
                    CType(Attrib, OutputDescriptionAttribute)
                Console.WriteLine(outputDescriptionAttrib.CurrentDescription)
            End If
        Next
        Console.ReadLine()
    End Sub
 
End Module
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

QuestionSearch criteria - classic asp not working Pin
miss78631-Jan-13 4:01
membermiss78631-Jan-13 4:01 
AnswerRe: Search criteria - classic asp not working Pin
Eddy Vluggen31-Jan-13 10:18
mvpEddy Vluggen31-Jan-13 10:18 
GeneralRe: Search criteria - classic asp not working Pin
miss7866-Feb-13 1:03
membermiss7866-Feb-13 1:03 
GeneralRe: Search criteria - classic asp not working Pin
Eddy Vluggen6-Feb-13 7:11
mvpEddy Vluggen6-Feb-13 7:11 
GeneralRe: Search criteria - classic asp not working Pin
miss7866-Feb-13 23:26
membermiss7866-Feb-13 23:26 
GeneralRe: Search criteria - classic asp not working Pin
Eddy Vluggen7-Feb-13 8:13
mvpEddy Vluggen7-Feb-13 8:13 
AnswerRe: Search criteria - classic asp not working Pin
Eddy Vluggen8-Feb-13 11:04
mvpEddy Vluggen8-Feb-13 11:04 
QuestionWebBrowser Dock covers up statusstrip Pin
NSoft Studios30-Jan-13 15:46
memberNSoft Studios30-Jan-13 15:46 
AnswerRe: WebBrowser Dock covers up statusstrip Pin
Richard MacCutchan30-Jan-13 22:13
mvpRichard MacCutchan30-Jan-13 22:13 
AnswerRe: WebBrowser Dock covers up statusstrip Pin
Eddy Vluggen30-Jan-13 22:36
mvpEddy Vluggen30-Jan-13 22:36 
GeneralRe: WebBrowser Dock covers up statusstrip Pin
Dave Kreskowiak31-Jan-13 3:35
mvpDave Kreskowiak31-Jan-13 3:35 
SuggestionRe: WebBrowser Dock covers up statusstrip Pin
Eddy Vluggen31-Jan-13 3:38
mvpEddy Vluggen31-Jan-13 3:38 
GeneralRe: WebBrowser Dock covers up statusstrip Pin
Dave Kreskowiak31-Jan-13 6:52
mvpDave Kreskowiak31-Jan-13 6:52 
GeneralRe: WebBrowser Dock covers up statusstrip Pin
Eddy Vluggen31-Jan-13 10:12
mvpEddy Vluggen31-Jan-13 10:12 
GeneralRe: WebBrowser Dock covers up statusstrip Pin
NSoft Studios3-Feb-13 12:58
memberNSoft Studios3-Feb-13 12:58 
AnswerRe: WebBrowser Dock covers up statusstrip Pin
rohitvermasrt31-Jan-13 18:28
memberrohitvermasrt31-Jan-13 18:28 
QuestionQuery dataTable with .Compute Pin
mebjen30-Jan-13 9:05
membermebjen30-Jan-13 9:05 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 26 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid