473,320 Members | 1,804 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.

blank form when debugging

vb VS 2003
Hi all: thanks to all in advance for your responses.
my app displays the form , then when it reaches a debbuging point the form
is blanked, (it just shows the frame around the form) I need to see the info
that should be displayed . I tried me.refresh before the debugging point.
Q: 1. when the refresh actually refreshes the form?
Q: 2. what do i need to do to see my form at debugging time? (works in
normal mode)
the code is: when click a btn, does a loop to shk the database with a
System.Threading.Thread.CurrentThread.Sleep(3000) '3sec

Thanks


Mar 10 '06 #1
5 2373
raulavi wrote:
vb VS 2003
Hi all: thanks to all in advance for your responses.
my app displays the form , then when it reaches a debbuging point the form
is blanked, (it just shows the frame around the form) I need to see the info
that should be displayed . I tried me.refresh before the debugging point.
Q: 1. when the refresh actually refreshes the form?
Q: 2. what do i need to do to see my form at debugging time? (works in
normal mode)
the code is: when click a btn, does a loop to shk the database with a
System.Threading.Thread.CurrentThread.Sleep(3000) '3sec

Thanks


You can not break and see then form. The form need to call the paint
event in order to display the contents, since you have stopped the
execution, then it can't refresh. You will need to find some other way
to see the contents, such as looking at the form variables or don't do a
breakpoint.

Chris
Mar 10 '06 #2
At least...i should see what it was before stopping for debugging. correct?
why is blanked.

"Chris" wrote:
raulavi wrote:
vb VS 2003
Hi all: thanks to all in advance for your responses.
my app displays the form , then when it reaches a debbuging point the form
is blanked, (it just shows the frame around the form) I need to see the info
that should be displayed . I tried me.refresh before the debugging point.
Q: 1. when the refresh actually refreshes the form?
Q: 2. what do i need to do to see my form at debugging time? (works in
normal mode)
the code is: when click a btn, does a loop to shk the database with a
System.Threading.Thread.CurrentThread.Sleep(3000) '3sec

Thanks


You can not break and see then form. The form need to call the paint
event in order to display the contents, since you have stopped the
execution, then it can't refresh. You will need to find some other way
to see the contents, such as looking at the form variables or don't do a
breakpoint.

Chris

Mar 10 '06 #3
"raulavi" <ra*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:A1**********************************@microsof t.com...
At least...i should see what it was before stopping for debugging.
correct?
why is blanked.


It is blank because the program does not run if you go into debug mode. If
it does not run it also does not update the form's content.

Armin

Mar 10 '06 #4
Hi Raul
At least...i should see what it was before stopping for debugging.
correct?
why is blanked.


What do you want to "see" on the form ? If it is some value associated
with a control, I'm sure you can query that using the Command window.
Also, the Autos and Locals window show the values of variables in
neighbouring lines from the breakpoint.

Regards,

Cerebrus.

Mar 11 '06 #5
"Cerebrus" <zo*****@sify.com> schrieb
Hi Raul
At least...i should see what it was before stopping for
debugging. correct?
why is blanked.


What do you want to "see" on the form ? If it is some value
associated with a control, I'm sure you can query that using the
Command window. Also, the Autos and Locals window show the values of
variables in neighbouring lines from the breakpoint.


I also miss it sometimes because it was different in VB6. The reason is
that, using VB6, everything was running in the same process and the VB6
IDE/runtime was actually processing the messages. This includes painting the
Form. So, breaking meant that only the interpretion of the p-code by the
IDE/runtime has stopped but not the process itself (vb6.exe) has been
interrupted. Everything was under control of the IDE and the developers
(probably) decided what is safe to do even in break mode. Painting partially
was, handling click events, for example, was not. Now, in VB.Net, there are
running two different processes, and the own application is really
interrupted by a debugger.
Armin

Mar 11 '06 #6

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

Similar topics

11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
7
by: JDS | last post by:
Hi, all. I'd like to do the following, preferably *without* resorting to JavaScript: I have a long, dynamically-generated form questionnaire. Not all of the form fields are dynamically...
8
by: dmcconkey | last post by:
Hi folks, I have a client with four websites. Each site has a contact form that is identical. They all have "required" fields validated through a JavaScript onSubmit() function. Upon validation,...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
5
by: ChadDiesel | last post by:
My basic question is why does my print report button on my subform print a blank report when my cursor is on a blank entry line? Here is a more detailed explanation of my problem. I have a...
8
by: Doug Lerner | last post by:
I have this snippet of client side code running: var makeField = document.forms; alert("makeFieldName name,length,type=" + makeFieldName + ", " + makeField.name + "," + makeField.length + ","...
4
by: sparks | last post by:
I am trying to fix a database that someone did about 4 yrs ago in access97. The main table just contains demographics and is on the main form of the database. It has a subform on a tab that...
0
by: netlady | last post by:
Hi, can someone help me or share his or her idea why I am always getting a blank web page whenever I click the export button or the navigational next toolbar of the crystalreportviewer in .net ? I...
3
by: Harry2007 | last post by:
How do I get rid of the blank form that attach to the current form when you start to enter data into a continuous form? I want the blank form to only appear after they click on the ADD Record button...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.