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
D

Daniel Bright

@Daniel Bright
About
Posts
10
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HTML code to .TXT
    D Daniel Bright

    You can also use RegEx to strip the html tags from the response. public string cleanHtmlTags(string inputText) { Regex objRejex = new Regex("<([^>]*?)>"); return objRejex.Replace(inputText, ""); } "If knowledge can create problems, it is not through ignorance that we can solve them." -- Isaac Asimov

    C# question html help

  • Slashdot RSS Stylesheet
    D Daniel Bright

    http://slashdot.org/slashdot.rss[^] "If knowledge can create problems, it is not through ignorance that we can solve them." -- Isaac Asimov

    XML / XSL question announcement

  • TcpListener Hangs at 4096 bytes?
    D Daniel Bright

    The BeginListener function will not receive any information from the socket past a certain amount (apparently 4096 bytes). Information sent that is smaller than that is received properly. If data is sent that is larger than that, it's truncated to 4096 bytes, and then the while loop exits (which it should never do). private void BeginListener() { byte[] b = new byte[10000000]; int k; Socket s; String strMessage = ""; TcpListener newList = new TcpListener(10000); newList.Start(); while (true) { strMessage = ""; s = newList.AcceptSocket(); k = s.Receive(b); for (int nCounter = 0; nCounter < k; nCounter++) { strMessage += (char)b[nCounter]; } } newList.Stop(); } private void SendCommand(String Address,String strTempFile) { StreamReader newReader = new StreamReader(strTempFile); String strSendString = newReader.ReadToEnd(); newReader.Close(); newClient = new TcpClient(); NetworkStream tcpStream = null; byte[] ba; try { newClient.Connect(Address,10000); tcpStream = newClient.GetStream(); ASCIIEncoding asem = new ASCIIEncoding(); ba = asem.GetBytes(strSendString); tcpStream.Write(ba,0,ba.Length); } catch (System.Net.Sockets.SocketException) { //Error Handling. } finally { if (tcpStream != null) {tcpStream.Close();} if (newClient != null) {newClient.Close();} } } Any help would be greatly appreciated.

    C# help csharp question

  • Magic UI Tab control help
    D Daniel Bright

    Thanks Heath, Is there an easy way to check for the active control index? DB

    C# question csharp html com design

  • Magic UI Tab control help
    D Daniel Bright

    I am creating a simple tabbed text editor using the Magic .NET UI bits [http://www.dotnetmagic.com[^]]. My question is how do I programmaticly manipulate opjects that are on the tabs I create? In a non-tabbed form I would use: richTextBox1.Cut(); //or richTextBox1.Copy(); but I cannot figure out how I can get to the textbox inside a tabControl page. Im sure that this is probably simple, but I cant find it. Any help would be greatly appreciated. I looked at the documentation here: http://www.dotnetmagic.com/articles.html[^]but I couldnt make any sense out of it. You can find the test project I'm experimenting with here: http://www.exceed-tech.com/misc/TabTest1.zip [^]

    C# question csharp html com design

  • Direct console output to a window
    D Daniel Bright

    I don't want the console to display at all, I just want all output to be directed to a textbox or something. This [^] article explains exactly how it is done in C++, I was just hoping for a C# version of it that is more simplified.

    C# question

  • Direct console output to a window
    D Daniel Bright

    Anyone know where I could find a sample app that will run a console app & display its output in a windows form?

    C# question

  • PDA's
    D Daniel Bright

    I have a SL-5500 Zaurus, but I don't use it. I just ordered a Axim from Dell last Friday. My Z is in good condition if anyone is interested. I have all of the stuff (cables & CD) for it. I did find that the Open Source [http://openzaurus.org/\] ROM for it was pretty cool. It's better than the Sharp one, and doesn't include the useless java test apps & other junk.

    The Lounge html com linux question discussion

  • Testers / Collaborators Wanted For Camel CPU Identifer / Tester
    D Daniel Bright

    I will test using my Dual Athlon boxes

    Collaboration / Beta Testing c++ com help visual-studio performance

  • Testers needed for anti-spam software
    D Daniel Bright

    I keep getting timeouts... I will try again. Please forgive multiple registrations, but I cant tell if my application has been accepted.

    Collaboration / Beta Testing com business beta-testing question
  • Login

  • Don't have an account? Register

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