Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using propertygrids Pin
led mike6-Sep-06 6:50
led mike6-Sep-06 6:50 
GeneralRe: Using propertygrids Pin
Hampus@foi6-Sep-06 20:01
Hampus@foi6-Sep-06 20:01 
GeneralRe: Using propertygrids Pin
led mike7-Sep-06 4:44
led mike7-Sep-06 4:44 
GeneralCS0029: Cannot Implicitly Convert Type... Pin
code-frog6-Sep-06 4:47
professionalcode-frog6-Sep-06 4:47 
GeneralRe: CS0029: Cannot Implicitly Convert Type... Pin
g00fyman6-Sep-06 4:59
g00fyman6-Sep-06 4:59 
GeneralRe: CS0029: Cannot Implicitly Convert Type... Pin
S. Senthil Kumar6-Sep-06 6:17
S. Senthil Kumar6-Sep-06 6:17 
GeneralRe: CS0029: Cannot Implicitly Convert Type... Pin
code-frog6-Sep-06 12:29
professionalcode-frog6-Sep-06 12:29 
QuestionRunning .net application as both windows and console mode. [modified] Pin
mhadamji6-Sep-06 3:46
mhadamji6-Sep-06 3:46 
Hi All

I am writing a .net windows app that should also run from command line. I am not sure what is the best way to set such a project.

I intend to create a windows project and on the Sub Main rotine check if any arguments are passed. If not run a form.

Public Shared Sub Main(ByVal Params() As String)<br />
  If Params.Length = 0 Then<br />
    'run windows mode<br />
    Application.Run(frmMain)<br />
  else<br />
    'run console application<br />
    some code<br />
  End If<br />
End Sub


Would this be the best way or is there any standard way of doing this ?

Many Thanks
Mustafa
www.hostukdomain.com
AnswerRe: Running .net application as both windows and console mode. Pin
mikone6-Sep-06 4:14
mikone6-Sep-06 4:14 
AnswerRe: Running .net application as both windows and console mode. Pin
Colin Angus Mackay6-Sep-06 4:21
Colin Angus Mackay6-Sep-06 4:21 
QuestionRe: Running .net application as both windows and console mode. Pin
Nader Elshehabi6-Sep-06 5:55
Nader Elshehabi6-Sep-06 5:55 
AnswerRe: Running .net application as both windows and console mode. Pin
Colin Angus Mackay7-Sep-06 9:36
Colin Angus Mackay7-Sep-06 9:36 
GeneralRe: Running .net application as both windows and console mode. Pin
mhadamji6-Sep-06 6:46
mhadamji6-Sep-06 6:46 
GeneralRe: Running .net application as both windows and console mode. Pin
Colin Angus Mackay7-Sep-06 9:37
Colin Angus Mackay7-Sep-06 9:37 
AnswerRe: Running .net application as both windows and console mode. Pin
mhadamji9-Sep-06 1:16
mhadamji9-Sep-06 1:16 
Questionhow can i find for a particular file in any logical drive Pin
Parshant Verma6-Sep-06 3:34
Parshant Verma6-Sep-06 3:34 
AnswerRe: how can i find for a particular file in any logical drive Pin
Niiiissssshhhhhuuuuu6-Sep-06 4:03
Niiiissssshhhhhuuuuu6-Sep-06 4:03 
AnswerRe: how can i find for a particular file in any logical drive Pin
mikone6-Sep-06 4:07
mikone6-Sep-06 4:07 
AnswerRe: how can i find for a particular file in any logical drive Pin
Utkarshraj Atmaram6-Sep-06 4:08
Utkarshraj Atmaram6-Sep-06 4:08 
Questioninterop: char* to what? ref string? [modified] Pin
Utkarshraj Atmaram6-Sep-06 3:31
Utkarshraj Atmaram6-Sep-06 3:31 
AnswerRe: interop: char* to what? ref string? Pin
mikone6-Sep-06 4:13
mikone6-Sep-06 4:13 
AnswerRe: interop: char* to what? ref string? Pin
Judah Gabriel Himango6-Sep-06 4:54
sponsorJudah Gabriel Himango6-Sep-06 4:54 
GeneralRe: interop: char* to what? ref string? Pin
Utkarshraj Atmaram6-Sep-06 18:57
Utkarshraj Atmaram6-Sep-06 18:57 
Questionstatic library Pin
erfi6-Sep-06 2:46
erfi6-Sep-06 2:46 
AnswerRe: static library Pin
mikone6-Sep-06 2:49
mikone6-Sep-06 2:49 

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.