Send Large Amounts Of Text With TCP?

Nov 11, 2011

How to send large amounts of text with TCP.[code]...

View 6 Replies


ADVERTISEMENT

How To Display/store Large Amounts Of Text?

Nov 11, 2009

What I want to do is display large amounts of text and a few pictures, ideally with hyperlinks between the pages. A lot like wikipedia really, lots of similarly arranged pages, text in categories with in-line hyperlinks and the occasional picture to illustrate a point.But not online, integrated as part of a larger app.

How would it be best to go about doing that? The display method is sortof dictated by the storage method. My thoughts were:

Lots and lots of labels stored in an Access database

Straight HTML as if it were a webpage embedded in an iFrame or something

Labels populated from XML files?

Program the whole lot in Flash or something else (A language I can't speak)

This is only a mockup for demonstration purposes so the priority is user-friendlyness and ease of programming rather than storage concerns or good programming form.

View 1 Replies

VS 2008 : Submitting Large Text Amounts With .net?

Oct 11, 2010

if I want to submit a large amount of text to my asp web page, do I need to worry about the text itself such as containing "&a=" that would mean another variable is being assigned for submitting data? Any way of not worrying about this? Or do I need to replace the & symbol everywhere in the test first if used?

View 1 Replies

Instantly Render Large Amounts Of Multi-colored Text?

Dec 18, 2009

I need to constantly display large amounts of colored text in WPF or Silverlight, and I need the user to percieve it as showing up instantly.

Currently I'm doing this using a canvas and textblocks, one textblock per 80-character line, with multiple runs to a textblock to handle the different colors. There can often be 20+ runs to a line.

In a 45x80 grid of text, this gets a framerate of about 12 in Silverlight, which is sluggish. Oddly enough, it's even slower in WPF... I can only speculate that this has something to do with my dev machine's lousy video card. Maybe it's trying to hardware accelerate and actually slowing down because of it?

View 1 Replies

Getting A Binary Search To Work (warning:large Amounts Of Text/code)?

Dec 25, 2009

Couldn't think of a better title.(Background on the problem/me)Okay, so, first question/post here, so hi. Now that that's done with, the information pertinent to my problem. I'm fairly new to VB (and programming as well, aside from screwing around with C++ and learning assembler(well, attempting is the better word) god knows how many years ago), and have only seriously been programming for about under half a year, and my skill level is about at that stage. Only been using VB.Net, nothing older. Depending on the time of day and if I'm home or at school, I fluxuate between VB express and Vis Studio 08. Umm, this program I'm having trouble with was on a test that I took yesterday (took the problem home with me cause I really wanted to figure out what was wrong with it).

The stipulations of the test were:
No For->Each Loops
No using Built-In Sorting or Searching Functions

[code].....

View 4 Replies

Saving And Loading Large Amounts Of Data?

Sep 5, 2009

Is it possible to create a kinda virtual storage in a vb application so that data created during run time are stored right in the applicaion instead of its environment?

View 11 Replies

VS 2010 : Working With Large Amounts Of Data Without Getting Out Of Memory?

Apr 25, 2011

I recently wrote a program that collects information from the network can displays it in a DGV for the user to see. I tested this on networks where I would end up with several thousand items brought back and all worked fine, very little memory increase and once the search had finished the memory usage went back to pretty much what it was before the search, so I assume I have no major memory leaks that I should be concerned about (I'm careful to always dispose of things and clear large variables where possible).

However, a new company has now started using my application and they have several hundred thousand items that my program will find. They reported that they leave the program running its search for a few hours and most of the time it crashes with an Out Of Memory exception. Now I did have my app do some caching of certain information to avoid querying the network more than was necessary so I thought well maybe this is what is causing it but I added an option to turn that off and they say it still happens. So the only thing I can see it being is simply the amount of data that the program is finding and having to store in memory.once my application has gathered information about the items it stores them in a List(Of MyItemClass) and then when the search is complete the items are added to the DGV. So I'm thinking maybe its just the size of this List(Of MyItemClass) that is simply getting too large. Bear in mind that each instance of MyItemClass in this List can have quite a lot of information in it as it has several properties that are List(Of String) that may contain a few thousand strings in some scenarios.How do you deal with such large amounts of data without running out of memory?I'm assuming the only option I have got is to 'page' some of the data to a temporary file on disk once I get over a certain number of items in the List(Of MyItemClass)?

View 2 Replies

Stack Overflows - Filesystemwatcher Unreliable With Large Amounts Of Processing?

Apr 19, 2010

I created a program that watches about 10 folders for different excel files. Using the filesystemwatcher with filters in place and correct error handling, it still misses some files once in a while (that's ok I guess).Anyways, I'm writing this because I added another form that has a filesystem watcher, when I tried to load the form I got a stack overflow error - an error that isn't debugged (a greenish line that you can only stop debugging).Am I going about this a wrong way? Is filesystemwatcher unreliable with large amounts of processing?

View 1 Replies

Three Text Boxes For Inputting Amounts Of Money?

Jul 16, 2010

I have three text boxes for inputting amounts of money. One is for a total check amount, the other two are separate amounts that should add up to the total check amount. In each of the individual text boxes validating events, I have the following

Private Sub txtAmount1_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles txtAmount1.Validating
Try

[code].....

View 3 Replies

Take The Three Amounts From Three Text Boxes Entered By The User And Return?

Jul 24, 2011

the project here is to take the three amounts from three text boxes entered by the user and return a string in a label telling the user if the triangle is either a right triangle, equilateral triangle, or neither after clicking a button. The code I have must use a new Class named Triangle. No matter what is entered in the text boxes, the label always returns "You created a right triangle!"

[Code]...

View 3 Replies

.net - Send And Receive A Large Image Using Tcp?

Dec 19, 2010

I need to send and receive a large image between programs running on different machines within the same network.

I've looked at using upd however ran into problems with the size of the packets and
(after breaking the image into smaller pieces to get past this problem) the number of packets needing to be processed all at once - and ultimately packet loss.

I've also thought of sending the image by storing it in a common file folder and receiving it by using file watcher as a trigger. However, this just adds further complexities in setup where common folders don't already exist.

Assuming I'm barking up the right tree looking at tcp, can someone point me to/provide an example of how to send an image file using it (vb.net would be ideal). Also, are there practical limits to tcp package sizes?

View 2 Replies

Text Editor - Loading Multiple Large Text Files

Jul 10, 2010

I'm fairly new to VB.NET, and I'm working on a text editor with a tabbed interface. I deal with large text files. Should I have each tab / text document open up in a new thread or a process? I basically want the entire application to always run fast as the text editor is just one part of it. If I have several large text files open I don't want the rest of the application slowing down a bit.

View 2 Replies

Use The Send Keys Function To Send Text To Another Program?

Apr 29, 2009

I am trying to use the send keys function to send text to another program.I ahve gotten it al working well, except for using () as I know sendkeys doesnt like these.I have tried using the Replace function in several places in my code to replace the ( with {(} and {+0} etc, with various other options tried.But when I run the program, it seems to skip this out completly and leaves them in the string as (, and therefore it errors and wont run.When I step through it, it goes through the function but doesnt alter the strng as it should. This is the code to send the string and my attempt at making it replace the () in the module

Module TextReplacement
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Int32) As Short
Dim counter As Integer
Dim sData() As String

[code]....

The error I get when i try send "Test :)" is: ArgumentExcveption was unhandled "SendKeys string 'Test :)' is not valid"

View 2 Replies

Large Chunks Of Text In A Rich Text Box?

Apr 22, 2010

I have ~ 1 page how to that is currently in a text file which I want to add to a richtext box.I am just wondering if there is some way I can just copy/paste it so it keeps its formatting etc.

View 1 Replies

Sometimes The Path Is Too Large So The Text Gets Cut Off From The Frm?

Jul 12, 2010

My program displays the current path that it scans.The problem is that sometimes the path is to large so the text gets cut off from the frm.I was thinking is it possible of cutting this log path.

C:Hellowindowspath
andom text extfoldervb.txt

to

C:Hellowidows..... extfoldervb.txt

View 2 Replies

Large Multidimensial Array - Write A Program To Do Markov Chain But States Are Quite Large

Jun 9, 2011

I want to write a program to do Markov chain, but my states are quite large. First of all I calculate all the transition probabilities and revenues for all states(1381860 total states), and store in a multidimensional array. Public RevArr(0 To 9, 0 To 750, 0 To 282) As Long

After that the iteration of markov chain should use these as inputs to calculate the steady-state probabilities. But when I try to run the main code I got this error.Exception of type 'System.OutOfMemoryException' was thrown.

The following is the declaration of second array I add just another dimension for storing all the iterations, but I get this error. Dim stateprob(IT + 1, 0 To 9, 0 To 750, 0 To 282) As single

View 1 Replies

Reading A Very Large Text File?

Jan 30, 2012

My problem is I have very large text files (approx 2GBs+).They have records in them based in one per line.Each line is not the same length and the data can be different lengths all the time.I am currently reading the file line by line, then splitting the data by common characters in the records. To process the full file it currently takes 3hours. This is way too slow for its purpose.

View 4 Replies

Reading Large Text File?

Jul 6, 2011

I've a problem reading text file using StreamReader. The file have between 500 000 and 1 000 000 lines.When I try to read it in a cycle, I get an error. That's why I've tried the StreamReader.ReadToEnd method. It worked fine. I've get the entire contents of the file in one string. So far everything is okay, but I've a small problem searching this huge string. I have to reformat the string to my desired format. I'll try to be more specific: The format of the input file is as follows:

50471100 8 2 6 5 0<LF><CR>
00000016 365442 12231<LF><CR>
00000026 112166 31133<LF><CR>
<end>

[Code]...

View 7 Replies

Reading Large Text Files

Jan 30, 2012

My problem is I have very large text files (approx 2GBs+).They have records in them based in one per line.Each line is not the same length and the data can be different lengths all the time.I am currently reading the file line by line, then splitting the data by common characters in the records. To process the full file it currently takes 3hours. This is way too slow for its purpose.

View 7 Replies

.net - Check If 2 Large Text Files Content Are 100% Same?

Jun 29, 2011

I have two large text files (about 1.8 GB each encoded in UTF-8). And I want to check if the content of both files are 100% same. If there is single character difference then it is considered not same, i.e. both files are different. How do I do that? So my question is: How to check if 2 large text files content are 100% same?

[Code]...

View 2 Replies

.net - Large Display Text Moving Controls?

Aug 11, 2011

I'm working on a .Net Windows application. All the controls arrange fine, but when the user specifies their Windows display text to be larger than the Windows 7 default of 'Smaller', the controls get moved around on the form and makes it unusable.

Is there a way to lock down those controls no matter what the display text setting is at?

View 2 Replies

Display A Large List Of Text And Search?

Aug 4, 2009

I'm trying to have it so theres a big list of items for example:

item1
item2
item3

[Code]....

I was thinking a list box? but I'm not all too sure on how to use one. I'd like the user to be able to scroll down through the list OR use a search. How could I search the list?(Id use a textbox as what to search for and a button to search the list.)

View 9 Replies

Display Large Amount Of Fixed Text?

Nov 22, 2009

How do I display a large amount of fixed text (about 400 words) in a form. I also need to have scroll down bars.[code]...

View 1 Replies

Formatting :: Reformat A Large Text File?

Dec 10, 2011

I am faced with a rather large text file (200-400 lines)The file displays a lot of data however the problem is that it is not lined up. The data at the moment resembles this

Column1 Column2 Column3 Column4
Bobby Fisher Virginia Rural
Willis Johnson Oklahoma City

[code].....

View 1 Replies

Passing A Large Text Back To The Server?

Nov 10, 2011

I have a project now where I will have a large chunk of CSV text, like 60 lines or more, and need to pass that from the client to the server. I know it would be weird with GET, but how would I store the multiline text so that I could later split it up, etc at my application?

View 2 Replies

Use Of Backgroundworker While Open A Large Text File?

Apr 3, 2010

How to Use of Backgroundworker while open a large text file

View 3 Replies

[2008] Reading A Very Large Text File

Feb 1, 2009

The following code suppose to:

1. Read line-by-line a txt file with more than 500,000 lines, (each line 521 characters long)

2. extract an ID No from the line

3. query from a database for LCCIStatus

4. concatenate the value of LCCIStatus to the line

5. write the line to sample.txt

My problem is, this code works perfectly with the test file of 8000 lines but fail with the actual files which have over 500,000 lines. FYI, the test file contains data which I cut and paste from the actual file.

[Code]...

View 5 Replies

Coding A String For Dollar Amounts?

Sep 11, 2010

This is what I am to create: [URL]I am having trouble coding the String for the amounts in the listbox since VB doesn't allow the dollar sign "$".

View 2 Replies

Extracting String Or Set Of Emails From Large Group Of Text

Jun 6, 2012

Basically this is my problem, showing the results of a string. I am making a program for a customer and he wants to be able to extract a string or set of emails from a large group of text. In this case he wants to be able to copy a webpage and extract all the emails out of the webpage. The problem i am having is showing the results of the List(of string) Function. So far, I can copy the page, paste the content to a textbox and then i have a function that is supposed to filter out the emails and paste or Show them in a list box.

I dont know why but no matter what I do I always get this error:
Error1Value of type 'System.Collections.Generic.List(Of String)' cannot be converted to 'String'.
This happens when I try to output the return results to a textbox or list box.

Here is the code for the whole program:
Entire Program Code:
Imports System.Text.RegularExpressions
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code] .....

I have tried almost everything I could do, I am relatively new to string functions so that is my main problem.

View 11 Replies

Grab Specific Text From A Large Textbox Or String?

Mar 17, 2010

I have a text box that a bunch of information in it. Is there a way to grab specific text from a large textbox? Here is my example textbox and the text that is stored in it:

[Code]...

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved