Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
QuestionDataRow Problem Pin
tatchung5-Dec-05 20:08
tatchung5-Dec-05 20:08 
AnswerRe: DataRow Problem Pin
jonny55-Dec-05 20:20
jonny55-Dec-05 20:20 
GeneralRe: DataRow Problem Pin
tatchung5-Dec-05 20:47
tatchung5-Dec-05 20:47 
QuestionAccessing Main menu Item? Pin
MudkiSekhon5-Dec-05 19:58
MudkiSekhon5-Dec-05 19:58 
AnswerRe: Accessing Main menu Item? Pin
Vikram A Punathambekar6-Dec-05 0:38
Vikram A Punathambekar6-Dec-05 0:38 
GeneralRe: Accessing Main menu Item? Pin
MudkiSekhon6-Dec-05 0:48
MudkiSekhon6-Dec-05 0:48 
GeneralRe: Accessing Main menu Item? Pin
Vikram A Punathambekar6-Dec-05 0:56
Vikram A Punathambekar6-Dec-05 0:56 
GeneralRe: Accessing Main menu Item? Pin
MudkiSekhon6-Dec-05 1:16
MudkiSekhon6-Dec-05 1:16 
I am sending u the whole scenario what I am doing.
In the declarations of Parent form, I am declaring:

private Form2 LoginForm;
public static int CustomerID;
and I had set "IsMdiContainer" property to true

In the Form Load event of Parent Form Form1:

this.LoginForm = new Form2();
LoginForm.MdiParent = this;
LoginForm.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade);
LoginForm.Show();

Now in the button click event of Child form Login Form:

string Username = txtUserName.Text;
string Password = txtPassword.Text;

Form1.CustomerID = authenticateCustomer(Username,Password);
this.Close();



Thanks,
Sandeep
+919891027854
GeneralRe: Accessing Main menu Item? Pin
Vikram A Punathambekar6-Dec-05 2:22
Vikram A Punathambekar6-Dec-05 2:22 
GeneralRe: Accessing Main menu Item? Pin
MudkiSekhon6-Dec-05 1:46
MudkiSekhon6-Dec-05 1:46 
QuestionToolTip for ComboBox Pin
suresh sahu5-Dec-05 18:22
suresh sahu5-Dec-05 18:22 
QuestionI want to execute only one file in the project in C#.net Pin
sridevi20055-Dec-05 17:35
sridevi20055-Dec-05 17:35 
AnswerRe: I want to execute only one file in the project in C#.net Pin
Guffa6-Dec-05 0:46
Guffa6-Dec-05 0:46 
GeneralRe: I want to execute only one file in the project in C#.net Pin
sridevi20056-Dec-05 1:44
sridevi20056-Dec-05 1:44 
AnswerRe: I want to execute only one file in the project in C#.net Pin
Colin Angus Mackay6-Dec-05 1:14
Colin Angus Mackay6-Dec-05 1:14 
GeneralRe: I want to execute only one file in the project in C#.net Pin
sridevi20056-Dec-05 1:52
sridevi20056-Dec-05 1:52 
GeneralRe: I want to execute only one file in the project in C#.net Pin
Colin Angus Mackay6-Dec-05 2:05
Colin Angus Mackay6-Dec-05 2:05 
GeneralRe: I want to execute only one file in the project in C#.net Pin
sridevi20056-Dec-05 2:32
sridevi20056-Dec-05 2:32 
QuestionC# vs VB.Net Pin
inew5-Dec-05 16:02
inew5-Dec-05 16:02 
QuestionGet a List of all objects in application? Pin
Robert M Greene5-Dec-05 15:12
Robert M Greene5-Dec-05 15:12 
AnswerRe: Get a List of all objects in application? Pin
Sasuko5-Dec-05 21:43
Sasuko5-Dec-05 21:43 
GeneralRe: Get a List of all objects in application? Pin
Vikram A Punathambekar6-Dec-05 0:45
Vikram A Punathambekar6-Dec-05 0:45 
QuestionHelp providers Pin
CandyMe5-Dec-05 14:47
CandyMe5-Dec-05 14:47 
QuestionUrgent Help needed for reflection Pin
subbucs5-Dec-05 14:26
subbucs5-Dec-05 14:26 
QuestionWhat's up with this new Loader Lock exception? Pin
dxben5-Dec-05 12:10
dxben5-Dec-05 12:10 

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.