Click here to Skip to main content
15,896,493 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to process each word in a microsoft word document Pin
Member 382309412-Feb-07 19:11
Member 382309412-Feb-07 19:11 
AnswerRe: How to process each word in a microsoft word document Pin
sxbluebird12-Feb-07 22:19
sxbluebird12-Feb-07 22:19 
AnswerRe: How to process each word in a microsoft word document Pin
Pete O'Hanlon12-Feb-07 22:48
mvePete O'Hanlon12-Feb-07 22:48 
QuestionHow to Capture the event in a Menu Strip Pin
Rajaraman Soundararajan12-Feb-07 19:06
Rajaraman Soundararajan12-Feb-07 19:06 
Questionhow to fix a menustrip ? Pin
test12345012-Feb-07 13:53
test12345012-Feb-07 13:53 
QuestionGetProcesses(); Help pls Pin
van-ux12-Feb-07 10:47
van-ux12-Feb-07 10:47 
AnswerRe: GetProcesses(); Help pls Pin
M-Hall12-Feb-07 18:43
M-Hall12-Feb-07 18:43 
AnswerRe: GetProcesses(); Help pls Pin
Luc Pattyn13-Feb-07 2:08
sitebuilderLuc Pattyn13-Feb-07 2:08 
Here is some C# code from a big app, it may contain some strange lines (just ignore
those), it is copied here to show the general flow:

using System.Diagnostics;		// Process
 
public static ProcessComparer processComparer=new ProcessComparer();
 
public void showComboboxWithAllProcessesInAlphabeticalOrderAndMinePreselected() {
		LP_SimpleDialog dialog=new LP_SimpleDialog("Show Process", settings);
		Process[] processes=Process.GetProcesses();
		int n=processes.Length;
		// sort alphabetically
		ArrayList processes2=new ArrayList();
		for (int i=0; i<n; i++) processes2.Add(processes[i]);
		processes2.Sort(processComparer);
		string[] procnames=new string[n];
		// find my process
		int myProcID=Process.GetCurrentProcess().Id;
		int curr=0;
		for (int i=0; i<n; i++) {
			Process proci=(Process)processes2[i];
			if (proci.Id==myProcID) curr=i;
			procnames[i]=proci.ProcessName;
		}
		// now show combobox
		ComboBox cb=dialog.AddFixedComboBox(procnames, curr);
}
 
public class ProcessComparer : IComparer {
	public int Compare(object object1, object object2) {
		Process process1=object1 as Process;
		Process process2=object2 as Process;
		return string.Compare(process1.ProcessName,
                     process2.ProcessName, true); // ignore case
	}
}


Hope this helps.

Smile | :)






Luc Pattyn

QuestionUsing TOM from a RichTextBox Pin
Chris Charabaruk12-Feb-07 9:37
professionalChris Charabaruk12-Feb-07 9:37 
AnswerRe: Using TOM from a RichTextBox Pin
Pete O'Hanlon12-Feb-07 10:04
mvePete O'Hanlon12-Feb-07 10:04 
GeneralRe: Using TOM from a RichTextBox Pin
Chris Charabaruk13-Feb-07 7:28
professionalChris Charabaruk13-Feb-07 7:28 
QuestionSecurity in .NET 2005 Pin
nibelungster12-Feb-07 8:14
nibelungster12-Feb-07 8:14 
QuestionIs it possible to create ps file from doc,xls, and ppt using .net framework? Pin
anj198312-Feb-07 8:14
anj198312-Feb-07 8:14 
AnswerRe: Is it possible to create ps file from doc,xls, and ppt using .net framework? Pin
Christian Graus12-Feb-07 8:37
protectorChristian Graus12-Feb-07 8:37 
GeneralRe: Is it possible to create ps file from doc,xls, and ppt using .net framework? Pin
anj198313-Feb-07 1:54
anj198313-Feb-07 1:54 
QuestionSession Expired Problem??????????? Pin
Nithin Krishna11-Feb-07 22:42
Nithin Krishna11-Feb-07 22:42 
AnswerRe: Session Expired Problem??????????? Pin
anj198312-Feb-07 8:09
anj198312-Feb-07 8:09 
AnswerRe: Session Expired Problem??????????? Pin
ramyasangeet13-Feb-07 23:14
ramyasangeet13-Feb-07 23:14 
QuestionOpenNetCf version Pin
ArchaBhandare11-Feb-07 22:14
ArchaBhandare11-Feb-07 22:14 
QuestionRegarding BEST Practices for .net development Pin
Vijay_Madhusudan_Kulkarni11-Feb-07 18:03
Vijay_Madhusudan_Kulkarni11-Feb-07 18:03 
AnswerRe: Regarding BEST Practices for .net development Pin
Kevin McFarlane12-Feb-07 5:24
Kevin McFarlane12-Feb-07 5:24 
Questioncan be done real time simulation with WPF? Pin
Mir_As11-Feb-07 7:41
Mir_As11-Feb-07 7:41 
AnswerRe: can be done real time simulation with WPF? Pin
Dave Kreskowiak11-Feb-07 13:55
mveDave Kreskowiak11-Feb-07 13:55 
AnswerRe: can be done real time simulation with WPF? Pin
Luc Pattyn12-Feb-07 5:53
sitebuilderLuc Pattyn12-Feb-07 5:53 
GeneralRe: can be done real time simulation with WPF? Pin
Mir_As14-Feb-07 22:31
Mir_As14-Feb-07 22:31 

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.