Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
GeneralSaving windows forms created at runtime Pin
kvimal16-Dec-03 12:49
kvimal16-Dec-03 12:49 
GeneralRe: Saving windows forms created at runtime Pin
Colin Angus Mackay16-Dec-03 13:01
Colin Angus Mackay16-Dec-03 13:01 
GeneralRe: Saving windows forms created at runtime Pin
Nigel Savidge17-Dec-03 4:30
Nigel Savidge17-Dec-03 4:30 
GeneralThreads and Controls Pin
Guinness4Strength16-Dec-03 11:59
Guinness4Strength16-Dec-03 11:59 
GeneralRe: Threads and Controls Pin
Mike Ellison16-Dec-03 14:15
Mike Ellison16-Dec-03 14:15 
GeneralRe: Threads and Controls Pin
Heath Stewart17-Dec-03 3:35
protectorHeath Stewart17-Dec-03 3:35 
GeneralMdi problemo Pin
datainjector16-Dec-03 10:09
datainjector16-Dec-03 10:09 
GeneralRe: Mdi problemo Pin
Heath Stewart17-Dec-03 3:29
protectorHeath Stewart17-Dec-03 3:29 
If the inputs are validating, crashing the problem makes sense?! WTF | :WTF:

You need to validate your inputs and gracefully warn the user or exit, depending on the circumstances (exiting, like in the case of 3 invalid password attempts or something). Crashing your program is not acceptable for clients!

Besides, never trust user input. Always validate input, even if it's just checking to see if input was provided. You should also put such commands in try-catch blocks so execeptions are caught and handled correctly.

One more thing, when using modal dialogs, you need to dispose them when you're done. So, after you get done grabbing values form your cust variable, call cust.Dispose(). Otherwise, the memory for the modal dialog (actually, this has to do with native handles used to display the modal dialog) won't be freed. This also helps keeps the memory footprint of your app down.

As far as MDI tutorials, I can't recommend any, but you should read the .NET SDK Documentation for the MDI-related methods and properties, such as Form.MdiChildren, Form.MdiParent, Menu.MergeMenu, and the like. It's not great, but it might give you a little more insight to some specific questions you might have. Otherwise, just ask the forum! Smile | :)

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Mdi problemo Pin
Heath Stewart17-Dec-03 3:32
protectorHeath Stewart17-Dec-03 3:32 
GeneralRe: Mdi problemo Pin
datainjector17-Dec-03 10:15
datainjector17-Dec-03 10:15 
GeneralRemote Debugging Pin
mikemilano16-Dec-03 9:13
mikemilano16-Dec-03 9:13 
GeneralRe: Remote Debugging Pin
Heath Stewart17-Dec-03 3:23
protectorHeath Stewart17-Dec-03 3:23 
Generalcontext menu with drag/drop and right click Pin
mikelb16-Dec-03 4:37
mikelb16-Dec-03 4:37 
Generalinterfaces and GUIDS Pin
Jinwah16-Dec-03 4:27
Jinwah16-Dec-03 4:27 
GeneralRe: interfaces and GUIDS Pin
Heath Stewart16-Dec-03 5:11
protectorHeath Stewart16-Dec-03 5:11 
GeneralRe: interfaces and GUIDS Pin
Jinwah16-Dec-03 5:34
Jinwah16-Dec-03 5:34 
GeneralRe: interfaces and GUIDS Pin
Heath Stewart16-Dec-03 5:45
protectorHeath Stewart16-Dec-03 5:45 
GeneralRe: interfaces and GUIDS Pin
Jinwah16-Dec-03 22:04
Jinwah16-Dec-03 22:04 
GeneralRe: interfaces and GUIDS Pin
Heath Stewart17-Dec-03 3:13
protectorHeath Stewart17-Dec-03 3:13 
GeneralRe: interfaces and GUIDS Pin
Member 26118817-Dec-03 6:02
Member 26118817-Dec-03 6:02 
GeneralSetting Up Computer to run IIS/ASP.NETwith C# Pin
Larry J. Siddens16-Dec-03 4:22
Larry J. Siddens16-Dec-03 4:22 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Heath Stewart16-Dec-03 5:08
protectorHeath Stewart16-Dec-03 5:08 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Larry J. Siddens16-Dec-03 7:03
Larry J. Siddens16-Dec-03 7:03 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Heath Stewart16-Dec-03 11:06
protectorHeath Stewart16-Dec-03 11:06 
GeneralRe: Setting Up Computer to run IIS/ASP.NETwith C# Pin
Not Active17-Dec-03 3:22
mentorNot Active17-Dec-03 3:22 

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.