Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mapping a class to a table that has two primary keys Pin
Rob Philpott18-Jul-14 4:49
Rob Philpott18-Jul-14 4:49 
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 
Since your application is starting the external processes, it's simple: all you have to do is keep a reference to teh Process object you used to start it, and then use SendKeys:
C#
StartProcess("Notepad.exe");
    }

private Process notePad;

private void StartProcess(string p)
    {
    notePad = new Process();
    notePad.StartInfo.FileName = p;
    notePad.Start();
    }

[DllImport("User32.dll")]
static extern int SetForegroundWindow(IntPtr point);

private void butSendDataToNotepad_Click(object sender, EventArgs e)
    {
    IntPtr hWnd = notePad.MainWindowHandle;
    SetForegroundWindow(hWnd);
    SendKeys.SendWait(tbDataToSend.Text);
    }

Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

GeneralRe: Multiple cmd processes Pin
Member 1095341618-Jul-14 8:56
Member 1095341618-Jul-14 8:56 
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 

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.