Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
QuestionCopy or read locked/in use files Pin
nemopeti31-May-06 21:15
nemopeti31-May-06 21:15 
AnswerRe: Copy or read locked/in use files Pin
stancrm31-May-06 21:30
stancrm31-May-06 21:30 
GeneralRe: Copy or read locked/in use files Pin
nemopeti31-May-06 21:34
nemopeti31-May-06 21:34 
GeneralRe: Copy or read locked/in use files Pin
stancrm31-May-06 21:50
stancrm31-May-06 21:50 
GeneralRe: Copy or read locked/in use files Pin
nemopeti31-May-06 23:41
nemopeti31-May-06 23:41 
GeneralRe: Copy or read locked/in use files Pin
stancrm31-May-06 23:47
stancrm31-May-06 23:47 
GeneralRe: Copy or read locked/in use files Pin
nemopeti31-May-06 23:54
nemopeti31-May-06 23:54 
QuestionIs it a correct way Pin
engsrini31-May-06 20:43
engsrini31-May-06 20:43 
Iam developing a SDI windows application where i will have lot of user controls and one form(main) with panel. whenever the user clicks some buttons in form i have to load the corresponding user control into the panel. here i have a need every user control needs access the forms controls like when i click cancel on user control it should remove itself from panel and should load the next user control.

Now currenly i implemented this as the mainform class will create all user control object and pass this(mainform) as a refrence to all usercontrol constructors. so that all user control can access Form's panel to load/unload the usercontrol.

My question : Is design Ok. passing mainform reference to all usercontrols?
or any other way to do it.

Like i have one more idea instead of passing mainform reference every usercontrol will expose one event, mainform should register that event. whenever the usercontrol wants to remove itselft/load another one it has to send the nextusercontrol name as argument event and has to trigger tha event. so the mainform will process the event and unload/load the usercontrol from panel.

From the two apporached i don't which one is correctly. If you guys have some ideas. pleas suggest me.

Thanks and Regards
Srini
AnswerRe: Is it a correct way Pin
BadKarma31-May-06 21:33
BadKarma31-May-06 21:33 
AnswerRe: Is it a correct way Pin
InOut.NET31-May-06 21:57
InOut.NET31-May-06 21:57 
Questioncombobox Pin
kjosh31-May-06 20:28
kjosh31-May-06 20:28 
AnswerRe: combobox Pin
InOut.NET31-May-06 22:11
InOut.NET31-May-06 22:11 
QuestionHelp on P/Invoke BSTR* Pin
bluish31-May-06 20:08
bluish31-May-06 20:08 
AnswerRe: Help on P/Invoke BSTR* Pin
rah_sin31-May-06 20:13
professionalrah_sin31-May-06 20:13 
GeneralRe: Help on P/Invoke BSTR* Pin
bluish31-May-06 20:22
bluish31-May-06 20:22 
AnswerRe: Help on P/Invoke BSTR* [modified] Pin
stancrm31-May-06 20:27
stancrm31-May-06 20:27 
Questionupdating and retriving image Pin
leelaraj31-May-06 20:03
leelaraj31-May-06 20:03 
AnswerRe: updating and retriving image Pin
Laubi1-Jun-06 2:19
Laubi1-Jun-06 2:19 
GeneralRe: updating and retriving image Pin
leelaraj2-Jun-06 19:47
leelaraj2-Jun-06 19:47 
QuestionAdding Design script to script component in SSIS using C# Pin
Tarsha31-May-06 19:31
Tarsha31-May-06 19:31 
QuestionUrgent Pin
Shiv531-May-06 17:54
Shiv531-May-06 17:54 
AnswerRe: Urgent Pin
rah_sin31-May-06 18:21
professionalrah_sin31-May-06 18:21 
AnswerRe: Urgent Pin
_AK_31-May-06 18:31
_AK_31-May-06 18:31 
AnswerRe: Urgent Pin
nandank8131-May-06 18:56
nandank8131-May-06 18:56 
Questionwhat is the C# equivalent of PHP crypt() function Pin
Srivalli31-May-06 14:07
Srivalli31-May-06 14:07 

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.