Click here to Skip to main content
15,911,139 members
Home / Discussions / C#
   

C#

 
AnswerRe: Dispose() [modified] Pin
Thomas Weller20-Nov-08 23:18
Thomas Weller20-Nov-08 23:18 
GeneralRe: Dispose() Pin
Mirko198021-Nov-08 0:26
Mirko198021-Nov-08 0:26 
GeneralRe: Dispose() Pin
Le centriste21-Nov-08 6:38
Le centriste21-Nov-08 6:38 
GeneralRe: Dispose() Pin
Scott Dorman22-Nov-08 2:42
professionalScott Dorman22-Nov-08 2:42 
AnswerRe: Dispose() Pin
Guffa21-Nov-08 5:32
Guffa21-Nov-08 5:32 
AnswerRe: Dispose() Pin
Scott Dorman22-Nov-08 2:45
professionalScott Dorman22-Nov-08 2:45 
QuestionCrystal report error.......?? Pin
Hum Dum20-Nov-08 20:03
Hum Dum20-Nov-08 20:03 
QuestionForm (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
nelsonpaixao20-Nov-08 13:27
nelsonpaixao20-Nov-08 13:27 
In my application i have a form designed with 8 Usercontrols (pages), 1 StatusStrip (bottom) and 1 ToolStrip (top).

The application works like this: i press a button to switch usercontrols, that work as pages, so, i go from menu login_page to menu_page
and from there to any other page.

I manage all this with the help of a visibility method delegate.
Login_page load is different from all, only because ToolStrip is not visible, in any other "page" load both ToolStrip
and StatusStrip are visible.
(i do that because in login_page i manage logins, so only after login i allow ToolStrip controls to the user!!!, so, before login the toolstrip is not visible)

So whats wrong? nothing. When i open the project in c# (not run it) i get the message bellow inside the form, but
when i run it everthing works sweet, 100% like i want.Confused | :confused:



<System.NullReferenceException: Object reference not set to an instance o an object.
at
Use_Usercontrols_as_Pages.Usercontrol_PageMenu.Usercontrol_PageMenu_VisibleChanged
(object sender, eventargs e) in ...UserControls_as_pages|use_usercontrols_as_Pages\Usercontrol_PageMenu.cs:line 56
at system.windows.forms.controls.onvisiblechanged(eventargs e)
at system.windows.forms.scrollablecontrol.onvisiblechanged(eventargs e)
at system.windows.forms.control.onparentvisiblechanged(eventargs e)
at system.windows.forms.scrollablecontrol.onvisiblechanged(eventargs e)
at system.windows.forms.form..onvisiblechanged(eventargs e)
at system.windows.forms.control.wmshowwindow(message&m)
at system.windows.forms.scrollablecontrol.wndproc(message&m)
at system.windows.forms.containercontrol.wndproc(message&m)
at system.windows.forms.form.wndproc(message&m)
at system.windows.forms.form.wndproc(message&m)
at system.windows.forms.control.controlnativewndow.onmessage(message&m)>

nelsonpaixao@yahoo.com.br

trying to help & get help

modified on Thursday, November 20, 2008 7:35 PM

AnswerRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
Christian Graus20-Nov-08 13:39
protectorChristian Graus20-Nov-08 13:39 
GeneralRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
nelsonpaixao20-Nov-08 13:56
nelsonpaixao20-Nov-08 13:56 
GeneralRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
Christian Graus20-Nov-08 15:12
protectorChristian Graus20-Nov-08 15:12 
GeneralRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
Luc Pattyn21-Nov-08 2:59
sitebuilderLuc Pattyn21-Nov-08 2:59 
GeneralRe: Form (8 UserControl + 1 StatusStrip + 1 ToolStrip): error? where? it works!!! Pin
nelsonpaixao21-Nov-08 13:39
nelsonpaixao21-Nov-08 13:39 
QuestionSQLMetal Usage Pin
altctrlnick20-Nov-08 12:33
altctrlnick20-Nov-08 12:33 
AnswerRe: SQLMetal Usage Pin
Mirko198020-Nov-08 21:33
Mirko198020-Nov-08 21:33 
Questionfiltering dataset and saving the resultant in another table. Pin
Aslesh20-Nov-08 12:04
Aslesh20-Nov-08 12:04 
AnswerRe: filtering dataset and saving the resultant in another table. Pin
Christian Graus20-Nov-08 13:38
protectorChristian Graus20-Nov-08 13:38 
GeneralRe: filtering dataset and saving the resultant in another table. Pin
Samer Aburabie20-Nov-08 15:44
Samer Aburabie20-Nov-08 15:44 
AnswerRe: filtering dataset and saving the resultant in another table. Pin
Mycroft Holmes20-Nov-08 16:38
professionalMycroft Holmes20-Nov-08 16:38 
Questioncom1 problem Pin
E_Gold20-Nov-08 9:49
E_Gold20-Nov-08 9:49 
AnswerRe: com1 problem Pin
Ennis Ray Lynch, Jr.20-Nov-08 10:24
Ennis Ray Lynch, Jr.20-Nov-08 10:24 
GeneralRe: com1 problem Pin
E_Gold20-Nov-08 10:54
E_Gold20-Nov-08 10:54 
GeneralRe: com1 problem Pin
E_Gold21-Nov-08 11:08
E_Gold21-Nov-08 11:08 
GeneralRe: com1 problem Pin
Luc Pattyn23-Nov-08 0:54
sitebuilderLuc Pattyn23-Nov-08 0:54 
QuestionHow do I display an icon in a windows ce 5 form? Pin
bobpombrio20-Nov-08 8:53
bobpombrio20-Nov-08 8:53 

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.