Click here to Skip to main content
15,904,934 members
Home / Discussions / C#
   

C#

 
QuestionProblem with MdiParent-MdiChildren forms Pin
Nine_31-May-09 20:38
Nine_31-May-09 20:38 
AnswerRe: Problem with MdiParent-MdiChildren forms Pin
dan!sh 31-May-09 21:08
professional dan!sh 31-May-09 21:08 
You need to pass the current instance of your parent form to the LoginForm. This way:

LoginForm frmLogin = new LoginForm(this);


While the constructor for LoginForm will be:

public LoginForm(MDIparent frmParent)
{
this.Parent=frmParent;
}


This way you will be able to access all the controls of the parent form.

For your second problem, Application.OpenForms collection is there to help you. If the CustomerForm is already in the collection, just set Focus to it, otherwise create a new instance of it and show.

जय हिंद

Rajdeep.Net[^] is NOT from India. Proof.[^]

GeneralRe: Problem with MdiParent-MdiChildren forms Pin
Nine_31-May-09 21:12
Nine_31-May-09 21:12 
GeneralRe: Problem with MdiParent-MdiChildren forms Pin
dan!sh 31-May-09 21:23
professional dan!sh 31-May-09 21:23 
GeneralRe: Problem with MdiParent-MdiChildren forms Pin
Nine_31-May-09 21:29
Nine_31-May-09 21:29 
QuestionHow to delete the URL from cache entry in c#? Pin
svt gdwl31-May-09 20:31
svt gdwl31-May-09 20:31 
QuestionDataGridView Pin
Yathish hatter31-May-09 20:19
Yathish hatter31-May-09 20:19 
AnswerRe: DataGridView Pin
Satish Pai31-May-09 20:29
Satish Pai31-May-09 20:29 
GeneralRe: DataGridView Pin
Yathish hatter1-Jun-09 18:43
Yathish hatter1-Jun-09 18:43 
Questionfacing problem with C# ODP.Net API(Oracle.DataAccess.dll) "Open cursors exceeded" exception is occured Pin
member12345631-May-09 19:33
member12345631-May-09 19:33 
QuestionTCP Server Question *IMPORTANT* Pin
Serpendiem31-May-09 18:30
Serpendiem31-May-09 18:30 
AnswerRe: TCP Server Question *IMPORTANT* Pin
Jimmanuel1-Jun-09 2:45
Jimmanuel1-Jun-09 2:45 
Question[SOLVED] Future or past date time Pin
CodingLover31-May-09 18:02
CodingLover31-May-09 18:02 
AnswerRe: Future or past date time Pin
CodingLover31-May-09 18:05
CodingLover31-May-09 18:05 
QuestionBelow idea how to be realized in C#? Pin
mctramp16831-May-09 17:08
mctramp16831-May-09 17:08 
AnswerRe: Below idea how to be realized in C#? Pin
Christian Graus31-May-09 19:25
protectorChristian Graus31-May-09 19:25 
GeneralRe: Below idea how to be realized in C#? Pin
mctramp16831-May-09 20:13
mctramp16831-May-09 20:13 
GeneralRe: Below idea how to be realized in C#? Pin
Christian Graus31-May-09 21:48
protectorChristian Graus31-May-09 21:48 
GeneralRe: Below idea how to be realized in C#? Pin
mctramp16831-May-09 22:04
mctramp16831-May-09 22:04 
GeneralRe: Below idea how to be realized in C#? Pin
Pete O'Hanlon31-May-09 22:19
mvePete O'Hanlon31-May-09 22:19 
GeneralRe: Below idea how to be realized in C#? Pin
0x3c01-Jun-09 0:07
0x3c01-Jun-09 0:07 
GeneralRe: Below idea how to be realized in C#? Pin
mctramp1681-Jun-09 1:16
mctramp1681-Jun-09 1:16 
Questioncustom control textbox with a label tied Pin
Wendell.S31-May-09 16:21
Wendell.S31-May-09 16:21 
AnswerRe: custom control textbox with a label tied Pin
Dave Kreskowiak31-May-09 17:28
mveDave Kreskowiak31-May-09 17:28 
QuestionUltra-light native embedded database Pin
Pascal Ganaye31-May-09 10:27
Pascal Ganaye31-May-09 10:27 

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.