473,396 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

need help on simple thread (simple I hope!)

Hello, i have a form with a text box on it. When the user does something on
the form, the data in this text box is passed to a function and the function
returns a dataset.

function foo (byval input as string) as dataset
....
end function
The dataset can be large so I want the UI to remaine responsive. I think
i've seen people say you have to do marshalling or somethign because you
have to pass data back? the dataset I mean. the dataset is not going to be
used to update the form's visual appearance , like i mean to populate a list
box.

can someone show me the code to do this?

thank you very much.

Nov 20 '05 #1
2 878
In article <40***********************@news.twtelecom.net>, - Dan - wrote:
Hello, i have a form with a text box on it. When the user does something on
the form, the data in this text box is passed to a function and the function
returns a dataset.

function foo (byval input as string) as dataset
...
end function
The dataset can be large so I want the UI to remaine responsive. I think
i've seen people say you have to do marshalling or somethign because you
have to pass data back? the dataset I mean. the dataset is not going to be
used to update the form's visual appearance , like i mean to populate a list
box.

can someone show me the code to do this?

thank you very much.


You only have to wory about that if you're going to be updateing the
form or it's controls from the other thread. If you're not then you're
home free :)

--
Tom Shelton [MVP]
Nov 20 '05 #2
great Tom. THanks. Do you think you could give me a quick code sample
please?

"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
In article <40***********************@news.twtelecom.net>, - Dan - wrote:
Hello, i have a form with a text box on it. When the user does something on the form, the data in this text box is passed to a function and the function returns a dataset.

function foo (byval input as string) as dataset
...
end function
The dataset can be large so I want the UI to remaine responsive. I think i've seen people say you have to do marshalling or somethign because you
have to pass data back? the dataset I mean. the dataset is not going to be used to update the form's visual appearance , like i mean to populate a list box.

can someone show me the code to do this?

thank you very much.


You only have to wory about that if you're going to be updateing the
form or it's controls from the other thread. If you're not then you're
home free :)

--
Tom Shelton [MVP]

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: adeger | last post by:
Having trouble with my first forays into threads. Basically, the threads don't seem to be working in parallel (or you might say are blocking). I've boiled my problems to the following short code...
16
by: Paul Rubin | last post by:
I'd like to have a function (or other callable object) that returns 0, 1, 2, etc. on repeated calls. That is: print f() # prints 0 print f() # prints 1 print f() # prints 2 # etc. ...
7
by: LeROY | last post by:
I need to output some related data tables as XML. I have my data adapters and my dataset with the relations defined. It is certainly simple enough to use the dataset.WriteXML function. However,...
7
by: Meya-awe | last post by:
If one calls Thread myThread = new Thread(new ThreadStart(ThreadProdure)) several times, will each time a new thread be created with each executing a different instance of the same procedure? or...
9
by: Tim | last post by:
if I start a thread mythread.start and then I click a button that has a do loop with no doevents in the loop, do loop until myval=true
3
by: ctbfalcon | last post by:
So I have a progress bar that I would like to be diplayed as the program is working on adding a network printer. I want to do this because while the program is "thinking" the user is not sure if...
5
by: Brian | last post by:
I have an file based asp.net application the creates a thread to do some background printing. It works fine but when the application is deployed on a web server, the following error occurs in the...
6
by: mstorkamp | last post by:
I need to evaluate simple arithmetic expressions. I wrote a quick and dirty program that allows me to enter dimensions off of a drawing, and based on global or local tolerances calculate an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.