Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
GeneralInterface Problems Pin
Ox53746F6E6523-Mar-05 6:27
Ox53746F6E6523-Mar-05 6:27 
GeneralRe: Interface Problems Pin
leppie23-Mar-05 6:41
leppie23-Mar-05 6:41 
GeneralRe: Interface Problems Pin
Ox53746F6E6523-Mar-05 6:45
Ox53746F6E6523-Mar-05 6:45 
GeneralRe: Interface Problems Pin
J4amieC23-Mar-05 9:21
J4amieC23-Mar-05 9:21 
GeneralRe: Interface Problems Pin
Joel Lucsy23-Mar-05 7:10
Joel Lucsy23-Mar-05 7:10 
GeneralRe: Interface Problems Pin
Ox53746F6E6523-Mar-05 7:41
Ox53746F6E6523-Mar-05 7:41 
GeneralDispose Error Pin
JMichael246823-Mar-05 4:38
JMichael246823-Mar-05 4:38 
GeneralRe: Dispose Error Pin
mav.northwind23-Mar-05 6:04
mav.northwind23-Mar-05 6:04 
Hi!
Could it be that you're coming from a VB background? Smile | :)

Remove this.Show(); from your frmMain constructor to get rid of the ObjectDisposedException.
But your main frame will show afterwards, even when LoginResult is false.

You could do it like this:
static void Main()
{
  frmLogin frm = new frmLogin();
  frm.ShowDialog();
  if (frm.LoginResult == false)
    return;
 
  Application.Run(new frmMain());
}
Regards,
mav
GeneralRe: Dispose Error Pin
JMichael246823-Mar-05 7:42
JMichael246823-Mar-05 7:42 
GeneralRe: Dispose Error Pin
mav.northwind23-Mar-05 19:10
mav.northwind23-Mar-05 19:10 
GeneralCreate table in access database Pin
webhay23-Mar-05 3:08
webhay23-Mar-05 3:08 
GeneralRe: Create table in access database Pin
mav.northwind23-Mar-05 6:14
mav.northwind23-Mar-05 6:14 
GeneralRe: Create table in access database Pin
webhay23-Mar-05 6:24
webhay23-Mar-05 6:24 
GeneralRe: Create table in access database Pin
mav.northwind23-Mar-05 19:37
mav.northwind23-Mar-05 19:37 
GeneralMultiThread reading from stream Pin
Snowjim23-Mar-05 2:55
Snowjim23-Mar-05 2:55 
GeneralRe: MultiThread reading from stream Pin
leppie23-Mar-05 3:28
leppie23-Mar-05 3:28 
GeneralRe: MultiThread reading from stream Pin
Snowjim23-Mar-05 4:02
Snowjim23-Mar-05 4:02 
GeneralRe: MultiThread reading from stream Pin
Dave Kreskowiak23-Mar-05 11:24
mveDave Kreskowiak23-Mar-05 11:24 
GeneralStreamWriter and non-unicode writing to file Pin
23-Mar-05 1:36
suss23-Mar-05 1:36 
GeneralRe: StreamWriter and non-unicode writing to file Pin
leppie23-Mar-05 3:31
leppie23-Mar-05 3:31 
GeneralConverting to Word Pin
Amir Jalaly23-Mar-05 0:27
Amir Jalaly23-Mar-05 0:27 
GeneralRe: Converting to Word Pin
Guinness4Strength23-Mar-05 8:23
Guinness4Strength23-Mar-05 8:23 
GeneralRe: Converting to Word Pin
Amir Jalaly24-Mar-05 20:21
Amir Jalaly24-Mar-05 20:21 
GeneralRe: Converting to Word Pin
Guinness4Strength25-Mar-05 3:42
Guinness4Strength25-Mar-05 3:42 
Generalvirus over network layer Pin
computer_eng22-Mar-05 22:31
computer_eng22-Mar-05 22:31 

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.