VS 2008 Use Icyculyr's High Speed Syntax Coloring?

Aug 30, 2009

How would I use his code and get it to work with a RichTextBox when a button is clicked?

View 1 Replies


ADVERTISEMENT

.net - High Speed Circular Buffer?

Jun 8, 2012

I have been asked to improve the memory efficiency of an application that is used for high speed data acquisition. After running the VS memory profiler several times and scanning the projects for obvious issues I came to the following conclusion: despite using a fixed size circular buffer for storing acquired sample points, the RAM usage increases relative to the polling period. For example: polling data for one signal at 2 microseconds can use 5 times more memory (private bytes) than when running at 50 microseconds ... even though the buffer size is the same.

The circular buffer is an array of SamplePoint objects. Each of these objects contains an array of Shorts (16 bit) for corresponding data per signal and one date object (8 bytes) for the time stamp. For efficiency, the circular buffer is Redimmed only once every time it begins polling and filled with empty sample points which are then "assigned".

Also, it seems that when we stop and run the application it hogs even more memory each time as though the Redim is not releasing the previous array. My questions boil down to the following: What is most memory efficient way of implementing a circular buffer containing managed objects which have arrays?Also, how and why is memory usage increasing with a fixed size array with different polling speeds? Does the garbage collector not have time? Do local variables get disposed of IMMEDIATELY when a sub or function exits?These are some of the doubts and concerns that I would like to rule out before proceeding.

[Code]...

View 1 Replies

High Speed Socket Communication In .NET?

Aug 9, 2009

I'm having some doubts on which communication protocol/platform would be better for my current development. The focus is on communication performance, and while reliability matters, I can handle a some packet loss. UDP sounds like the correct choice, but then the following question came up:

"What would be better, using a UDP socket directly in .NET, or using a UDP socket implemented in unmanaged C++ with a wrapper to .NET?"I'm quite sure that C++ is faster than .NET, and while the communication might be faster, I'm not sure if that performance improvement is not lost with all the C++-to-.NET wrapping?

Some info about the project I'll be using this on:

- The core of the project will be all made in VB.NET.

- There'll be a high packet sending/receiving volume (about 100-200/sec).

- There'll be many clients requesting data to the server.

- Network communication will be over a GB-LAN.

- Data is time sensitive, and some packet loss is accepted.

- Running on .NET 3.5.

View 3 Replies

Basic Syntax Highlighting Is Coloring Stuff After Instance?

Apr 1, 2011

Dim listbox1 As New ListBox
listbox1.Items.Add("<br/>")
Dim int As Integer = 0
Dim line As String = RichTextBox1.GetLineFromCharIndex(RichTextBox1.SelectionStart)
For Each item In listbox1.Items
[Code] .....
My coding selects an item from the list box and tries to color the words in the currently selected line, however, it often colors characters that come after the instance. Why is this happening?

View 2 Replies

Coloring Syntax In RichTextBox Using System.Web.RegularExpressions.AspCodeRegex?

Feb 14, 2011

I was wondering if it was possible to colorize syntax of, say HTML, inside of a RichTextBox by comparing each word in the current line of text against the collection of words in System.Web.RegularExpressions.AspCodeRegex? I'd imagine that from this question it would be possible?

View 3 Replies

VS 2008 Advanced Text Coloring: RTF Processing?

Apr 18, 2011

Rather complicated question here. I am improving the text coloring in my custom RTB ontrol, and it is pretty simple:Quote:1. Disable drawing (SetDrawing(False))2. Get current selection
3. Select lines to colorize4. Process selection RTa Font object.

View 2 Replies

VS 2008 VB 2008-Coloring Text In A Node?

Jul 12, 2010

I am trying to color the text in a node in a treeview using Visual Basic 2008. I can easily do this by using the forecolor property (currentNode.ForeColor = Color.Red). The tricky part is that I want to color the text within the same node different colors. Here is an example of the string I want to color...

strStatus = "ReleasedGN, EditYW, StopperRD"
currentNode.Nodes.Add(strStatus)

I use the codes GN, YW, RD to indicate what color I want the text to be. I want the status Released to be colored Green, etc...

Is there a way to color the text within the same node different colors?

View 2 Replies

