473,320 Members | 1,857 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,320 software developers and data experts.

Not reponsive form

I am developing a client/server application using VB.NET inVS.NET 2002. The client application have a form (Form A) thatquery the server application via Winsock and once Form Areceived the server's response (DataIn event) it launch Form Band hide Form A. The problem that I am having is that Form B isnot responsive after it's launched. What is the problem? Pleasehelp?

I tried launching Form B using a button in Form A and it worksperfectly. But Form B is not responsive when it's launched to inthe DataIn event, it's not responsive at all. Please help.

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>3EYp3emk0kyrVmt7MaItjA==</Id>
Nov 20 '05 #1
1 1057
Hi Albert,

This is probably because Form B is being launched on another thread. If so,
you'll need to add a method to Form A that launches Form B and then use
BeginInvoke from the Datain event handler. It would look something like
this:

In Form A

Public Sub ShowFormB()
Me.Hide
Dim fb as New FormB()
fb.Show()
End Sub

In Datain event handler

Me.BeginInvoke(New MethodInvoker(AddressOf Me.ShowFormB)

Hope this helps,
Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).

--------------------
From: Albert Chua via .NET 247 <an*******@dotnet247.com>
X-Newsreader: AspNNTP 1.50 (Matthew Reynolds Consulting)
Subject: Not reponsive form
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Message-ID: <##**************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
Date: Tue, 27 Apr 2004 17:49:22 -0700
NNTP-Posting-Host: 81-86-69-114.dsl.pipex.com 81.86.69.114
Lines: 1
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!tk2msftngp13.phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:198835
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I am developing a client/server application using VB.NET in VS.NET 2002. The client application have a form (Form A) that query the server
application via Winsock and once Form A received the server's response
(DataIn event) it launch Form B and hide Form A. The problem that I am
having is that Form B is not responsive after it's launched. What is the
problem? Please help?I tried launching Form B using a button in Form A and it works perfectly. But Form B is not responsive when it's launched to in the DataIn event,
it's not responsive at all. Please help.-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>3EYp3emk0kyrVmt7MaItjA==</Id>

Nov 20 '05 #2

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

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.