Click here to Skip to main content
15,512,747 members
Home / Discussions / C#
   

C#

 
GeneralNull error when adding custom control Pin
KingTermite8-Jan-04 9:39
KingTermite8-Jan-04 9:39 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 9:52
mveChristian Graus8-Jan-04 9:52 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 10:00
KingTermite8-Jan-04 10:00 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 10:06
mveChristian Graus8-Jan-04 10:06 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 10:18
KingTermite8-Jan-04 10:18 
GeneralRe: Null error when adding custom control Pin
Kentamanos8-Jan-04 10:19
Kentamanos8-Jan-04 10:19 
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 10:29
mveChristian Graus8-Jan-04 10:29 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 10:50
KingTermite8-Jan-04 10:50 
Christian Graus wrote:
Any aspx page is has a .aspx file and a .cs file. The cs file is your code behind, the aspx file is your page, containing all your HTML, including the asp: tags that denote controls. When you're in the form designer, at the bottom of the page is a 'html' tab, if you click on it, you can hand edit the files. This is definately the way to go, and you should set up your preferences to always go here instead of the designer, for the reasons I mentioned.

I'll look into what you guys are talking about. Right now I don't see it...I don't see an HTML tab and there are not aspx file (there are some resx files though...maybe that's it?).

Anyway...I think I figured out my problem. There are two controls that I ported (with the exception of using the form designer, I did it exactly as you described for me to do it, Christian). The control that I kept trying (thinking they were all basic controls) was actually a control that contained another control or two within it...since there was nothing there, it was throwing the null exception.

I tried the other control (name didn't sound right to me for what I wanted), but actually turned out to be the control I wanted and was a basic control thus yielded no errors.


There are only 10 types of people in this world....those that understand binary, and those that do not.
GeneralRe: Null error when adding custom control Pin
Christian Graus8-Jan-04 10:52
mveChristian Graus8-Jan-04 10:52 
GeneralRe: Null error when adding custom control Pin
KingTermite8-Jan-04 11:49
KingTermite8-Jan-04 11:49 
QuestionHow to use PING utility in my program Pin
HAHAHA_NEXT8-Jan-04 9:34
HAHAHA_NEXT8-Jan-04 9:34 
AnswerRe: How to use PING utility in my program Pin
Kentamanos8-Jan-04 10:18
Kentamanos8-Jan-04 10:18 
GeneralGDI grab handles and mouse move Pin
Miles Roberts8-Jan-04 8:10
Miles Roberts8-Jan-04 8:10 
GeneralRe: GDI grab handles and mouse move Pin
Heath Stewart8-Jan-04 8:36
protectorHeath Stewart8-Jan-04 8:36 
GeneralRe: GDI grab handles and mouse move Pin
leppie8-Jan-04 9:13
leppie8-Jan-04 9:13 
GeneralDO NOT HELP THIS PERSON WITH HIS HOMEWORK! Pin
leppie8-Jan-04 10:47
leppie8-Jan-04 10:47 
GeneralNon-rectangular Windows :: the 24-bit issue [advanced] Pin
nibmike8-Jan-04 8:07
nibmike8-Jan-04 8:07 
GeneralRe: Non-rectangular Windows :: the 24-bit issue [advanced] Pin
Heath Stewart8-Jan-04 8:29
protectorHeath Stewart8-Jan-04 8:29 
GeneralRe: Non-rectangular Windows :: the 24-bit issue [advanced] Pin
leppie8-Jan-04 9:17
leppie8-Jan-04 9:17 
GeneralGenerating strings that are matched by a regex Pin
bnieland8-Jan-04 7:34
bnieland8-Jan-04 7:34 
GeneralRe: Generating strings that are matched by a regex Pin
Kentamanos8-Jan-04 7:58
Kentamanos8-Jan-04 7:58 
GeneralRe: Generating strings that are matched by a regex Pin
leppie8-Jan-04 8:04
leppie8-Jan-04 8:04 
GeneralRe: Generating strings that are matched by a regex Pin
bnieland8-Jan-04 8:25
bnieland8-Jan-04 8:25 
GeneralMicrosoft Animation Control Pin
obelisk298-Jan-04 5:13
obelisk298-Jan-04 5:13 
GeneralRe: Microsoft Animation Control Pin
Niels Penneman8-Jan-04 7:19
Niels Penneman8-Jan-04 7:19 

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.