Click here to Skip to main content
15,906,081 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why DataSet Not Updated, Any Gurus? Pin
Khang Nguyen10-Jul-03 11:54
Khang Nguyen10-Jul-03 11:54 
GeneralC#, Java and memory Pin
albean10-Jul-03 4:52
albean10-Jul-03 4:52 
GeneralRe: C#, Java and memory Pin
Ylis10-Jul-03 5:01
Ylis10-Jul-03 5:01 
GeneralRe: C#, Java and memory Pin
KingTermite11-Jul-03 7:44
KingTermite11-Jul-03 7:44 
Generalaccessing the key buffer Pin
Ylis10-Jul-03 4:51
Ylis10-Jul-03 4:51 
GeneralRe: accessing the key buffer Pin
Heath Stewart10-Jul-03 11:00
protectorHeath Stewart10-Jul-03 11:00 
GeneralRe: accessing the key buffer Pin
Ylis11-Jul-03 12:51
Ylis11-Jul-03 12:51 
GeneralWindows Application Startup Pin
bcox10-Jul-03 4:34
bcox10-Jul-03 4:34 
I am writing an application that has two modes 1) Normal Windows Forms based UI operation, 2) batch mode no UI mode operation using the same codebase.

On application start I would like to test for a parameter, and, or read a configuration file flag to determine which mode to operate under, then if UI mode, instantiate the main form and operate Windows application normal. If batch mode, either branch to other application logic or operate with the main form minimized or invisible. To do this, I would like to launch the application from a non-form based class like AppStart.cs with the application main method hosted there instead of in the main form, and I would like to show a Splash screen while I do some setup configuration work before before real processing begins . So the flow would be like this:

1. Main method kicks in from generic class...
2. New thread is started to manage splash screen based on a timer...
3. Configuration file is read to check batch mode flag...
4. If mode is UI, then when Splash timer is finished do Application.run and instantiate main form...
5. If mode is Batch, then either instantiate main form invisible, or run the applicaion without the main form...

Can anyone point me towards and example of starting a windows application from a main class instead of from a form? I thing this will have something to do with using the application context, and threads to do what I'm trying to do...?

Thanks!
GeneralCombo Box Pin
totig10-Jul-03 4:23
totig10-Jul-03 4:23 
GeneralDisplay a form in a windows service Pin
Anonymous9-Jul-03 23:38
Anonymous9-Jul-03 23:38 
GeneralWebservice error: underlying connection was closed Pin
BigAndy9-Jul-03 22:39
BigAndy9-Jul-03 22:39 
GeneralRe: Webservice error: underlying connection was closed Pin
Kannan Kalyanaraman10-Jul-03 0:40
Kannan Kalyanaraman10-Jul-03 0:40 
GeneralContextMenu & TextBox Pin
almigrp9-Jul-03 20:27
almigrp9-Jul-03 20:27 
GeneralRe: ContextMenu & TextBox Pin
Heath Stewart10-Jul-03 3:32
protectorHeath Stewart10-Jul-03 3:32 
GeneralRe: ContextMenu & TextBox Pin
KingTermite11-Jul-03 7:49
KingTermite11-Jul-03 7:49 
GeneralRe: ContextMenu & TextBox Pin
almigrp11-Jul-03 21:23
almigrp11-Jul-03 21:23 
QuestionImage Transform ? Pin
azusakt9-Jul-03 20:18
azusakt9-Jul-03 20:18 
GeneralImage effects Pin
Meysam Mahfouzi9-Jul-03 20:09
Meysam Mahfouzi9-Jul-03 20:09 
QuestionMessage Box ? Pin
Asim N.9-Jul-03 19:11
Asim N.9-Jul-03 19:11 
AnswerRe: Message Box ? Pin
J. Dunlap9-Jul-03 19:35
J. Dunlap9-Jul-03 19:35 
GeneralC# full screen Pin
Meysam Mahfouzi9-Jul-03 17:17
Meysam Mahfouzi9-Jul-03 17:17 
GeneralRe: C# full screen Pin
J. Dunlap9-Jul-03 17:20
J. Dunlap9-Jul-03 17:20 
GeneralRe: C# full screen Pin
Meysam Mahfouzi9-Jul-03 19:42
Meysam Mahfouzi9-Jul-03 19:42 
GeneralRe: C# full screen Pin
J. Dunlap9-Jul-03 19:57
J. Dunlap9-Jul-03 19:57 
GeneralHelp using the CsGL library Pin
jfrosty9-Jul-03 11:32
jfrosty9-Jul-03 11:32 

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.