Click here to Skip to main content
15,942,549 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change remote registries that have a username/pw? Pin
Spydre7-Jan-07 10:11
Spydre7-Jan-07 10:11 
GeneralRe: How to change remote registries that have a username/pw? Pin
Ed.Poore7-Jan-07 10:22
Ed.Poore7-Jan-07 10:22 
GeneralRe: How to change remote registries that have a username/pw? Pin
Spydre7-Jan-07 10:39
Spydre7-Jan-07 10:39 
GeneralRe: How to change remote registries that have a username/pw? Pin
Ed.Poore7-Jan-07 11:29
Ed.Poore7-Jan-07 11:29 
GeneralRe: How to change remote registries that have a username/pw? Pin
Spydre7-Jan-07 11:53
Spydre7-Jan-07 11:53 
GeneralRe: How to change remote registries that have a username/pw? Pin
Ed.Poore7-Jan-07 12:06
Ed.Poore7-Jan-07 12:06 
QuestionHow to access methos of one form from another? Pin
TrooperIronMan6-Jan-07 7:38
TrooperIronMan6-Jan-07 7:38 
AnswerRe: How to access methos of one form from another? [modified] Pin
Luc Pattyn6-Jan-07 8:00
sitebuilderLuc Pattyn6-Jan-07 8:00 
If you have a Form (say mainForm) containing text, and you want an interactive search facility, you could create a dialog using a new Form (say findDialog)
which has mainForm as parent (so it hides when mainForm hides), and which is
shown as modeless dialog (i.e. it can give up focus to other windows in same app).

Now mainForm can have button event handlers attached to the buttons of findDialog,
read an editTextBox on findDialog, and do whatever is required within mainForm.

So the trick is in mainForm attaching event handlers to another form's buttons,
but then it did create that other form (findDialog) so it has a reference to it.
Hence it boils down to one of the following:
- make the Controls on findDialog public (is not what Visual Studio Designer does
by default, but there is a "Modifiers" field on the properties panel)
- add public properties to get access to the non-public controls you need
- add one or more public methods to findDialog to attach an event handler to the
non-public controls you need.

The choice is yours.

Personaly I often create dialogs programmatically (rather than through Designer)
and make all controls public.


Smile | :)




-- modified at 14:05 Saturday 6th January, 2007

Luc Pattyn

GeneralRe: How to access methos of one form from another? Pin
TrooperIronMan6-Jan-07 8:53
TrooperIronMan6-Jan-07 8:53 
GeneralRe: How to access methos of one form from another? Pin
Luc Pattyn6-Jan-07 9:28
sitebuilderLuc Pattyn6-Jan-07 9:28 
GeneralRe: How to access methos of one form from another? Pin
TrooperIronMan7-Jan-07 1:59
TrooperIronMan7-Jan-07 1:59 
AnswerRe: How to access methos of one form from another? Pin
Ennis Ray Lynch, Jr.6-Jan-07 8:06
Ennis Ray Lynch, Jr.6-Jan-07 8:06 
QuestionHow to share the same DataBinding in diferent forms??? Pin
Pet Lizard6-Jan-07 5:32
Pet Lizard6-Jan-07 5:32 
AnswerRe: How to share the same DataBinding in diferent forms??? Pin
Not Active6-Jan-07 6:48
mentorNot Active6-Jan-07 6:48 
QuestionDShowNet Pin
RockyC#6-Jan-07 4:12
RockyC#6-Jan-07 4:12 
AnswerRe: DShowNet Pin
Stefan Troschuetz6-Jan-07 4:43
Stefan Troschuetz6-Jan-07 4:43 
GeneralRe: DShowNet Pin
RockyC#6-Jan-07 5:44
RockyC#6-Jan-07 5:44 
GeneralRe: DShowNet Pin
Stefan Troschuetz6-Jan-07 5:52
Stefan Troschuetz6-Jan-07 5:52 
GeneralRe: DShowNet Pin
RockyC#6-Jan-07 10:35
RockyC#6-Jan-07 10:35 
GeneralRe: DShowNet Pin
Ed.Poore6-Jan-07 11:20
Ed.Poore6-Jan-07 11:20 
GeneralRe: DShowNet Pin
Stefan Troschuetz6-Jan-07 23:47
Stefan Troschuetz6-Jan-07 23:47 
GeneralRe: DShowNet [modified] Pin
RockyC#7-Jan-07 5:28
RockyC#7-Jan-07 5:28 
QuestionC# asp.net 2.0 Pin
chirag_nine6-Jan-07 1:57
chirag_nine6-Jan-07 1:57 
AnswerRe: C# asp.net 2.0 Pin
Not Active6-Jan-07 7:20
mentorNot Active6-Jan-07 7:20 
QuestionRe: C# asp.net 2.0 Pin
chirag_nine6-Jan-07 7:37
chirag_nine6-Jan-07 7:37 

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.