Click here to Skip to main content
15,895,142 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Share (or import/export) a ComboBox between 2 forms? Pin
Luc Pattyn4-Sep-09 10:51
sitebuilderLuc Pattyn4-Sep-09 10:51 
GeneralRe: Share (or import/export) a ComboBox between 2 forms? Pin
Hurricane30005-Sep-09 1:32
Hurricane30005-Sep-09 1:32 
GeneralRe: Share (or import/export) a ComboBox between 2 forms? Pin
Luc Pattyn5-Sep-09 1:40
sitebuilderLuc Pattyn5-Sep-09 1:40 
QuestionStrange speed differences between Windows App & Console App Pin
Aaron @ Think Software3-Sep-09 19:23
professionalAaron @ Think Software3-Sep-09 19:23 
AnswerRe: Strange speed differences between Windows App & Console App Pin
Johan Hakkesteegt3-Sep-09 20:34
Johan Hakkesteegt3-Sep-09 20:34 
AnswerRe: Strange speed differences between Windows App & Console App Pin
N a v a n e e t h3-Sep-09 20:51
N a v a n e e t h3-Sep-09 20:51 
GeneralRe: Strange speed differences between Windows App & Console App Pin
Aaron @ Think Software3-Sep-09 20:56
professionalAaron @ Think Software3-Sep-09 20:56 
GeneralRe: Strange speed differences between Windows App & Console App Pin
Dave Kreskowiak4-Sep-09 2:20
mveDave Kreskowiak4-Sep-09 2:20 
oRiCLe wrote:
time is calculated by how long the program takes to run,


No, no, no. What methods are you USING to calculate the time? Not WHAT are you timing.


oRiCLe wrote:
in console mode the progress completes quickly, in windows form, the progress bar moves extremely slowly.


In the console app, there is no progress bar, so the thread isn't doing anything else. In your Windows app, the ProgressBar needs to be redrawn every time you update its value. So, if you're changing the value of the ProgressBar on every iteration of your calcuation, your slowing down your calculation speed dramatically since you're making a change to a property value and you're redrawing a control. Like Luc said, without seeing how you're doing this, we really can't tell you what you did wrong.


oRiCLe wrote:
Code snippets are hard as there would be pages of code to even make it all understandable if i did, but it is basically running an recursive sub, up to about 6 levels deep on approx 140 different values, sorting and allocating them around as necessary... then returning a collection of results


If the windows app is written properly, and you don't move the mouse while the app is running, there will be very little to no difference in speed between the two apps.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




AnswerRe: Strange speed differences between Windows App & Console App Pin
Luc Pattyn4-Sep-09 1:20
sitebuilderLuc Pattyn4-Sep-09 1:20 
QuestionSQL Query LTRIM Pin
C#Coudou3-Sep-09 18:14
C#Coudou3-Sep-09 18:14 
AnswerRe: SQL Query LTRIM Pin
C#Coudou3-Sep-09 18:49
C#Coudou3-Sep-09 18:49 
GeneralRe: SQL Query LTRIM Pin
Johan Hakkesteegt3-Sep-09 20:27
Johan Hakkesteegt3-Sep-09 20:27 
AnswerRe: SQL Query LTRIM Pin
Dave Kreskowiak4-Sep-09 2:14
mveDave Kreskowiak4-Sep-09 2:14 
Questionduplicate a toolstip Pin
valkyriexp3-Sep-09 14:01
valkyriexp3-Sep-09 14:01 
AnswerRe: duplicate a toolstip Pin
Dave Kreskowiak3-Sep-09 17:03
mveDave Kreskowiak3-Sep-09 17:03 
GeneralRe: duplicate a toolstip Pin
valkyriexp4-Sep-09 7:06
valkyriexp4-Sep-09 7:06 
GeneralRe: duplicate a toolstip Pin
Dave Kreskowiak4-Sep-09 10:02
mveDave Kreskowiak4-Sep-09 10:02 
QuestionUsing VB.Net 2008 with Access 2007 database on Windows Server 2008 Pin
abiemann3-Sep-09 9:25
abiemann3-Sep-09 9:25 
AnswerRe: Using VB.Net 2008 with Access 2007 database on Windows Server 2008 Pin
abiemann3-Sep-09 13:21
abiemann3-Sep-09 13:21 
GeneralRe: Using VB.Net 2008 with Access 2007 database on Windows Server 2008 Pin
εїзεїзεїз3-Sep-09 13:38
εїзεїзεїз3-Sep-09 13:38 
GeneralRe: Using VB.Net 2008 with Access 2007 database on Windows Server 2008 Pin
Dave Kreskowiak3-Sep-09 13:42
mveDave Kreskowiak3-Sep-09 13:42 
QuestionUnsure of phrasing, Subproperty? Pin
EliottA3-Sep-09 5:32
EliottA3-Sep-09 5:32 
AnswerRe: Unsure of phrasing, Subproperty? Pin
Henry Minute3-Sep-09 5:57
Henry Minute3-Sep-09 5:57 
AnswerRe: Unsure of phrasing, Subproperty? Pin
N a v a n e e t h3-Sep-09 5:57
N a v a n e e t h3-Sep-09 5:57 
GeneralRe: Unsure of phrasing, Subproperty? Pin
EliottA3-Sep-09 6:00
EliottA3-Sep-09 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.