Coloring Of User Types In Visual Studio 2008 And The Future 2010?

Oct 8, 2009

I have an issue with Visual Studio's support for coloring User Types in VB.NET, I'm an C# developer that have been forced to code in Vb.NET by political rules in my organization, and I really misses the support for coloring user types in Vb.NET, I had hoped that this would be solved in Visual Studio 2010 and well in the beta they have added Vb.NET User Type coloring, but the coloring is the same for all user types I cant't have one color for interfaces and one for classes and so on.

View 3 Replies

VS 2008 High And Low Levels

Dec 15, 2009

whats the difference with high and low level of programming

View 1 Replies

VS 2008 Progressbar Value Going To High

Jul 12, 2009

I made a game and i made a hp bar.So i made a Heal button but when the value is more then the Maximum value it crash.Any way to fix that? Like something to bypass that go go back to the Maximum Value?

View 7 Replies

Check Internet Speed - Download A File Like 1mb Size, Then It Will Calculate The Speed?

Feb 21, 2012

How do i exactly check internet connection speed.I have searched around google and found out a method w/c will Download a file like 1mb size, then it will calculate the speed.

View 1 Replies

Check The Bandwidth (download Speed And Upload Speed) Of A User In .net Or Php?

Dec 31, 2010

how do i check the bandwidth (download speed and possible upload speed) of a user in vb.net or php that uses my app or visits my site resp?

View 1 Replies

VS 2010 Calculate DownLoad Speed And UpLoad Speed Kb/s And Graph

Nov 30, 2010

I have a codes that calculates DownLoad speed and UpLoad speed kb/s. I would like to implement this kind. I also want to put such kind of graph. Any article or links where can I start building my own like that.

View 2 Replies

VS 2008 Coloring Excel Sheet - Efficient Way In Order To Provide The Colored Excel Output?

Dec 19, 2011

I have to provide an Excel file as an output. I have to color some of lines and make them bold.The input is based on a dynamic list (in memory) and it also could be based on CSV file that I'm already provide today (based on the same dynamic list).I'm wondering what would be the most efficient way (in terms of performance) in order to provide the colored Excel output?Should I export directly from dynamic list into Excel - or - Should I export from CSV into Excel ?

View 7 Replies

Calculate Internet Download Speed And Upload Speed

Jul 29, 2009

i want to monitor the speed at which my system is currently Downloading and uploading. I dont have any idea how will it can be done.

View 6 Replies

VS 2008 : Why Does CPU Usage Jump So High When A WebBrowser Control Is Navigating To A Page

Jul 26, 2009

Why does CPU usage jump so high when a WebBrowser control is navigating to a page?Is there a way to drop CPU usage?

View 17 Replies

Check For The Lan Speed And Put This Speed Value In A Progress Bar?

Jan 4, 2012

i want to check for the lan speed and put this speed value in a progress bar.

for example:

[==== ] the lan speed now is 23 KB/s

and there is another problem is if there are a LAN and a WiFi adapter in the same time how do i check for the speed for both adapters

View 1 Replies

Speed Up VB 2008/VB2010?

Apr 26, 2012

-Add /nosplash to shortcut by right click short cut, click properties and in target, put a space and add it.

-Disable F1. (Environment->Keyboard)
-Disable "Animate environment tools" (Environment->General).
-Disable Start Page (Environment->Startup).

[code].....

View 9 Replies

VS 2008 Key Repetition Speed

Nov 20, 2009

Say you press and hold down a letter on your keyboard. The first letter gets added, there is a delay and then it repeats quickly on screen. Is it possible to skip this delay and go straight to the repeating part? I realize this might not be a visual basic question as much as a windows question, but if there is some way of toggleing it through my program, or using a workaround, i would like to hear the alternatives ^^ Setting the windows setting to fastest still has a small delay and others users would still experience it on other computers.

View 1 Replies

VS 2008 Speed Up Application?

Jan 26, 2010

My application works fine.However, I am connecting to 5 DBF files and the queries are very slow.[If I copy the DBF files to the local hard drive everything runs fast enough. 30-40 seconds vs. 1-1.5 minutes]The DBF needs to stay on the network.I am hoping that using the index will speed things up enough.Can anyone tell me how or give me a code example on how to index on DBF files?

