I would like to create form that simply hold textboxes that I log info to during the execution of a single-thread application. In Java, I found JFrame ideal for the task, but I can't recreate the same design with Forms. I can create the Form without Application.Run( ), but when debugging, I can't seem to see any text that gets AppendText'ed to the form. I've done some searching, but cannot find any samples or documentation that use Forms without passing control to the Form. Any help? 3 2523
JavaConvert wrote: I would like to create form that simply hold textboxes that I log info to during the execution of a single-thread application. In Java, I found JFrame ideal for the task, but I can't recreate the same design with Forms. I can create the Form without Application.Run( ), but when debugging, I can't seem to see any text that gets AppendText'ed to the form. I've done some searching, but cannot find any samples or documentation that use Forms without passing control to the Form. Any help?
When you change a interface object, typically it updates internal state and
then marks itself for repainting. Repainting then occurs whenever there is a
break in processing. If there is no break, then you won't see the UI update.
You can force UI controls to repaint now by calling Update(). Try this and see
if it fixes your problem.
Thanks for the help, but Update( ) had no effect
But I did discover a new clue. The textbox in the form IS getting updated with the AppendText, BUT it seems to clear itself when I click on the window during debug. By default, the form is getting created behind the VS.Net window during debugging. So when I reduced the size of the Visual Studio window so the form was visible at the time of creation - the text updates can be seen. But if I click on the form window - any text in the textbox disappears and any new text is not shown as I step through the code
So maybe it is a debugging option or window property that is to blame. Any help with that
----- Julie wrote: ----
JavaConvert wrote I would like to create form that simply hold textboxes that I log info to during the execution of a single-thread application. In Java, I found JFrame ideal for the task, but I can't recreate the same design with Forms. I can create the Form without Application.Run( ), but when debugging, I can't seem to see any text that gets AppendText'ed to the form. I've done some searching, but cannot find any samples or documentation that use Forms without passing control to the Form. Any help
When you change a interface object, typically it updates internal state an
then marks itself for repainting. Repainting then occurs whenever there is
break in processing. If there is no break, then you won't see the UI update
You can force UI controls to repaint now by calling Update(). Try this and se
if it fixes your problem
JavaConvert wrote: Thanks for the help, but Update( ) had no effect.
But I did discover a new clue. The textbox in the form IS getting updated with the AppendText, BUT it seems to clear itself when I click on the window during debug. By default, the form is getting created behind the VS.Net window during debugging. So when I reduced the size of the Visual Studio window so the form was visible at the time of creation - the text updates can be seen. But if I click on the form window - any text in the textbox disappears and any new text is not shown as I step through the code.
So maybe it is a debugging option or window property that is to blame. Any help with that?
While you are stepping through code w/ the debugger, the UI will essentially be
disabled. This is because when in break mode, the application is completely
stopped, and therefore cannot repaint itself.
If you are looking for diagnostic output during debugging, look into Trace and
related -- this outputs text to your debugger output window. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matthew Clubb |
last post by:
Hi,
I need help developing an expanding form
I've decided that a use of PHP, Mysql and Javascript is the best platform
for creating a selection of database interfaces which I'm trying to build...
|
by: JosR |
last post by:
Using: VB.Net, Framework 1.1, Windows XP SP2
Hardware: Pentium IV 3,1 GHz, 1 Gb RAM memory
The VB.Net application opens a child form as follows:
Private Sub OpenChildForm()
dim frm as new...
|
by: DraguVaso |
last post by:
Hi,
In my application, on some given actions while debugging in Visual Studio, I
suddenly get a "System.ComponentModel.Win32Exception was unhandled"
Message="Error creating window handle."...
|
by: Iain Miller |
last post by:
Now this shouldn't be hard but I've been struggling on the best way as to
how to do this one for a day or 3 so I thought I'd ask the assembled
company.....
I'm writing an application that tracks...
|
by: Nanda |
last post by:
hi,
I am trying to generate parameters for the updatecommand
at runtime.
this.oleDbDeleteCommand1.CommandText=cmdtext;
this.oleDbDeleteCommand1.Connection =this.oleDbConnection1;...
|
by: Zeke |
last post by:
I'm using the following code to create word document but the problem is if
you go to task manager you'll see a WINWORD.EXE process is running but not
the application, here is the code:
...
|
by: enak |
last post by:
I have found some code that shows how to convert an html
form to Word. The message said to simply put the following
in the Page_load:
Response.ContentType = "application/ms-word"...
|
by: Mats Lycken |
last post by:
Hi,
I'm creating a CMS that I would like to be plug-in based with different
plugins handling different kinds of content.
What I really want is to be able to load/unload plugins on the fly
without...
|
by: Plater |
last post by:
I have been trying to access a messageloop without opening a form.
That is, I want to be able to receive messages from other applications through the message loop without having a form.
I've read...
|
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
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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: 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...
| |