Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralDo events?? (C# Newbi) Pin
Dwayner7928-Jan-05 7:13
Dwayner7928-Jan-05 7:13 
GeneralRe: Do events?? (C# Newbi) Pin
Dave Kreskowiak28-Jan-05 7:37
mveDave Kreskowiak28-Jan-05 7:37 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 9:01
Dwayner7928-Jan-05 9:01 
GeneralRe: Do events?? (C# Newbi) Pin
Carl Mercier28-Jan-05 9:40
Carl Mercier28-Jan-05 9:40 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 9:43
Dwayner7928-Jan-05 9:43 
GeneralRe: Do events?? (C# Newbi) Pin
Skynyrd28-Jan-05 9:54
Skynyrd28-Jan-05 9:54 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 10:26
Dwayner7928-Jan-05 10:26 
GeneralRe: Do events?? (C# Newbi) Pin
Skynyrd28-Jan-05 11:32
Skynyrd28-Jan-05 11:32 
I've run ur code and it works perfectly under these conditions:

1) No devcomponents

Could be some fault in the assembly? Have u tried running the code commenting out all DevComponent references?

One thing i've noticed in your ContainerLoadControl event handler:

Ur safe casting "sender" into a "BaseItem" through "BaseItem item = sender as BaseItem;"
but then, on the next line, ur not taking into account that the cast might fail and "item" be a null reference. In that case "item.Name" will fail. Can ur error be in ur event handler? This error might be triggering while the form is performing native calls during loadup and thus the debugger cannot catch it properly. Try commenting it out and see what happens or try putting ur code after the safecast in this way and see what happens: if(item!=null) {//your code}
GeneralRe: Do events?? (C# Newbi) Pin
therealmccoy28-Jan-05 17:56
therealmccoy28-Jan-05 17:56 
GeneralRe: Do events?? (C# Newbi) Pin
Dave Kreskowiak28-Jan-05 10:18
mveDave Kreskowiak28-Jan-05 10:18 
GeneralRe: Do events?? (C# Newbi) Pin
Dwayner7928-Jan-05 10:34
Dwayner7928-Jan-05 10:34 
Generalpassing data from one form to another Pin
steve_rm28-Jan-05 4:06
steve_rm28-Jan-05 4:06 
GeneralRe: passing data from one form to another Pin
Bahadir Cambel28-Jan-05 11:45
Bahadir Cambel28-Jan-05 11:45 
GeneralHelp On Serialization Pin
fmarcos28-Jan-05 2:05
fmarcos28-Jan-05 2:05 
GeneralCustomize Control Pin
jzb28-Jan-05 0:04
jzb28-Jan-05 0:04 
GeneralRe: Customize Control Pin
spif200128-Jan-05 1:33
spif200128-Jan-05 1:33 
GeneralSubstring's problem Pin
jzb27-Jan-05 23:50
jzb27-Jan-05 23:50 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 0:01
mav.northwind28-Jan-05 0:01 
GeneralRe: Substring's problem Pin
jzb28-Jan-05 0:15
jzb28-Jan-05 0:15 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 0:27
mav.northwind28-Jan-05 0:27 
GeneralRe: Substring's problem Pin
Colin Angus Mackay28-Jan-05 4:33
Colin Angus Mackay28-Jan-05 4:33 
GeneralRe: Substring's problem Pin
mav.northwind28-Jan-05 4:46
mav.northwind28-Jan-05 4:46 
Generalview the incoming SOAP message Pin
weeteck27-Jan-05 22:56
weeteck27-Jan-05 22:56 
GeneralRe: view the incoming SOAP message Pin
Mazdak28-Jan-05 2:09
Mazdak28-Jan-05 2:09 
QuestionHow to let web form designer auto-generate the special code in InitializeComponent()? Pin
J Wang27-Jan-05 21:23
J Wang27-Jan-05 21:23 

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.