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

.NET (Core and Framework)

 
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 
GeneralRe: string to long Pin
wyoung7631-Jan-05 23:18
wyoung7631-Jan-05 23:18 
GeneralRemoving an assembly from the GAC Pin
shayw26-Jan-05 8:24
shayw26-Jan-05 8:24 
GeneralRe: Removing an assembly from the GAC Pin
Mike Dimmick27-Jan-05 4:25
Mike Dimmick27-Jan-05 4:25 
GeneralRe: Removing an assembly from the GAC Pin
shayw27-Jan-05 19:25
shayw27-Jan-05 19:25 
GeneralRe: Removing an assembly from the GAC Pin
GuruPandian29-Jan-05 3:34
GuruPandian29-Jan-05 3:34 
GeneralAccessing "Native" DLL from a .NET App Pin
bneacetp26-Jan-05 4:04
bneacetp26-Jan-05 4:04 

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.