Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mapping a class to a table that has two primary keys Pin
Eddy Vluggen18-Jul-14 5:13
professionalEddy Vluggen18-Jul-14 5:13 
GeneralRe: Mapping a class to a table that has two primary keys Pin
Member 128472118-Jul-14 6:37
Member 128472118-Jul-14 6:37 
GeneralRe: Mapping a class to a table that has two primary keys Pin
Eddy Vluggen18-Jul-14 6:46
professionalEddy Vluggen18-Jul-14 6:46 
GeneralRe: Mapping a class to a table that has two primary keys Pin
Member 128472118-Jul-14 7:20
Member 128472118-Jul-14 7:20 
GeneralRe: Mapping a class to a table that has two primary keys Pin
Eddy Vluggen18-Jul-14 7:26
professionalEddy Vluggen18-Jul-14 7:26 
QuestionMultiple cmd processes Pin
Member 1095341617-Jul-14 3:55
Member 1095341617-Jul-14 3:55 
AnswerRe: Multiple cmd processes Pin
OriginalGriff17-Jul-14 8:46
mveOriginalGriff17-Jul-14 8:46 
GeneralRe: Multiple cmd processes Pin
Member 1095341618-Jul-14 8:56
Member 1095341618-Jul-14 8:56 
Thank you for your reply.

I tried your suggestion with a little test. So far it worked, i was able to create 2 separate cmd.exe processes and was able to send commands to it any time i wanted. However, the windows of the cmd.exe processes where all open, and got focus if it wrote a command in it. When i tried to hide the windows with this:

C#
this.process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;


It didn't work anymore. The problem is here i think that the combination of 'SetForegroundWindow' and'SendKeys' will need an active window - it simulates user input, so it needs an active window which isn't hidden to send keys to it.

Is there some way to hide it? The user must not be able to see the cmd.exe processes, it should all just run in the background.
QuestionWhat is state machine C# ? Pin
Tridip Bhattacharjee17-Jul-14 2:32
professionalTridip Bhattacharjee17-Jul-14 2:32 
AnswerRe: What is state machine C# ? Pin
OriginalGriff17-Jul-14 2:37
mveOriginalGriff17-Jul-14 2:37 
GeneralRe: What is state machine C# ? Pin
Pete O'Hanlon17-Jul-14 3:18
mvePete O'Hanlon17-Jul-14 3:18 
QuestionGoing Pass Limit of 64 bit Processor Pin
computerpublic17-Jul-14 2:30
computerpublic17-Jul-14 2:30 
AnswerRe: Going Pass Limit of 64 bit Processor Pin
Piotr Bagazja17-Jul-14 2:40
Piotr Bagazja17-Jul-14 2:40 
GeneralRe: Going Pass Limit of 64 bit Processor Pin
computerpublic17-Jul-14 2:55
computerpublic17-Jul-14 2:55 
GeneralRe: Going Pass Limit of 64 bit Processor Pin
Piotr Bagazja17-Jul-14 3:05
Piotr Bagazja17-Jul-14 3:05 
AnswerRe: Going Pass Limit of 64 bit Processor Pin
OriginalGriff17-Jul-14 2:41
mveOriginalGriff17-Jul-14 2:41 
QuestionHow to save treeview in database ??? Pin
ATHIRA S17-Jul-14 0:22
ATHIRA S17-Jul-14 0:22 
AnswerRe: How to save treeview in database ??? Pin
OriginalGriff17-Jul-14 0:38
mveOriginalGriff17-Jul-14 0:38 
GeneralRe: How to save treeview in database ??? Pin
Rob Philpott17-Jul-14 1:21
Rob Philpott17-Jul-14 1:21 
GeneralRe: How to save treeview in database ??? Pin
OriginalGriff17-Jul-14 1:36
mveOriginalGriff17-Jul-14 1:36 
AnswerRe: How to save treeview in database ??? Pin
uvantavida17-Jul-14 0:38
uvantavida17-Jul-14 0:38 
AnswerRe: How to save treeview in database ??? Pin
Gerry Schmitz17-Jul-14 12:39
mveGerry Schmitz17-Jul-14 12:39 
GeneralRe: How to save treeview in database ??? Pin
Mycroft Holmes17-Jul-14 12:45
professionalMycroft Holmes17-Jul-14 12:45 
QuestionHow to save pdf file in database ??? Pin
ATHIRA S16-Jul-14 23:47
ATHIRA S16-Jul-14 23:47 
AnswerRe: How to save pdf file in database ??? Pin
uvantavida17-Jul-14 0:34
uvantavida17-Jul-14 0:34 

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.