Click here to Skip to main content
16,017,899 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please help Pin
exhaulted16-May-05 4:23
exhaulted16-May-05 4:23 
GeneralRe: Please help Pin
Blue_Skye16-May-05 6:51
Blue_Skye16-May-05 6:51 
GeneralRe: Please help Pin
exhaulted16-May-05 20:56
exhaulted16-May-05 20:56 
QuestionHow to apply a different color then the system color to the main form menu and to the toolbars Pin
udir16-May-05 3:30
udir16-May-05 3:30 
AnswerRe: How to apply a different color then the system color to the main form menu and to the toolbars Pin
Anonymous16-May-05 6:50
Anonymous16-May-05 6:50 
GeneralRe: How to apply a different color then the system color to the main form menu and to the toolbars Pin
udir17-May-05 19:35
udir17-May-05 19:35 
GeneralMDI - Make only one child(Instance) active Pin
Subrahmanyam K16-May-05 2:24
Subrahmanyam K16-May-05 2:24 
GeneralRe: MDI - Make only one child(Instance) active Pin
Marc Clifton16-May-05 2:31
mvaMarc Clifton16-May-05 2:31 
Subrahmanyam_K wrote:
But, my problem is when i click the menuitem(Create Child) one more time keeping the child created previously, one more instance of the same child is being created and shown as a different window.

So, what you want is to make sure that only one instance of a particular child can be created?

The simplest way, and the best way with regards to feedback to the user, is to disable the menu item that creates that child, after it's been created. When the child is closed, re-enable the menu item. That way, the user gets some feedback when going to the menu that the child has already been created. The "Windows" menu item should show a list of all the child forms, BTW.

Otherwise, you'll probably have to maintain a collection of child forms and test to see if the child has already been created, and if so, bring it to focus. But you'll still need to handle the child's close event so that it can remove itself from the application's collection.

Marc

MyXaml
Advanced Unit Testing
YAPO
GeneralRe: MDI - Make only one child(Instance) active Pin
Subrahmanyam K16-May-05 6:12
Subrahmanyam K16-May-05 6:12 
GeneralRe: MDI - Make only one child(Instance) active Pin
Iftahh16-May-05 4:13
Iftahh16-May-05 4:13 
GeneralRe: MDI - Make only one child(Instance) active Pin
Subrahmanyam K16-May-05 6:20
Subrahmanyam K16-May-05 6:20 
GeneralRe: MDI - Make only one child(Instance) active Pin
Luis Alonso Ramos16-May-05 16:06
Luis Alonso Ramos16-May-05 16:06 
GeneralAuthentication with SQL 2000 and C# Pin
Illegal Operation16-May-05 1:16
Illegal Operation16-May-05 1:16 
GeneralRe: Authentication with SQL 2000 and C# Pin
Colin Angus Mackay16-May-05 3:19
Colin Angus Mackay16-May-05 3:19 
QuestionHow to call the storedprocedure in MS Access in C# Pin
luckyeagle15-May-05 16:24
luckyeagle15-May-05 16:24 
AnswerRe: How to call the storedprocedure in MS Access in C# Pin
Colin Angus Mackay16-May-05 1:11
Colin Angus Mackay16-May-05 1:11 
GeneralNewbie Question - Inheirtance - Controls Pin
Wackatronic115-May-05 15:51
Wackatronic115-May-05 15:51 
GeneralRe: Newbie Question - Inheirtance - Controls Pin
Marc Clifton15-May-05 16:04
mvaMarc Clifton15-May-05 16:04 
GeneralCheckedListBox Pin
myNameIsRon15-May-05 14:37
myNameIsRon15-May-05 14:37 
GeneralRe: CheckedListBox Pin
Yulianto.15-May-05 14:52
Yulianto.15-May-05 14:52 
GeneralRe: CheckedListBox Pin
myNameIsRon18-May-05 20:16
myNameIsRon18-May-05 20:16 
GeneralRe: CheckedListBox Pin
Yulianto.18-May-05 20:27
Yulianto.18-May-05 20:27 
GeneralRe: CheckedListBox Pin
myNameIsRon19-May-05 5:36
myNameIsRon19-May-05 5:36 
GeneralRe: CheckedListBox Pin
Yulianto.19-May-05 14:18
Yulianto.19-May-05 14:18 
GeneralStore multiple values Pin
Bahadir Cambel15-May-05 12:21
Bahadir Cambel15-May-05 12:21 

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.