Click here to Skip to main content
15,845,742 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Data not get saved if using Shortcut key instead of clikng button Pin
Christian Graus14-Aug-08 0:35
protectorChristian Graus14-Aug-08 0:35 
GeneralRe: Data not get saved if using Shortcut key instead of clikng button Pin
honeyashu14-Aug-08 1:25
honeyashu14-Aug-08 1:25 
QuestionError while invoking the delegate Pin
Nilish13-Aug-08 18:50
Nilish13-Aug-08 18:50 
AnswerRe: Error while invoking the delegate Pin
Christian Graus13-Aug-08 19:10
protectorChristian Graus13-Aug-08 19:10 
GeneralRe: Error while invoking the delegate Pin
Mark Churchill14-Aug-08 0:42
Mark Churchill14-Aug-08 0:42 
GeneralRe: Error while invoking the delegate Pin
Gideon Engelberth14-Aug-08 3:44
Gideon Engelberth14-Aug-08 3:44 
AnswerRe: Error while invoking the delegate Pin
Gideon Engelberth14-Aug-08 3:48
Gideon Engelberth14-Aug-08 3:48 
QuestionClass theory, what am I missing Pin
Justin Porteous13-Aug-08 11:22
Justin Porteous13-Aug-08 11: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 11:42
nlarson1113-Aug-08 11:42 
GeneralRe: Class theory, what am I missing Pin
Justin Porteous13-Aug-08 21:41
Justin Porteous13-Aug-08 21:41 
GeneralRe: Class theory, what am I missing Pin
Thomas Stockwell14-Aug-08 3:22
professionalThomas Stockwell14-Aug-08 3:22 
QuestionIs there any way to access information (MS Access database) in the Web-Host? Pin
ATC13-Aug-08 9:45
ATC13-Aug-08 9:45 
AnswerRe: Is there any way to access information (MS Access database) in the Web-Host? Pin
nlarson1113-Aug-08 11:36
nlarson1113-Aug-08 11:36 
GeneralRe: Is there any way to access information (MS Access database) in the Web-Host? Pin
ATC13-Aug-08 16:48
ATC13-Aug-08 16:48 
QuestionHow do I Pin
Matthew Leggett13-Aug-08 6:43
Matthew Leggett13-Aug-08 6:43 
QuestionRe: How do I Pin
Steven J Jowett13-Aug-08 7:03
Steven J Jowett13-Aug-08 7:03 
AnswerRe: How do I Pin
Matthew Leggett13-Aug-08 14:33
Matthew Leggett13-Aug-08 14:33 
GeneralRe: How do I Pin
ChandraRam13-Aug-08 21:51
ChandraRam13-Aug-08 21:51 
AnswerRe: How do I Pin
Dalek Dave14-Aug-08 6:57
professionalDalek Dave14-Aug-08 6:57 
QuestionRe: How do I Pin
Deeprj7718-Aug-08 0:56
Deeprj7718-Aug-08 0:56 
QuestionUserControl with DataGridView used e.g. in a form: How to add columns in the designer? Pin
mp000113-Aug-08 2:55
mp000113-Aug-08 2:55 
QuestionA simple Function Call? Pin
Juliaan Evenwel13-Aug-08 2:07
Juliaan Evenwel13-Aug-08 2:07 
AnswerRe: A simple Function Call? Pin
Christian Graus13-Aug-08 2:31
protectorChristian Graus13-Aug-08 2:31 
GeneralRe: A simple Function Call? Pin
Juliaan Evenwel13-Aug-08 2:32
Juliaan Evenwel13-Aug-08 2:32 
GeneralRe: A simple Function Call? Pin
Christian Graus13-Aug-08 3:39
protectorChristian Graus13-Aug-08 3: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.