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

Creating Form without Application.Run

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?
Nov 15 '05 #1
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.
Nov 15 '05 #2
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

Nov 15 '05 #3
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.
Nov 15 '05 #4

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

Similar topics

1
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...
1
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...
6
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."...
2
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...
8
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;...
7
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: ...
12
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"...
12
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...
0
Plater
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...
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
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
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...
1
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,...
0
isladogs
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...

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.