Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: close a window on btn clk Pin
OriginalGriff27-Feb-11 1:50
mveOriginalGriff27-Feb-11 1:50 
GeneralRe: close a window on btn clk Pin
RobCroll27-Feb-11 2:56
RobCroll27-Feb-11 2:56 
GeneralRe: close a window on btn clk Pin
Mycroft Holmes27-Feb-11 3:00
professionalMycroft Holmes27-Feb-11 3:00 
GeneralRe: close a window on btn clk Pin
OriginalGriff27-Feb-11 3:30
mveOriginalGriff27-Feb-11 3:30 
GeneralRe: close a window on btn clk Pin
Richard MacCutchan27-Feb-11 6:21
mveRichard MacCutchan27-Feb-11 6:21 
GeneralRe: close a window on btn clk Pin
Mycroft Holmes27-Feb-11 11:14
professionalMycroft Holmes27-Feb-11 11:14 
AnswerRe: close a window on btn clk Pin
jasonmp27-Feb-11 3:10
jasonmp27-Feb-11 3:10 
AnswerRe: close a window on btn clk Pin
Hum Dum27-Feb-11 23:20
Hum Dum27-Feb-11 23:20 
aeman wrote:
window like my document on btn clk in c# but i dont klnw how to close this window.


If by this you mean open another program from c# like word the close it

Process []pArry = Process.GetProcesses();

foreach(Process p in pArry)
{
    string s = p.ProcessName;
    s = s.ToLower();
    if (s.CompareTo("winword") ==0)
    {
       p.Kill();
    }
} 


Above code will close word application.
GeneralRe: close a window on btn clk Pin
aeman28-Feb-11 20:06
aeman28-Feb-11 20:06 
AnswerRe: close a window on btn clk Pin
aeman28-Feb-11 20:03
aeman28-Feb-11 20:03 
Questiondraw Pin
om_metab27-Feb-11 0:43
om_metab27-Feb-11 0:43 
AnswerMy vote of 1 Pin
Keith Barrow27-Feb-11 0:55
professionalKeith Barrow27-Feb-11 0:55 
GeneralRe: My vote of 1 Pin
om_metab27-Feb-11 1:07
om_metab27-Feb-11 1:07 
AnswerRe: draw Pin
OriginalGriff27-Feb-11 1:33
mveOriginalGriff27-Feb-11 1:33 
AnswerRe: draw Pin
Pete O'Hanlon27-Feb-11 9:44
mvePete O'Hanlon27-Feb-11 9:44 
AnswerRe: draw Pin
Dalek Dave4-Mar-11 13:27
professionalDalek Dave4-Mar-11 13:27 
QuestionMOVEFILEEX fails in WIN7 Pin
Manikantagupta26-Feb-11 22:51
Manikantagupta26-Feb-11 22:51 
AnswerRe: MOVEFILEEX fails in WIN7 Pin
Luc Pattyn26-Feb-11 23:27
sitebuilderLuc Pattyn26-Feb-11 23:27 
GeneralRe: MOVEFILEEX fails in WIN7 Pin
OriginalGriff27-Feb-11 0:22
mveOriginalGriff27-Feb-11 0:22 
AnswerRe: MOVEFILEEX fails in WIN7 Pin
Luc Pattyn27-Feb-11 9:01
sitebuilderLuc Pattyn27-Feb-11 9:01 
GeneralRe: MOVEFILEEX fails in WIN7 Pin
OriginalGriff27-Feb-11 21:33
mveOriginalGriff27-Feb-11 21:33 
AnswerRe: MOVEFILEEX fails in WIN7 Pin
DaveAuld27-Feb-11 3:13
professionalDaveAuld27-Feb-11 3:13 
AnswerRe: MOVEFILEEX fails in WIN7 Pin
avinash51027-Feb-11 3:37
avinash51027-Feb-11 3:37 
QuestionHow to iterate in recursion? Pin
shivamkalra26-Feb-11 9:45
shivamkalra26-Feb-11 9:45 
AnswerRe: How to iterate in recursion? Pin
Luc Pattyn26-Feb-11 10:22
sitebuilderLuc Pattyn26-Feb-11 10:22 

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.