473,763 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

debug window on a form

I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks
Nov 12 '05 #1
4 4477
Hi,

What do you mean by "Debug window"
Immediate window? To be able to write there something like when you use
debug.print?

And what is the "Long process"?
A query which takes long time to run or some VBA code who does a lot of
processing?

In a query, you can use a custom function, but this usually is not
reccomended, because will make the query much slower. But this actually
depends on what you want.

The function you use in the query can update a label or the content of a
locked Edit box, which could behave somehow like Immediate window

Also, you can do the same if the long process is a VBA procedure or
function.

Also, you could use a Progress bar, to show your users how long
(approximativel y) the process has till it finish.

If you need more help on this, you can contact me.

Regards,
Bogdan Zamfir
_______________ _______________
Independent consultant
"Thomas Anderson" <th************ ****@hotmail.co m> wrote in message
news:3c******** *************** **@posting.goog le.com...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks

Nov 12 '05 #2
TC
Use a simple textbox!

' do some things.
me![txtStatus] = "I got here!" & vbcrlf & vbcrlf & me![txtStatus]
' do some more things.
me![txtStatus] = "Now I am here!!" & vbcrlf & vbcrlf & me![txtStatus]
etc.

Or, write a simple sub to which you pass the text, then the sub can add it
into the textbox.

HTH,
TC
"Thomas Anderson" <th************ ****@hotmail.co m> wrote in message
news:3c******** *************** **@posting.goog le.com...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks

Nov 12 '05 #3
th************* ***@hotmail.com (Thomas Anderson) wrote in message news:<3c******* *************** ***@posting.goo gle.com>...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks

Put in a text box with vertical scroll bars (just in case).

Set up a timer, and occasionally break out to write to the text box.

You may need to look at DoEvents etc.

HTH

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Nov 12 '05 #4
th************* ***@hotmail.com (Thomas Anderson) wrote in message news:<3c******* *************** ***@posting.goo gle.com>...
I would like to replicate the debug window on a form so I can easily
pass usefull info to users on long processes. Is there a simple way
to do this.

thanks


any reason you can't send the output to an unbound textbox on your
form, and then repaint the form?
Nov 12 '05 #5

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

Similar topics

1
2082
by: Robert | last post by:
Simple way of writing debug print statements in your JavaScript code. You need to have enabled popups in your browser. I liked the ability to write to the java console in Netscape 4.x. This, ability is missing in IE and the latest versions of Netscape. Maybe someone knows a better way and can improve on this code, the following JavaScript code demonstrates how to write debug statements in a JavaScript program. I sure lots of people...
3
8162
by: Mike Turco | last post by:
Is there a way to clear the debug window other than just sending a bunch of line feeds? Tanks -- Mike
2
1300
by: Buz Waitz | last post by:
When I try debugging a VB windows app in Visual Studio.Net I get the error, "Error whle trying to run project: Unable to start debugging. The Machine Debug Manager service is disabled." Help?
7
18797
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net 2003 The sample in the help file does not work. I tried now for days ... Pls could anybody post a sample, including necessary imports and so on -
1
1874
by: Adrian Constantinescu | last post by:
Hi, When a project VB.Net start, the output window if filled with this kind on informations: 'TextBox.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.3300.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded. 'TextBox.exe': Loaded 'c:\windows\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll', No symbols loaded.
5
3403
by: Billy | last post by:
Hi! How can I override "Debug.Writeline("Message")" so that will not show that msg in Debug window, but wrote it to a file. I already have a code to write to a file but I would like to use just "Debug" class (same name) for that. Inside of that code I will decide if I will wrote that message to debug window or to a file. I would like to use that two options: -Debug.Writeline("Message", 1) '1 is integer argument from 0-9...
7
1355
by: poppybush | last post by:
I'm just added a new form to my application for entering information to a database. To do this I did: Me.Hide() Dim Form1 As New Form1 Form1.Show() When I run debugger, test, and end the software (By clicking the X on the top right corner) the program ends. Well, when I go to debug mode I
2
2568
by: Johann Schuler | last post by:
Let's say I have a Person class with a private int age member variable. I have a get and set accessor for the Age property. When I am running the code in debug mode, I would like to have a debug window show me the value of age (rather than the value of the Age property). Is there a way to do this? Thanks!
2
9038
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to figure this problem out. Any suggestions? thanks Joel
0
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9389
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
10003
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...
1
9943
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8825
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5271
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...
0
5410
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3918
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
3529
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.