Click here to Skip to main content
15,949,686 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Data not get saved if using Shortcut key instead of clikng button Pin
Christian Graus13-Aug-08 23:35
protectorChristian Graus13-Aug-08 23:35 
GeneralRe: Data not get saved if using Shortcut key instead of clikng button Pin
honeyashu14-Aug-08 0:25
honeyashu14-Aug-08 0:25 
QuestionError while invoking the delegate Pin
Nilish13-Aug-08 17:50
Nilish13-Aug-08 17:50 
AnswerRe: Error while invoking the delegate Pin
Christian Graus13-Aug-08 18:10
protectorChristian Graus13-Aug-08 18:10 
GeneralRe: Error while invoking the delegate Pin
Mark Churchill13-Aug-08 23:42
Mark Churchill13-Aug-08 23:42 
GeneralRe: Error while invoking the delegate Pin
Gideon Engelberth14-Aug-08 2:44
Gideon Engelberth14-Aug-08 2:44 
AnswerRe: Error while invoking the delegate Pin
Gideon Engelberth14-Aug-08 2:48
Gideon Engelberth14-Aug-08 2:48 
QuestionClass theory, what am I missing Pin
Justin Porteous13-Aug-08 10:22
Justin Porteous13-Aug-08 10:22 
Good day fellow codeproject.com'ers.

I am missing a vital part of theory which I've identified when I tried the below. (I believe it's theory...)

Please can one of you assist me by filling the theory gap I have. I've been through MSDN and Google, but to no avail...

Question:
Why can one not call a class from within another class? I don't mean within a function of a class, but at the top, where one declares variables pertaining to that class.

E.g. Below:
Friend Class Class1
    Dim _message As String

    Public Property Message()
        Get
            Return _message
        End Get
        Set(ByVal value)
            _message = value
        End Set
    End Property
End Class


And here is where it fails, intellisense doesn't see the properties or methods of the variable (first class), I've labled the variable as THISDOESNTWORK.

Friend Class Class2
    Dim _myVariable As String
    Dim THISDOESNTWORK as New Class1

    Public Property myVariable()
        Get
            Return _message
        End Get
        Set(ByVal value)
            _message = value
        End Set
    End Property
End Class


It works when I place the code
Dim THISDOESNTWORK as New Class1<br />
within a function, so either there is a "secret way to do this", or I'm missing a bit of .Net/OOB Theory.

Thanks in advance... Smile | :)
AnswerRe: Class theory, what am I missing Pin
nlarson1113-Aug-08 10:42
nlarson1113-Aug-08 10:42 
GeneralRe: Class theory, what am I missing Pin
Justin Porteous13-Aug-08 20:41
Justin Porteous13-Aug-08 20:41 
GeneralRe: Class theory, what am I missing Pin
Thomas Stockwell14-Aug-08 2:22
professionalThomas Stockwell14-Aug-08 2:22 
QuestionIs there any way to access information (MS Access database) in the Web-Host? Pin
ATC13-Aug-08 8:45
ATC13-Aug-08 8:45 
AnswerRe: Is there any way to access information (MS Access database) in the Web-Host? Pin
nlarson1113-Aug-08 10:36
nlarson1113-Aug-08 10:36 
GeneralRe: Is there any way to access information (MS Access database) in the Web-Host? Pin
ATC13-Aug-08 15:48
ATC13-Aug-08 15:48 
QuestionHow do I Pin
Matthew Leggett13-Aug-08 5:43
Matthew Leggett13-Aug-08 5:43 
QuestionRe: How do I Pin
Steven J Jowett13-Aug-08 6:03
Steven J Jowett13-Aug-08 6:03 
AnswerRe: How do I Pin
Matthew Leggett13-Aug-08 13:33
Matthew Leggett13-Aug-08 13:33 
GeneralRe: How do I Pin
ChandraRam13-Aug-08 20:51
ChandraRam13-Aug-08 20:51 
AnswerRe: How do I Pin
Dalek Dave14-Aug-08 5:57
professionalDalek Dave14-Aug-08 5:57 
QuestionRe: How do I Pin
Deeprj7717-Aug-08 23:56
Deeprj7717-Aug-08 23:56 
QuestionUserControl with DataGridView used e.g. in a form: How to add columns in the designer? Pin
mp000113-Aug-08 1:55
mp000113-Aug-08 1:55 
QuestionA simple Function Call? Pin
Juliaan Evenwel13-Aug-08 1:07
Juliaan Evenwel13-Aug-08 1:07 
AnswerRe: A simple Function Call? Pin
Christian Graus13-Aug-08 1:31
protectorChristian Graus13-Aug-08 1:31 
GeneralRe: A simple Function Call? Pin
Juliaan Evenwel13-Aug-08 1:32
Juliaan Evenwel13-Aug-08 1:32 
GeneralRe: A simple Function Call? Pin
Christian Graus13-Aug-08 2:39
protectorChristian Graus13-Aug-08 2:39 

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.