Click here to Skip to main content
16,010,523 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Shared/Static Property Not Working Pin
Guffa7-Nov-07 0:13
Guffa7-Nov-07 0:13 
GeneralRe: Shared/Static Property Not Working Pin
Brendan Vogt7-Nov-07 1:08
Brendan Vogt7-Nov-07 1:08 
AnswerRe: Shared/Static Property Not Working Pin
nlarson117-Nov-07 4:52
nlarson117-Nov-07 4:52 
QuestionClose Form Pin
phowarso6-Nov-07 23:59
phowarso6-Nov-07 23:59 
AnswerRe: Close Form Pin
Christian Graus7-Nov-07 0:26
protectorChristian Graus7-Nov-07 0:26 
AnswerRe: Close Form Pin
Steven J Jowett7-Nov-07 2:28
Steven J Jowett7-Nov-07 2:28 
GeneralRe: Close Form Pin
nlarson117-Nov-07 4:49
nlarson117-Nov-07 4:49 
QuestionShared/Static Property Not Working Pin
Brendan Vogt6-Nov-07 23:56
Brendan Vogt6-Nov-07 23:56 
Hi,

I am sort of new to VB.NET. Using .NET 2.0. In C# I would have static properties in my Globals class. No I am trying to implement the same feature in VB.NET, but it is not working. Here is my declaration in Globals.vb:

Private Const COMPANY_LONG_NAME As String = "My Company"

Public Shared ReadOnly Property CompanyLongName() As String
Get
Return COMPANY_LONG_NAME
End Get
End Property

But then I try to write this name in my .aspx page, but when I try Globals. then CompanyLongName does not show in the list to select from.

Please can someone explain why.

Regards
AnswerRe: Shared/Static Property Not Working Pin
Guffa7-Nov-07 0:12
Guffa7-Nov-07 0:12 
QuestionClose Form Pin
phowarso6-Nov-07 23:55
phowarso6-Nov-07 23:55 
AnswerRe: Close Form Pin
Christian Graus7-Nov-07 0:27
protectorChristian Graus7-Nov-07 0:27 
AnswerRe: Close Form Pin
nlarson117-Nov-07 4:47
nlarson117-Nov-07 4:47 
QuestionNetwork [modified] Pin
Bismark Appah6-Nov-07 23:27
Bismark Appah6-Nov-07 23:27 
AnswerRe: Network Pin
Christian Graus7-Nov-07 0:28
protectorChristian Graus7-Nov-07 0:28 
AnswerRe: Network Pin
Steven J Jowett7-Nov-07 3:50
Steven J Jowett7-Nov-07 3:50 
Questioncheck parent when child is checked in treeview Pin
eyes20076-Nov-07 23:12
eyes20076-Nov-07 23:12 
AnswerRe: check parent when child is checked in treeview Pin
Tom Deketelaere7-Nov-07 1:27
professionalTom Deketelaere7-Nov-07 1:27 
GeneralRe: check parent when child is checked in treeview Pin
eyes20077-Nov-07 2:41
eyes20077-Nov-07 2:41 
GeneralRe: check parent when child is checked in treeview Pin
Tom Deketelaere7-Nov-07 20:59
professionalTom Deketelaere7-Nov-07 20:59 
Questiontext box issue Pin
Tauseef A6-Nov-07 22:59
Tauseef A6-Nov-07 22:59 
AnswerRe: text box issue Pin
Colin Angus Mackay6-Nov-07 23:07
Colin Angus Mackay6-Nov-07 23:07 
QuestionRe: text box issue Pin
Tauseef A6-Nov-07 23:21
Tauseef A6-Nov-07 23:21 
AnswerRe: text box issue Pin
Colin Angus Mackay7-Nov-07 0:08
Colin Angus Mackay7-Nov-07 0:08 
QuestionRe: text box issue Pin
Tauseef A7-Nov-07 1:09
Tauseef A7-Nov-07 1:09 
AnswerRe: text box issue Pin
Luc Pattyn7-Nov-07 1:55
sitebuilderLuc Pattyn7-Nov-07 1:55 

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.