Click here to Skip to main content
15,910,234 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Question.NET MODBUS component Pin
Dwayner7924-Oct-05 6:45
Dwayner7924-Oct-05 6:45 
AnswerRe: .NET MODBUS component Pin
Joshua Quick24-Oct-05 15:34
Joshua Quick24-Oct-05 15:34 
GeneralRe: .NET MODBUS component Pin
Dwayner7925-Oct-05 7:00
Dwayner7925-Oct-05 7:00 
QuestionRemote calls for a 3-Tier application Pin
Nito Jose24-Oct-05 3:55
Nito Jose24-Oct-05 3:55 
QuestionHow do I erase SQL Connections? Pin
Isobar24-Oct-05 2:18
Isobar24-Oct-05 2:18 
AnswerRe: How do I erase SQL Connections? Pin
rwestgraham24-Oct-05 9:09
rwestgraham24-Oct-05 9:09 
QuestionCancable DB-request Pin
evertbylt24-Oct-05 1:33
evertbylt24-Oct-05 1:33 
AnswerRe: Cancable DB-request Pin
S Douglas24-Oct-05 23:50
professionalS Douglas24-Oct-05 23:50 
evertbylt wrote:
I'm filling a dataset from db and a datagrid from the dataset in my application


Where is the bottle neck at? Is it pulling the data from the db or adding that information to the data grid?

If the bottle neck happens while pulling data from the database, step through your code. There is a problem with the query / stored procedure.

More than likely the problem is with adding the data to the grid, again start debugging why is it taking so long? What are you doing with that’s overly complicating the process?

evertbylt wrote:
Have tried with delegates and threads and i don't seem to make it work. (The idea is to flash a form to the user with an abort button) This abort button will prefferably exit the db request.


You could always (this is VB.NET right) start a thread have it pull the data and post messages to the grid adding the text that way. In your little cancel dialog send the worker thread a message to stop sending data out and clean up after it self.

Hope that helps…




DEBUGGING : Removing the needles from the haystack.
GeneralRe: Cancable DB-request Pin
evertbylt25-Oct-05 2:46
evertbylt25-Oct-05 2:46 
GeneralRe: Cancable DB-request Pin
S Douglas25-Oct-05 3:27
professionalS Douglas25-Oct-05 3:27 
GeneralRe: Cancable DB-request Pin
evertbylt25-Oct-05 4:08
evertbylt25-Oct-05 4:08 
GeneralRe: Cancable DB-request Pin
S Douglas25-Oct-05 4:27
professionalS Douglas25-Oct-05 4:27 
QuestionTiny OS, with RFID and Network OS Pin
cloudking1196623-Oct-05 22:33
cloudking1196623-Oct-05 22:33 
QuestionTAPI Pin
kachonk23-Oct-05 20:24
kachonk23-Oct-05 20:24 
QuestionVB for Excel Pin
Niros8123-Oct-05 20:16
Niros8123-Oct-05 20:16 
AnswerRe: VB for Excel Pin
kjmorford1-Nov-05 5:30
kjmorford1-Nov-05 5:30 
QuestionConvert date milady to shamsi in vb6 Pin
seYd106123-Oct-05 19:34
seYd106123-Oct-05 19:34 
AnswerRe: Convert date milady to shamsi in vb6 Pin
Christian Graus23-Oct-05 19:35
protectorChristian Graus23-Oct-05 19:35 
AnswerRe: Convert date milady to shamsi in vb6 Pin
Greeky23-Oct-05 21:49
Greeky23-Oct-05 21:49 
QuestionUnicode problem Pin
ybasha23-Oct-05 17:31
ybasha23-Oct-05 17:31 
AnswerRe: Unicode problem Pin
Gavin Jeffrey24-Oct-05 3:38
Gavin Jeffrey24-Oct-05 3:38 
GeneralRe: Unicode problem Pin
ybasha24-Oct-05 15:57
ybasha24-Oct-05 15:57 
GeneralRe: Unicode problem Pin
Gavin Jeffrey24-Oct-05 23:28
Gavin Jeffrey24-Oct-05 23:28 
GeneralRe: Unicode problem Pin
ybasha25-Oct-05 0:10
ybasha25-Oct-05 0:10 
QuestionUnicode problem Pin
ybasha23-Oct-05 17:27
ybasha23-Oct-05 17:27 

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.