Click here to Skip to main content
15,923,902 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Subclass a Control by UserControl Pin
#realJSOP28-May-09 4:35
professional#realJSOP28-May-09 4:35 
GeneralRe: Subclass a Control by UserControl Pin
Nagy Vilmos28-May-09 4:36
professionalNagy Vilmos28-May-09 4:36 
GeneralRe: Subclass a Control by UserControl Pin
Samir Ibrahim28-May-09 4:39
Samir Ibrahim28-May-09 4:39 
AnswerRe: Subclass a Control by UserControl Pin
Jarno Burger27-May-09 7:18
Jarno Burger27-May-09 7:18 
AnswerRe: Subclass a Control by UserControl Pin
Samir Ibrahim27-May-09 21:38
Samir Ibrahim27-May-09 21:38 
GeneralRe: Subclass a Control by UserControl Pin
Nagy Vilmos28-May-09 3:21
professionalNagy Vilmos28-May-09 3:21 
GeneralRe: Subclass a Control by UserControl Pin
Samir Ibrahim28-May-09 4:03
Samir Ibrahim28-May-09 4:03 
AnswerRe: Subclass a Control by UserControl Pin
DidiKunz28-May-09 23:33
DidiKunz28-May-09 23:33 
I normaly type my variables and properties in .NET like so:

Public Class UserControl1 ' I add Textbox
    Dim m_Version As String
    Property Version() As String
        Get
            'Version = "1.0"    ' Worked Fine
            'Me.Version = "1.0" ' Warning	3	Property 'Version' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
            'Return "1.0"       ' Worked Fine
            Return m_Version    ' Worked Fine
        End Get
        Set(ByVal value) As String
            m_Version = value ' Works Fine
            'Version = value   ' Warning	3	Expression recursively calls the containing property 'Version'.
        End Set
    End Property
End Class


But it probably realy would make sense to make the Property readonly.

Regards: Didi
QuestionCall Crystal report viewer to VB.net Pin
Yose Antony27-May-09 0:45
Yose Antony27-May-09 0:45 
AnswerRe: Call Crystal report viewer to VB.net Pin
Kschuler27-May-09 9:13
Kschuler27-May-09 9:13 
GeneralRe: Call Crystal report viewer to VB.net [modified] Pin
Yose Antony27-May-09 22:49
Yose Antony27-May-09 22:49 
QuestionThe 'Me' keyword Pin
Jay Royall27-May-09 0:06
Jay Royall27-May-09 0:06 
AnswerRe: The 'Me' keyword Pin
Henry Minute27-May-09 0:21
Henry Minute27-May-09 0:21 
GeneralRe: The 'Me' keyword Pin
Jay Royall27-May-09 0:33
Jay Royall27-May-09 0:33 
QuestionStructure within structure - Help needed [modified] Pin
tiagu26-May-09 23:46
tiagu26-May-09 23:46 
AnswerRe: Structure within structure - Help needed Pin
Eddy Vluggen27-May-09 0:52
professionalEddy Vluggen27-May-09 0:52 
GeneralRe: Structure within structure - Help needed Pin
Jon_Boy27-May-09 1:46
Jon_Boy27-May-09 1:46 
GeneralRe: Structure within structure - Help needed Pin
tiagu27-May-09 2:01
tiagu27-May-09 2:01 
GeneralRe: Structure within structure - Help needed Pin
Eddy Vluggen27-May-09 3:03
professionalEddy Vluggen27-May-09 3:03 
GeneralRe: Structure within structure - Help needed Pin
tiagu27-May-09 4:48
tiagu27-May-09 4:48 
QuestionPause, freeze external process launched a ShellExecuteEx (VB6) Pin
Rienzi Garberoglio26-May-09 22:55
Rienzi Garberoglio26-May-09 22:55 
AnswerRe: Pause, freeze external process launched a ShellExecuteEx (VB6) Pin
Dave Kreskowiak27-May-09 1:47
mveDave Kreskowiak27-May-09 1:47 
QuestionBootable Program Pin
Anubhava Dimri26-May-09 20:07
Anubhava Dimri26-May-09 20:07 
AnswerRe: Bootable Program Pin
_Damian S_26-May-09 20:18
professional_Damian S_26-May-09 20:18 
GeneralRe: Bootable Program Pin
Anubhava Dimri26-May-09 20:41
Anubhava Dimri26-May-09 20:41 

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.