VS 2008 Faster Intervall
Apr 20, 2009I would like to know how cam i go faster than 1 interval? [code]
View 6 RepliesI would like to know how cam i go faster than 1 interval? [code]
View 6 RepliesI am currently exporting from a DataGridView to Excel by looping through all the rows & columns in the DGV, which is very slow when you have a lot of rows. Here is the code I currently use:
For i = 0 To Me.DataGridView1.Rows.Count - 1
For j = 0 To Me.DataGridView1.Columns.Count - 1
xlWorkSheet.Cells(i + 2, j + 1) = Me.DataGridView1(j, i).Value.ToString().Trim
Next
Next
Is it possible to export an entire row to excel, instead of having to do it one cell at a time? I'm just looking for ways to make the process faster.
I have a form with a background image and many checkboxes whose backcolor is set to be transparent.
View 5 RepliesSince i have a background on my progam it is very slow. You got a code to make it faster?
View 2 RepliesWhat faster methods are available for VB to access the internet?I.e. methods which are faster than simply using VB Browser, as people make web bots which access multiple sites quickly which I would imagine meant there is a faster way.
View 4 RepliesI have a function that I use quite a bit that I wrote more than 2 years ago. It works fine but recently I saw how it can use up a good deal of time under certain condition. Here's some code that uses the function SelectValue The function works so that if you had N which you plug into the function rising continuously while SelectLimit was set to 255 then SelectValue would match N until N reached 256. SelectValue would start to descend to 0 until it reached 0 and then it would again ascend to 255 and the process would repeat. So SelectValue(255, 255) would return 255 and SelectValue(256, 255) would return 254. SelectValue(257, 255) would return 253.
Option Strict On
Public Class Form1
Dim sw As Stopwatch
[code]....
The function works exactly as I want it to but if one of you knows a way to write this so that it will process faster then you can let me know. I get a result for processing time of 6.11 seconds on my computer for the above code.
I was just wondering if a computer would add two numbers together (positive) faster that comparing two numbers.
I was thinking that it would be comparison (best case) due to the fact that the 0th bits could be different right off the bat. Where as when adding, moving from bit 0 to N is mandatory for addition.
But then again a computer may add/compare differently than I am imagining.
I have a simple multithread application that stores updated data from a list of websites. After each thread gathers data, it then store the data into the same text file. I am now thinking of having each thread store the data directly into a arrayList, and after a certain amount of time past, store from the arrayList to the text file. Which situation would enable the application to complete its task faster?
View 1 RepliesYou'd think both are the same. But maybe it's the compiler that Microsoft has used, but I've noticed that when compiling two very small programs, identical logic. VB.NET uses more IL instructions.Is it true than that c# must be faster, if only because its compiler is smarter.
View 6 RepliesPossible Duplicate: Is C# faster than VB.NET? Which one is faster, C# or Vb.net ?
View 2 RepliesA long time a agp I settled into a listview as an indicating device. I do not use pictorial modes or graphics. Just listing and multicolumn listing.I am also a performance bug and I have written realtime monitors for monitoring cpu activity in real-time and normally rum them starting at bootime. Lately I have found that the listview throws away time. In a tight loop, the list view does not take all cpu time available and the listview is relatively slow.
Does anyone know of a control like the list views only it's faster? Multi-colored and multi-columned are musts.
I have a simple application, a form with two datepicker( Datepicker1 is for startsearchdate, while datepicker2 is endsearchdate) to filter out any record that not in the range. The source of the record is readed from a rtf file.The record is in format as showm below.[code]...
View 9 RepliesMy co-worker said that in a previous interview, he learned that foreach is faster in VB.Net than c#'s foreach. He was told that this was because both have different CLR implementation.
Coming from a C++ perspective, I'm curious on why this is and I was told that I need to read up on CLR first. Googling foreach and CLR doesn't help me understand.
Does anyone have a good explanation on why foreach is faster in VB.Net than in c#? Or was my co-worker misinformed?
I have a directory with more then 350.000 files in. I need to process every single file and move them to an other folder. When I use the dir() method it takes a few seconds before if it returns the first file found.
dim foundfile as string = dir("d:")
In the documentation there is this:
"The My.Computer.FileSystem Object gives you greater productivity and performance in file I/O operations than the Dir function. See My.Computer.FileSystem.GetDirectoryInfo Method for more information."
But I can't find any method that is faster then dir, and gives the same result. I can't use this method below because it takes for ever to load......
For Each foundFile As String In My.Computer.FileSystem.GetFiles("D:")
Next
It just does not work fast...
When I use the Dir() method it takes like 5 sec, and it uses 100% cpu... it is just not a option. How do I get the same function as the dir method but better performance? (I use visual basic 2008).
I create a CSV file by getting a datatable then looping through that datatable and writing eachline of a CSV file. My data source usually has around 65,000 rows in it. This process takes several minutes to download from the browser. The problem is that locally and on dev it doesn't take too long, but on the client they usually timeout.
Is there a faster way to generate this file?
Function GenerateCSVFile() As String
Dim stuPro As New studentProvider.StudentProvider
Dim emailCenter As New EmailCenter
[Code].....
I need to verify if a certain user exist on my asp.net site.I want to know if which of these two functions is more efficient, faster and better compared to each other and why.
[Code]...
I worked in a role and functioning properly. The problem is that it is a bit slow for use in many images would be very slow. I read online that with stride and scan0 and working in memory with buffer can be made faster, but i donīt understand anything . Does anyone know how it works or how to make my code run faster?
[Code]...
I'm converting a process from VB 6.0 to VB .Net. The process copies a table from one database table to another database. In many cases they are not linked so a "Select * into Table2 from Table1" is not a solution. Also the source table may be a temporary global table that has a unique structure. The current process reads the source table into an ADODB recordset, obtains the columns attributes to create a new table, creates the new table, builds insert statements from the source table, and then inserts the rows into the new table. I'd like to take advantage of any .Net features that may be more efficient than that. Can anyone point me in the right Direction?
View 1 RepliesI am loading images from the internet. I am using PictureBox1.imageLocation() but it takes a while to load the image. Is there a way i can load the images faster? it shows an error icon before it displays a picture...how can i get rid of that?
View 6 RepliesIm using RichTextBox from Visual Studio 2008 to show various RTF content and it is slow. I mean really slow. Is there any way to improve the loading speeds of LoadFile function?I tried to load directly from memorystream (without saving file to disk) but it's still slow.I read plenty info about how RichTextBox is slow and all. Has there been any improvements in Visual Studio 2010?
View 5 RepliesI'm receiving a lot of data at the rate of 19200. I'm using read byte to assemble a buffer and process it. When I receive certain data I need to reply to the sender. I noticed that my replies are not fast enough. So I did a test where I unplugged the sender and noticed I was still receiving data! That I found was because the serial port buffer still had data from the sender that I didn't process. Anyhow I'm using Visual Studio 2005, the serial port object. How can I process the data faster. Would something like SerialPort1.ReadExisting or ReadLine work faster?
View 4 RepliesI just wondering is there any faster way to save a data into a database. Lets just say i have a datagridview that contains 10,000 records. To save all of it you will use a loop right but it will take a several minutes or maybe a seconds. Same with a datatable right.
View 6 RepliesIs it possible to make a vb.net application faster Through code like using characters that the Computer already understands Like coding in certain areas through y x (math) etc. Will it be More faster since the compiler don't have to really do much work But its still must be VB.NET
View 19 RepliesOk well i have a code that makes a bitmap the size of 9000,9000 but it makes the program run so slow. how to make it run faster?
View 5 Replies*i have a vb.net application that plots 16 plots immediately, the plots data are realtime. the 16 plots must draw the points at the time they receive them (must be no delay), to do that 1- i made a timer with ticks at 50 ms.2- at each timer tick call the plotting function 16 times (with a graph name as parameter)like that:
[Code]...
What I'm trying to do is iterate through each pixel in a bitmap, and get the color value of each pixel.I've tried using .getpixel, but it's fairly slow. On a 640x480 image, it takes roughly .35 seconds to go through it. Which can add up if doing many pictures.
[Code]...
My application is very very speed esential and even a microsecond matters.I am using semaphore(1,1) at varios places. I think it can be easily converted into mutex.But I want to know if it will be advantageous or its one and the same thing as far as speed is concerned.
View 1 Repliesi have a program in VB.Net 2005 and my problem is that it runs very slow. I mean, it takes some time for the Form to be displayed even if it is not doing anything in the Form_Load event. Do all programs in VB.NET 2005 act like that? my programs in VB6 would display the Form instantly.
View 4 Repliesim making a program to "test darwinism" in C++ and im showing the results in a VB 2010 express app, the results consist of .800x800 bmp files displaying creatures eating , reproducing and evolving. the VB app only has a picture box and it changes the .image param in a timer so that it looks like a video : for example it reads : frame0.bmp then frame1.bmp etc. I get about 30frames seconds with this method (and alot of GB of .bmp files..)the .bmp files are read slower if they never have been read.. for example I get about 5frames/sec when im using new .bmp files while I get 30fps if the files have been read once.. only opening and closing the files doesnt make them load faster, I have to load the bitmap image. I noticed that opening the directory where the .bmp files are and letting windows make preview icons make them load faster too.. that looks weird to me.. something with indexing ?also , my c++ program which creates the .bmp files goes really fast for the 500first but then it becomes slower (even if It just writes black .bmp files in a closed loop). could it be that the hard disc gets overwhelmed by all the writing ?
View 8 Repliesin my project I insert values into a database, each value needs to be unique, currently I am using the following code to check for the value in the database before inserting, if it exists I loop back and generate another value and check again..
Dim SerialCount As Integer
SerialCount = 0
Dim con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:UsersMatt-ASUSDocuments im_db.accdb;Persist Security Info=False")
[code]....