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

C#

 
AnswerRe: How to shutdown and reboot a computer client on Lan using socket TCP/UDP Pin
Member 107057402-Apr-14 16:23
Member 107057402-Apr-14 16:23 
GeneralRe: How to shutdown and reboot a computer client on Lan using socket TCP/UDP Pin
Dave Kreskowiak2-Apr-14 17:32
mveDave Kreskowiak2-Apr-14 17:32 
QuestionHow to develop IE Plugin development and connect TCP socket through javascript? Pin
Damu_SDI1-Apr-14 19:36
Damu_SDI1-Apr-14 19:36 
Questionspliting sentence on the basis of conjunctions Pin
KhanKtk1-Apr-14 17:41
KhanKtk1-Apr-14 17:41 
AnswerRe: spliting sentence on the basis of conjunctions Pin
Kornfeld Eliyahu Peter1-Apr-14 19:55
professionalKornfeld Eliyahu Peter1-Apr-14 19:55 
GeneralRe: spliting sentence on the basis of conjunctions Pin
KhanKtk2-Apr-14 0:44
KhanKtk2-Apr-14 0:44 
AnswerRe: spliting sentence on the basis of conjunctions Pin
Bernhard Hiller1-Apr-14 20:49
Bernhard Hiller1-Apr-14 20:49 
GeneralRe: spliting sentence on the basis of conjunctions Pin
KhanKtk1-Apr-14 22:50
KhanKtk1-Apr-14 22:50 
here is what i did using regex. it works well. But doing this way, Splitting with regex, i lost the control over the word "and" for further processing. I have a lexicon of 20 words that normally appears before the "and (اور)" in urdu language. In next step I want to have a way to check the word before "and" against the lexicon and if found the sentence is broken else display the complete sentence.

private void button1_Click(object sender, EventArgs e)
{
{
richTextBox2.Text = "";
richTextBox3.Text = "";
string[] sentences = SentenceTokenizer(richTextBox1.Text);
string remSentence;
// these are urdu conjunctions. i am actually working on urdu language.
Regex r = new Regex("(کہ |اور | تاکہ| مگر | تاہم | کیونکہ | لیکن )");

foreach (string sentence in sentences)
{
remSentence = sentence;
remSentence = r.Replace(remSentence, "|");
string[] phrases = remSentence.Split('|');
for (int i = 0; i < phrases.Length; i++)
{
richTextBox2.Text += phrases[i] + '\n';

}
}
}
}
GeneralRe: spliting sentence on the basis of conjunctions Pin
KhanKtk1-Apr-14 22:53
KhanKtk1-Apr-14 22:53 
GeneralRe: spliting sentence on the basis of conjunctions Pin
Bernhard1-Apr-14 23:09
Bernhard1-Apr-14 23:09 
AnswerRe: spliting sentence on the basis of conjunctions Pin
_Maxxx_2-Apr-14 20:13
professional_Maxxx_2-Apr-14 20:13 
QuestionConvert Properties in vb6 to C# Pin
Jimmy Beh1-Apr-14 17:01
Jimmy Beh1-Apr-14 17:01 
AnswerRe: Convert Properties in vb6 to C# Pin
Wayne Gaylard1-Apr-14 19:32
professionalWayne Gaylard1-Apr-14 19:32 
GeneralRe: Convert Properties in vb6 to C# Pin
Jimmy Beh1-Apr-14 20:28
Jimmy Beh1-Apr-14 20:28 
AnswerRe: Convert Properties in vb6 to C# Pin
Bernhard Hiller1-Apr-14 20:54
Bernhard Hiller1-Apr-14 20:54 
Questionhow can i connect to microsoft access database Pin
Member 104662021-Apr-14 9:23
Member 104662021-Apr-14 9:23 
AnswerRe: how can i connect to microsoft access database Pin
Kornfeld Eliyahu Peter1-Apr-14 11:05
professionalKornfeld Eliyahu Peter1-Apr-14 11:05 
AnswerRe: how can i connect to microsoft access database Pin
Sivaraman Dhamodharan1-Apr-14 19:14
Sivaraman Dhamodharan1-Apr-14 19:14 
AnswerRe: how can i connect to microsoft access database Pin
V.2-Apr-14 2:01
professionalV.2-Apr-14 2:01 
AnswerRe: how can i connect to microsoft access database Pin
Hexa How2-Apr-14 20:41
Hexa How2-Apr-14 20:41 
QuestionMultiple try blocks in c# 2.0 Pin
ramki481-Apr-14 2:35
ramki481-Apr-14 2:35 
AnswerRe: Multiple try blocks in c# 2.0 Pin
Eddy Vluggen1-Apr-14 3:04
professionalEddy Vluggen1-Apr-14 3:04 
GeneralRe: Multiple try blocks in c# 2.0 Pin
OriginalGriff1-Apr-14 4:47
mveOriginalGriff1-Apr-14 4:47 
GeneralRe: Multiple try blocks in c# 2.0 Pin
Rob Philpott1-Apr-14 5:18
Rob Philpott1-Apr-14 5:18 
GeneralRe: Multiple try blocks in c# 2.0 Pin
OriginalGriff1-Apr-14 5:38
mveOriginalGriff1-Apr-14 5:38 

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.