Click here to Skip to main content
15,887,477 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Installer woes Pin
Arun Bhalla2-Feb-05 13:37
Arun Bhalla2-Feb-05 13:37 
Generalmy.msn.com Style Web Page Pin
Khurram Raza31-Jan-05 18:50
Khurram Raza31-Jan-05 18:50 
QuestionHow do I execute a class from a class? Pin
DSLR30-Jan-05 12:52
DSLR30-Jan-05 12:52 
AnswerRe: How do I execute a class from a class? Pin
Charlie Williams31-Jan-05 7:17
Charlie Williams31-Jan-05 7:17 
GeneralRe: How do I execute a class from a class? Pin
DSLR31-Jan-05 7:58
DSLR31-Jan-05 7:58 
GeneralRe: How do I execute a class from a class? Pin
Charlie Williams31-Jan-05 8:36
Charlie Williams31-Jan-05 8:36 
GeneralRe: How do I execute a class from a class? Pin
DSLR31-Jan-05 10:22
DSLR31-Jan-05 10:22 
GeneralRe: How do I execute a class from a class? Pin
Charlie Williams31-Jan-05 11:38
Charlie Williams31-Jan-05 11:38 
I haven't made an effort to understand the 200 lines of code you posted, nor do I plan to.

What is apparent, though, is that there are not 6 Controls contained in the Controls collection of Me.Host2, so when you say Me.Host2.Controls(5).Enabled = False a NullReferenceException is thrown. You cannot access the properties of a null variable.

You need to fire up the debugger and step through your code, line by line, until you see the problem. Are you using the correct index into the ControlCollection? Are you mistakenly creating a new local variable instead of accessing one at the class level?

The problem is there for the finding.

Charlie

if(!curlies){ return; }
GeneralRe: How do I execute a class from a class? Pin
DSLR31-Jan-05 11:47
DSLR31-Jan-05 11:47 
GeneralRe: How do I execute a class from a class? Pin
Charlie Williams31-Jan-05 12:00
Charlie Williams31-Jan-05 12:00 
GeneralRe: How do I execute a class from a class? Pin
DSLR31-Jan-05 12:09
DSLR31-Jan-05 12:09 
GeneralRe: How do I execute a class from a class? Pin
Charlie Williams31-Jan-05 12:48
Charlie Williams31-Jan-05 12:48 
AnswerRe: How do I execute a class from a class? Pin
Charlie Williams31-Jan-05 13:53
Charlie Williams31-Jan-05 13:53 
GeneralRe: How do I execute a class from a class? Pin
DSLR31-Jan-05 23:58
DSLR31-Jan-05 23:58 
GeneralRe: How do I execute a class from a class? Pin
Charlie Williams1-Feb-05 4:47
Charlie Williams1-Feb-05 4:47 
GeneralRe: How do I execute a class from a class? Pin
DSLR1-Feb-05 8:27
DSLR1-Feb-05 8:27 
QuestionInstall or at least read an HxS ? Pin
Denevers30-Jan-05 3:39
Denevers30-Jan-05 3:39 
GeneralCrystal Reports and .Net Remoting Pin
a_dipendra28-Jan-05 4:40
a_dipendra28-Jan-05 4:40 
GeneralInstalling a publisher policy into the GAC Pin
Pain_Elemental28-Jan-05 4:29
Pain_Elemental28-Jan-05 4:29 
GeneralHash Storage Problem Pin
SusmithaC28-Jan-05 1:04
SusmithaC28-Jan-05 1:04 
GeneralRe: Hash Storage Problem Pin
Philip Fitzsimons28-Jan-05 4:40
Philip Fitzsimons28-Jan-05 4:40 
General.wav files Pin
ziggy8227-Jan-05 5:11
ziggy8227-Jan-05 5:11 
GeneralRe: .wav files Pin
Corinna John31-Jan-05 21:04
Corinna John31-Jan-05 21:04 
GeneralTesting Tool for .Net Pin
Vishwanathkk27-Jan-05 2:34
Vishwanathkk27-Jan-05 2:34 
Generalstring to long Pin
zagzagzag27-Jan-05 0:46
zagzagzag27-Jan-05 0:46 

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.