Click here to Skip to main content
16,005,734 members
Home / Discussions / C#
   

C#

 
GeneralConversion from vb.net to c# Pin
suresh_sathya29-Aug-02 2:14
suresh_sathya29-Aug-02 2:14 
GeneralRe: Conversion from vb.net to c# Pin
Nnamdi Onyeyiri29-Aug-02 2:29
Nnamdi Onyeyiri29-Aug-02 2:29 
GeneralRe: Conversion from vb.net to c# Pin
leppie29-Aug-02 3:11
leppie29-Aug-02 3:11 
GeneralRe: Conversion from vb.net to c# Pin
Maciej Pirog29-Aug-02 4:31
Maciej Pirog29-Aug-02 4:31 
GeneralRe: Conversion from vb.net to c# Pin
Maciej Pirog29-Aug-02 4:43
Maciej Pirog29-Aug-02 4:43 
GeneralRe: Conversion from vb.net to c# Pin
David Stone29-Aug-02 13:01
sitebuilderDavid Stone29-Aug-02 13:01 
GeneralRe: Conversion from vb.net to c# Pin
Sijin29-Aug-02 19:58
Sijin29-Aug-02 19:58 
GeneralDesinger crashes after adding own Component with Properties to form Pin
Chris Richner29-Aug-02 0:25
Chris Richner29-Aug-02 0:25 
This code is found in InitializeComponent() on my form, busFormManager1 is my class.

// <br />
			// busFormManager1<br />
			// <br />
			this.busFormManager1.ActiveDockControl = null;<br />
			this.busFormManager1.ActiveMdiChild = null;<br />
			this.busFormManager1.BarManager = null;<br />
			this.busFormManager1.DefaultRegion = Medea.GfxLib.Windows.Forms.BusFormManager.ClientRegion.ToolLeft;<br />
			this.busFormManager1.DockManager = null;<br />
			this.busFormManager1.EnableMaximizedMode = false;<br />
			this.busFormManager1.Parent = null;


now in design mode the form will not appear, only a blank white page with exception message Object reference not set to an instance of an object.. At runtime everything works fine, just the desinger kicks my form out.

I guess that my FormManager will execute code at this time, that is not valid or some object required for him are null at this time.

Now i've tried to use the DesignMode Flag, to test in which state the class is. Now it seem's that this flag is always false until InitializeComponent() is executed.

how to code this propertys the right way, that you can still watch the form in Designer ?

if you got a property like this

public Form Parent<br />
{<br />
set<br />
{<br />
this.parent = value;<br />
if (parent != null)<br />
{<br />
parent.Load += new EventHandler(....../<br />
parent.IsMdiParent = true;<br />
}<br />
}<br />
get<br />
{<br />
return this.parent;<br />
}<br />
}


now this property let crash the desinger, cause there's to much code in it to execute at InitializeComponent().

Any hint ? how did microsoft code all the components in dotnet ? they work always, not like mine ;(

.:Greets from Jerry Maguire:.
GeneralRe: Desinger crashes after adding own Component with Properties to form Pin
leppie29-Aug-02 0:40
leppie29-Aug-02 0:40 
GeneralAn enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri28-Aug-02 21:52
Nnamdi Onyeyiri28-Aug-02 21:52 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie28-Aug-02 22:08
leppie28-Aug-02 22:08 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri28-Aug-02 23:18
Nnamdi Onyeyiri28-Aug-02 23:18 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie28-Aug-02 23:58
leppie28-Aug-02 23:58 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri29-Aug-02 1:13
Nnamdi Onyeyiri29-Aug-02 1:13 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie29-Aug-02 1:41
leppie29-Aug-02 1:41 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Nnamdi Onyeyiri29-Aug-02 2:26
Nnamdi Onyeyiri29-Aug-02 2:26 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
leppie29-Aug-02 3:04
leppie29-Aug-02 3:04 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Anonymous29-Aug-02 3:56
Anonymous29-Aug-02 3:56 
GeneralRe: An enigma rapped up in a puzzle inside a.... Pin
Philip Fitzsimons29-Aug-02 2:48
Philip Fitzsimons29-Aug-02 2:48 
GeneralWorking with frames in ASP .NET Pin
Mazdak28-Aug-02 21:30
Mazdak28-Aug-02 21:30 
GeneralShutdown, Restart and Logout... Pin
Eka28-Aug-02 19:59
Eka28-Aug-02 19:59 
Generalnew trouble occur,I can't get the ico in dll Pin
fftongzhi28-Aug-02 16:51
fftongzhi28-Aug-02 16:51 
GeneralRe: new trouble occur,I can't get the ico in dll Pin
James T. Johnson28-Aug-02 19:21
James T. Johnson28-Aug-02 19:21 
GeneralRe: new trouble occur,I can't get the ico in dll Pin
fftongzhi28-Aug-02 21:11
fftongzhi28-Aug-02 21:11 
QuestionCan anyone recommend a book for writing custom control in C#? Pin
Li-kai Liu (Angus)28-Aug-02 16:19
Li-kai Liu (Angus)28-Aug-02 16: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.