Click here to Skip to main content
16,011,374 members
Home / Discussions / C#
   

C#

 
AnswerRe: Showing and hiding the console window Pin
Mark Salsbery12-Aug-08 13:03
Mark Salsbery12-Aug-08 13:03 
GeneralRe: Showing and hiding the console window Pin
Ekjon13-Aug-08 5:30
Ekjon13-Aug-08 5:30 
GeneralRe: Showing and hiding the console window Pin
Mark Salsbery13-Aug-08 6:06
Mark Salsbery13-Aug-08 6:06 
GeneralRe: Showing and hiding the console window Pin
Ekjon13-Aug-08 6:39
Ekjon13-Aug-08 6:39 
GeneralRe: Showing and hiding the console window Pin
Mark Salsbery13-Aug-08 7:03
Mark Salsbery13-Aug-08 7:03 
GeneralRe: Showing and hiding the console window Pin
Ekjon13-Aug-08 7:47
Ekjon13-Aug-08 7:47 
GeneralRe: Showing and hiding the console window Pin
Mark Salsbery13-Aug-08 7:57
Mark Salsbery13-Aug-08 7:57 
GeneralRe: Showing and hiding the console window Pin
Ekjon13-Aug-08 8:13
Ekjon13-Aug-08 8:13 
I did the following and it's working fine now.
[DllImport("Kernel32.dll")]public static extern int AllocConsole();<br />
      [DllImport("Kernel32.dll")]public static extern int FreeConsole();<br />
      static void Main(string[] args)<br />
      {<br />
          System.Timers.Timer myTimer = new System.Timers.Timer();<br />
          myTimer.Elapsed += new ElapsedEventHandler( DisplayTimeEvent );<br />
          myTimer.Interval = 90000;<br />
          myTimer.Start();<br />
          while (true)<br />
          {                <br />
              ;<br />
          }<br />
      }<br />
      public static void DisplayTimeEvent( object source, ElapsedEventArgs e )<br />
      {<br />
          AllocConsole();<br />
          //All the processing<br />
          FreeConsole();<br />
      }<br />

Before...I was trying to call them in the wrong place.
Thanks so much.
GeneralRe: Showing and hiding the console window Pin
Mark Salsbery13-Aug-08 8:25
Mark Salsbery13-Aug-08 8:25 
QuestionDo do I Print Avery Address Labels, C# Pin
TCHamilton12-Aug-08 11:21
TCHamilton12-Aug-08 11:21 
AnswerRe: Do do I Print Avery Address Labels, C# Pin
Wendelius12-Aug-08 11:40
mentorWendelius12-Aug-08 11:40 
GeneralMessage Removed Pin
12-Aug-08 11:54
TCHamilton12-Aug-08 11:54 
GeneralRe: Do do I Print Avery Address Labels, C# Pin
Wendelius12-Aug-08 11:59
mentorWendelius12-Aug-08 11:59 
GeneralRe: Do do I Print Avery Address Labels, C# Pin
vikas amin14-Aug-08 11:31
vikas amin14-Aug-08 11:31 
Questionproblems with process.start methode Pin
stephan_00712-Aug-08 11:12
stephan_00712-Aug-08 11:12 
AnswerRe: problems with process.start methode Pin
Wendelius12-Aug-08 11:27
mentorWendelius12-Aug-08 11:27 
GeneralRe: problems with process.start methode Pin
stephan_00712-Aug-08 11:44
stephan_00712-Aug-08 11:44 
GeneralRe: problems with process.start methode Pin
Wendelius12-Aug-08 11:54
mentorWendelius12-Aug-08 11:54 
GeneralRe: problems with process.start methode Pin
stephan_00712-Aug-08 11:58
stephan_00712-Aug-08 11:58 
GeneralRe: problems with process.start methode Pin
Wendelius12-Aug-08 12:02
mentorWendelius12-Aug-08 12:02 
GeneralRe: problems with process.start methode Pin
stephan_00712-Aug-08 12:06
stephan_00712-Aug-08 12:06 
GeneralRe: problems with process.start methode Pin
Wendelius12-Aug-08 12:19
mentorWendelius12-Aug-08 12:19 
QuestionRe: problems with process.start methode Pin
Mark Salsbery12-Aug-08 12:51
Mark Salsbery12-Aug-08 12:51 
JokeRe: problems with process.start methode Pin
blackjack215012-Aug-08 20:18
blackjack215012-Aug-08 20:18 
GeneralRe: problems with process.start methode Pin
stephan_00712-Aug-08 23:59
stephan_00712-Aug-08 23:59 

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.