Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

salamonty86

@salamonty86
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Select word in richtextbox control
    S salamonty86

    Ok :) Sorry for being late :laugh:

    C# question

  • Select word in richtextbox control
    S salamonty86

    YES IT HELPED :rose: :rose: :rose: THANK YOUUUU VERY VERY MUCH MOS DAN

    C# question

  • Select word in richtextbox control
    S salamonty86

    I understood this but what i want exactly is the selection operation in the richtextbox. How i will find and select the second "word" only without select the first occurence of it :-D

    C# question

  • Select word in richtextbox control
    S salamonty86

    The issue is how i will select the second "word" ONLY, when i say id=2, OR select the third "word" ONLY, when i say id=3, if i have in my richtextbox string like this "word word word word word word word word word word word"

    C# question

  • Select word in richtextbox control
    S salamonty86

    each one has id. i.e if i said id=1 then select the first word only, if i said id=2 then select the second word only and so on.

    C# question

  • Select word in richtextbox control
    S salamonty86

    Dear all, I want to select the second word only in a richtextbox control on a form. I mean if i have text like "word word word" in richtextbox i want to select the second word only. Any suggestions?? Thanks and best regards

    C# question

  • Cant Write Large Text File
    S salamonty86

    When I did Application.DoEvents(); no message appears but the file size stopped at 7805 kb and the program stopped and thats cant be because the file must end with the last record in my database table.

    C# performance mobile database dotnet com

  • Cant Write Large Text File
    S salamonty86

    Dear all, I want to create a large .txt file but when i run my code i got a strange thing, A messagebox say's: "No Symbols are loaded for any call stack frame. The source code cannot be displayed." and a warning say's "The CLR has been unable to transition from COM context 0x1c2000 to COM context 0x1c2170 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations." My code is: string prev=""; string connectionString = "Provider=Microsoft.JET.OLEDB.4.0;data source=E:\\ICA_Newspapers.mdb"; OleDbConnection conn = new OleDbConnection(connectionString); string sql = "SELECT * FROM All_Analyzed_Corpus"; OleDbCommand cmd = new OleDbCommand(sql, conn); conn.Open(); OleDbDataReader reader; reader = cmd.ExecuteReader(); StreamWriter tw = new StreamWriter(Application.StartupPath + "\\TaggedCorpus.txt"); StringBuilder text = new StringBuilder(); while (reader.Read()) { //if new line if (reader.GetValue(1).ToString() == "/D") { //if end of line text.Append("</s>"); //text.Capacity = text.Length; // write a line of text to the file tw.WriteLine(text); tw.Flush(); text = text.Remove(0, text.Length); text.Append("<s> "); prev = "/D"; } else if (reader.GetValue(1).ToString() == "/T" && prev != "/D") { //if end of line text.Append("</s>"); //text.Capacity = text.Length; // write a line of text to the file tw.WriteLine(text); tw.Flush();

    C# performance mobile database dotnet com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups