Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
Questionuniversal connection b/w c# & MS ACCESS Pin
rao raja27-Jan-07 4:55
rao raja27-Jan-07 4:55 
AnswerRe: universal connection b/w c# & MS ACCESS Pin
Guffa27-Jan-07 6:49
Guffa27-Jan-07 6:49 
QuestionDAAB Configuration Problem Pin
adnanrafiq27-Jan-07 1:25
adnanrafiq27-Jan-07 1:25 
AnswerRe: DAAB Configuration Problem Pin
Rakheesh Chalil27-Jan-07 16:08
Rakheesh Chalil27-Jan-07 16:08 
Question.NET 2.0 & .NET 2.0 CF .. difference .. Pin
abalbo26-Jan-07 23:38
abalbo26-Jan-07 23:38 
AnswerRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
Guffa27-Jan-07 0:29
Guffa27-Jan-07 0:29 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
Luc Pattyn27-Jan-07 3:18
sitebuilderLuc Pattyn27-Jan-07 3:18 
JokeRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
bobsugar22227-Jan-07 6:57
bobsugar22227-Jan-07 6:57 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
Luc Pattyn27-Jan-07 7:26
sitebuilderLuc Pattyn27-Jan-07 7:26 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
bobsugar22227-Jan-07 7:35
bobsugar22227-Jan-07 7:35 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
Guffa27-Jan-07 10:33
Guffa27-Jan-07 10:33 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
Luc Pattyn27-Jan-07 11:26
sitebuilderLuc Pattyn27-Jan-07 11:26 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
abalbo27-Jan-07 22:46
abalbo27-Jan-07 22:46 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
Luc Pattyn28-Jan-07 11:11
sitebuilderLuc Pattyn28-Jan-07 11:11 
GeneralRe: .NET 2.0 & .NET 2.0 CF .. difference .. Pin
AlexB4728-Jan-07 20:42
AlexB4728-Jan-07 20:42 
QuestionOnly .NET 2.0? Pin
AlexZieg7126-Jan-07 22:32
AlexZieg7126-Jan-07 22:32 
GeneralRe: Only .NET 2.0? Pin
Guffa27-Jan-07 0:19
Guffa27-Jan-07 0:19 
GeneralRe: Only .NET 2.0? Pin
AlexZieg7127-Jan-07 0:29
AlexZieg7127-Jan-07 0:29 
QuestionLast OutlockBarApp Simular Visual Studio.Net 2005 Pin
keshtgar26-Jan-07 22:17
keshtgar26-Jan-07 22:17 
Questiongud day everyone!! Pin
giltendezm26-Jan-07 22:04
giltendezm26-Jan-07 22:04 
Questionquestion about SetResolution of bitmap Pin
abstar26-Jan-07 18:28
abstar26-Jan-07 18:28 
AnswerRe: question about SetResolution of bitmap Pin
Christian Graus26-Jan-07 21:38
protectorChristian Graus26-Jan-07 21:38 
QuestionExit a WinForm application at initialization Pin
Glen Harvy26-Jan-07 17:44
Glen Harvy26-Jan-07 17:44 
AnswerRe: Exit a WinForm application at initialization Pin
Syed Muhammad Kamran26-Jan-07 21:21
Syed Muhammad Kamran26-Jan-07 21:21 
GeneralRe: Exit a WinForm application at initialization Pin
Glen Harvy26-Jan-07 22:25
Glen Harvy26-Jan-07 22:25 
Syed Muhammad Kamran wrote:
Or even better you can use a static constructor try to set a static boolean variable and check it's value b4 instantiating...
Any Static Construct is the first thing which is run After class loading.


Thanks for your assistance ... I have a rough idea of what you suggest but would appreciate your elaborating a bit.

This is what I have now:
<br />
<br />
namespace blahblah<br />
{<br />
  public partial class MainForm : Form<br />
  {<br />
    public MainForm()<br />
    {<br />
     bool startupCheckValue = true;<br />
      startupCheckValue = startupCheck();<br />
      if (!startupCheckValue)<br />
      {<br />
        Dispose();<br />
        this.Close();<br />
        Application.Exit(); // exitProgram();<br />
      }<br />
 etc etc etc<br />
<br />
    private bool startupCheck()<br />
    {<br />
      // make sure database file exists<br />
      //<br />
[code works fine]<br />
    }<br />
<br />
<br />


How do I go about implementing what you suggest.

Thanks in advance.



Glen Harvy

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.