View 14 Replies

Coloring String.Format?

Aug 29, 2011

I have this to append a text to a richtextbox

RichTextBox1.AppendText(String.Format("{0,-11}{1,-18}{2,-10}{3}", "[" & Now.ToLongTimeString & "]", "SergeMorel", "∙ Some Text Here", Environment.NewLine))

It's for an irc client. It appends the text users send or receive.How do I color for example, the time in a color & the user in a different color, etc...

View 18 Replies

Coloring Text Within A Label?

Feb 28, 2011

I�ve a label which displays a time counter as follows:

Me.label.text = �Hrs: � & myH & � Mins: � & myM & � Secs: � & myS

The line:

Me.label.ForeColor = Color.Red

Changes the color of the entire text to red.

I�d like the letters H, M and S to be of different colors. I know I could set up three different labels and color them but I was wondering if exists a trick which allows me to change colors with the same label.

View 2 Replies

Conditional Coloring Of Textboxes

Jul 24, 2009

I have some textboxes on a report in VB 2005. There are three "Status Types": A, B and C. I want an expression like this to work on a number of textboxes:

[Code]...

View 3 Replies

Richtextbox Text Coloring?

Jun 23, 2009

i'm working on a project app to help me color code my html snippets. i'm not being able to figure out how to change the color of this line when selecting text :

<font color=blue> synthax helper </font>

to look like this:

<font color=blue> synthax helper </font>

as far as i can get it to change the selection color is this:

<font color=blue> synthax helper </font>

here's what i have in code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
RichTextBox1.SelectionColor = Color.Blue
RichTextBox1.SelectedText = "<font color=blue>" & RichTextBox1.SelectedText & "</font>"
End Sub

View 20 Replies

VS 2010 Richtextbox Coloring?

Aug 19, 2011

I have a program that appends text to a richtextbox.I do it like this :RichTextBox1.AppendText("[" & Now.ToLongTimeString & "] <" & Username & "> : Hello World !" & vbNewLine)

I know the username.Now, I searched google to color the username (the text between '<' & '>').It works, for the first line at least.As soon as I add another line, only the first line stays colored.How would I do that so it colors every line?

View 15 Replies

Way Of Coloring Certain Text In A Richtextbox?

Apr 25, 2011

Is there an easier way to color certain tags like: <html>, <h1>, <body>, etc?I would like to make an html editor and i would like to know if anyone out there has a VB10 Example of a text highlighter When the text changes.

View 1 Replies

Increase Speed Of Execution In .NET 2008?

Aug 10, 2009

i am trying to complete a project. My task is to read large TXT files (300 files, 2.2 GB in total) read the customers inside, perform some data calculation and write each customer data to a separate txt file.

I made a code in VB6, it runs fine, however it takes 8 days to run on a quadcore processor, utilizing 20-30% of the CPU. Now I upgraded the code and am running on VB.NET 2008, the latest version. The speed still remains the same, and the CPU usage is also about the same.

Anyway I can make this process faster. I have a quadcore PC with 8GB of ram, possible to maybe make VB utilize all the CPU say 100%? so it executes atleast 2 to 3 times faster.

[Code]...

View 15 Replies

VS 2008 : Speed Up The Loading Of The Form?

Aug 12, 2009

A button click event on my main form calls:

frmPanelSchedule.Show()

In the frmPanelSchedule form's load event I am loading 84 labels, 84 comboboxes, 420 textboxes, and 84 buttons.

The form takes a long time to load.Is there a way to speed up the loading of the form?

Private Sub frmpanel1Schedule_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' create pole labels
lblPole(1) = New Label
With lblPole(1)

[code]....

View 5 Replies

VS 2008 Control The Download Speed?

Mar 5, 2010

Is it possible to control the download speed in vb.net

For example if the client downloading speed is 45kb per sec can i change to 40kb per sec.

i want this to only effect my application and not the web browser or any other applications.

View 5 Replies

VS 2008 Format Command - Speed?

Jun 22, 2009

I want to convert a file to binary code by byte, but it's extremely slow for large files. I found out that the Format command is why it's so slow, is there a substitute?

vb.net
For i As Integer = 0 To bytes.Length - 1

[code].....

View 1 Replies







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