Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: Application shuts down and not just the form Pin
vlinker5-Dec-08 4:03
vlinker5-Dec-08 4:03 
GeneralRe: Application shuts down and not just the form Pin
praveenvkumarv5-Dec-08 4:06
praveenvkumarv5-Dec-08 4:06 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 4:12
Saamir5-Dec-08 4:12 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 4:07
Saamir5-Dec-08 4:07 
GeneralRe: Application shuts down and not just the form Pin
vlinker5-Dec-08 4:19
vlinker5-Dec-08 4:19 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 4:23
Saamir5-Dec-08 4:23 
GeneralRe: Application shuts down and not just the form Pin
vlinker5-Dec-08 4:46
vlinker5-Dec-08 4:46 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 5:09
Saamir5-Dec-08 5:09 
here is some code
here is my hide application code:

public void HideApp()
{
//this.WindowState = FormWindowState.Minimized;
Hide();
}

This is when I open the new form which upon closing is shutting down the whole application.

this.timer1.Enabled=false;
try
{
Payment frm = new Payment(m_pDBCnn, m_pDBUserId, m_pDBPassword, EmpId, TermNum, SiteId, TrnNum, LogId, SystemConfig);
if (frm.ShowDialog(this) == DialogResult.Cancel)
{
Status = frm.Status;
if (Status == 1)
{
this.timer1.Enabled = true;
this.PopulateInvoices();
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error in payment, contact Administrator\n" + ex.Message, "SelecSoftware POS™", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

Sameer

AnswerRe: Application shuts down and not just the form Pin
DiscoJimmy5-Dec-08 5:32
DiscoJimmy5-Dec-08 5:32 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 6:25
Saamir5-Dec-08 6:25 
GeneralRe: Application shuts down and not just the form Pin
DiscoJimmy5-Dec-08 7:36
DiscoJimmy5-Dec-08 7:36 
GeneralRe: Application shuts down and not just the form Pin
Saamir5-Dec-08 7:41
Saamir5-Dec-08 7:41 
GeneralRe: Application shuts down and not just the form Pin
DiscoJimmy5-Dec-08 7:47
DiscoJimmy5-Dec-08 7:47 
QuestionAscii to Hex Conversion [modified] Pin
asquaredtech5-Dec-08 3:47
asquaredtech5-Dec-08 3:47 
GeneralRe: Ascii to Hex Conversion Pin
Luc Pattyn5-Dec-08 4:12
sitebuilderLuc Pattyn5-Dec-08 4:12 
GeneralRe: Ascii to Hex Conversion Pin
asquaredtech5-Dec-08 5:23
asquaredtech5-Dec-08 5:23 
QuestionCreate IE autofill toolbar using C# Pin
jpselvam5-Dec-08 3:00
jpselvam5-Dec-08 3:00 
AnswerRe: Create IE autofill toolbar using C# Pin
Thomas Stockwell5-Dec-08 7:13
professionalThomas Stockwell5-Dec-08 7:13 
GeneralRe: Create IE autofill toolbar using C# Pin
jpselvam5-Dec-08 21:20
jpselvam5-Dec-08 21:20 
Questiondetect window drag Pin
g00fyman5-Dec-08 2:31
g00fyman5-Dec-08 2:31 
AnswerRe: detect window drag Pin
Ravi Bhavnani5-Dec-08 3:03
professionalRavi Bhavnani5-Dec-08 3:03 
GeneralRe: detect window drag Pin
g00fyman5-Dec-08 16:04
g00fyman5-Dec-08 16:04 
Questionsending message to a mobile through the software developed in c#.net by using bluetooth Pin
praveenvkumarv5-Dec-08 2:12
praveenvkumarv5-Dec-08 2:12 
AnswerRe: sending message to a mobile through the software developed in c#.net by using bluetooth Pin
vlinker5-Dec-08 3:20
vlinker5-Dec-08 3:20 
GeneralRe: sending message to a mobile through the software developed in c#.net by using bluetooth Pin
praveenvkumarv5-Dec-08 4:04
praveenvkumarv5-Dec-08 4:04 

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.