473,800 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 889
In article <40************ ***********@new s.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.co m> wrote in message
news:%2******** *******@TK2MSFT NGP10.phx.gbl.. .
In article <40************ ***********@new s.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
2183
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 block and ensuing output. Seems like the output should be all interleaved and of course it's not. Running Python 2.2 from ActiveState on Windows XP (also doesn't work on Windows 2000). Thanks in advance! adeger
16
10658
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. There should never be any possibility of any number getting returned twice, or getting skipped over, even if f is being called from
7
318
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, this writes the data such that each DataTable in the dataset is written one after the other. This is not what I need. I do not need to be able to load this back into a dataset at a later time. The XML file and schema I generate will be used to...
7
1153
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 will the execution of the first ThreadProcedure be interrupted by the second and so forth? Is this the same for ThreadPool.QueueUsersWorkItem? If i want to use ThreadPool.QueueUsersWorkItem, how do i tell it never to expire since i want this...
9
1117
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
1463
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 it is locked up or actually doing somthing. So I wanted to start another thread (form3) with the progress bar on top of the main form (form1). So I have this. This is the button the kicks off the add printer function. which also starts the...
5
5749
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 thread when it accesses SQL: Login failed for user ''. The user is not associated with a trusted SQL Server connection. Note the blank user. It seems that the new thread does not have the credentials but looking at "Thread.CurrentPrincipal",...
6
4885
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 upper and lower limit to put in an inspection worksheet. When it asks for a dimension I would like to be able to type in something like: '(12.5+10)/2' or '150-3.45' What I'm looking for is a function along the lines of 'double
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7576
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.