473,396 Members | 1,892 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.

Form communication, run time!!

VJ
Private Sub GetData()

'Starting to fetch Master Data Set
dsData = GetDataSet()

'Show Cancel dialog form
frmCancel.show()

For each dtRow in dsData.Tables(0).Rows

if frmCancel.CancelClicked then 'CancelClicked is a
property in the frmCancel, it is set when cancel is clicked in the frmCancel
Exit For
end if

'Get Detail DataRow...

Next dtRow

'End Data Fetch
'Commint and Display data...

End Sub

The above code perfectly works when complied and run from VS Studio(Debug
mode)... , but when I run as a exectuable, I am not able to click on the
cancel button on the frmCancel. The whole screen is locked until the GetData
is finished...

What do I do?

VJ
Nov 21 '05 #1
2 891
"VJ" <vi********@yahoo.com> wrote in
news:u4**************@TK2MSFTNGP15.phx.gbl:
The above code perfectly works when complied and run from VS
Studio(Debug mode)... , but when I run as a exectuable, I am not able
to click on the cancel button on the frmCancel. The whole screen is
locked until the GetData is finished...

What do I do?


Put the function in it's own thread.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #2
VJ,

Are you sure it is running in debugging mode, I tested your sample and it
does exactly what you told it is doing in exe time when I have it in
debugmode.

Sollutions, add a thread as told or not so nice an application.doevents.

I hope this helps?

Cor
Private Sub GetData()

'Starting to fetch Master Data Set
dsData = GetDataSet()

'Show Cancel dialog form
frmCancel.show()

For each dtRow in dsData.Tables(0).Rows

if frmCancel.CancelClicked then 'CancelClicked is a
property in the frmCancel, it is set when cancel is clicked in the frmCancel Exit For
end if

'Get Detail DataRow...

Next dtRow

'End Data Fetch
'Commint and Display data...

End Sub

The above code perfectly works when complied and run from VS Studio(Debug
mode)... , but when I run as a exectuable, I am not able to click on the
cancel button on the frmCancel. The whole screen is locked until the GetData is finished...

What do I do?

VJ

Nov 21 '05 #3

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

Similar topics

3
by: Dan | last post by:
Question on how to do this. I'm trying to make a script that has 3 text fields in a form. When a start time is entered in a text field in the form the other 2 fields display the time with a set...
0
by: Jack | last post by:
I am trying to diagnose some partitioned db performance problems and am trying to figure out how to measure how much time is spent on communicating between the nodes. I'm seeing long execution...
1
by: Ben S | last post by:
we have a webapp using form authentication, and the time out is set at 120 minutes, so whenever a session is idle for > 120 minutes or so, it will make the user sign in again. This seems to be...
14
by: foxchan | last post by:
A Newbie question. Is it possible? Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim oNewForm As Form1 'if already create a form...
4
by: MSSQLServerDeveloper | last post by:
VB.Net >> Can someone give me some insights as to communicating info between 2 forms. Generically, I have the following - 1 form with a datagrid which is the result of a search operation. ...
4
by: Bremanand | last post by:
Hi..Am doing Retailer software using VB 6.0 with ms-access.. Actually i have many form(sales entry form,purchase entry form ,stock form, etc..) in my project which all are in MDI except Log in...
6
by: barisbasar | last post by:
Hi All, I have a problem about my form. My aim is to get total time spent on, before saving the record to the database on a form. I used the time function when the form loads and save it to the...
4
by: hzgt9b | last post by:
Using VS2005, VB.NET, I have am developing a windows app that has a login form. This login form can be called by several classes. When the login form is able to verify that the supplied credentials...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
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,...

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.