473,320 Members | 2,202 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.

Modless Form - How???

I'm trying to create a modeless form with one textbox on
it and one progress meter. Nothing else. I am not
passing it any parameters. It will be called from a
module which is the startup object. I have the following
statements in the module:

Friend form as New Form1

form.txtMessage.Text = "Displayed Text here .."
form.pbar1.Value = 0
form.Show()

When I run it, just the form displays, but not the
controls. All the controls display fine using ShowDialog,
but I need the form to be modeless.

Thanks for any help.

Nov 20 '05 #1
5 1007
"KenR" <an*******@discussions.microsoft.com> schrieb

Friend form as New Form1

form.txtMessage.Text = "Displayed Text here .."
form.pbar1.Value = 0
form.Show()


form.Refresh
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "KenR" <an*******@discussions.microsoft.com> scripsit:
I'm trying to create a modeless form with one textbox on
it and one progress meter. Nothing else. I am not
passing it any parameters. It will be called from a
module which is the startup object. I have the following
statements in the module:

Friend form as New Form1

form.txtMessage.Text = "Displayed Text here .."
form.pbar1.Value = 0
form.Show()

When I run it, just the form displays, but not the
controls. All the controls display fine using ShowDialog,
but I need the form to be modeless.


The code should work. Which code are you executing directly after the
call to the 'Show' method?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
I just go on to process a text file. I want to refresh
the screen every 100 records as to the progress. In VB6,
there was the DoEvents but I can't seem to find the
correct .net statement which can be called by the module.
-----Original Message-----
* "KenR" <an*******@discussions.microsoft.com> scripsit:
I'm trying to create a modeless form with one textbox on it and one progress meter. Nothing else. I am not
passing it any parameters. It will be called from a
module which is the startup object. I have the following statements in the module:

Friend form as New Form1

form.txtMessage.Text = "Displayed Text here .."
form.pbar1.Value = 0
form.Show()

When I run it, just the form displays, but not the
controls. All the controls display fine using ShowDialog, but I need the form to be modeless.
The code should work. Which code are you executing

directly after thecall to the 'Show' method?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
.

Nov 20 '05 #4
* <an*******@discussions.microsoft.com> scripsit:
I just go on to process a text file. I want to refresh
the screen every 100 records as to the progress. In VB6,
there was the DoEvents but I can't seem to find the
correct .net statement which can be called by the module.


'Application.DoEvents'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
<an*******@discussions.microsoft.com> schrieb
I just go on to process a text file. I want to refresh
the screen every 100 records as to the progress. In VB6,
there was the DoEvents but I can't seem to find the
correct .net statement which can be called by the module.


Have the IDE search for DoEvents and you will find Application.Doevents.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

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
8
by: Bruce A. Julseth | last post by:
With VB.NET, how do I define a form to be Modal? Thank you.. Bruce
1
by: bhappy | last post by:
Hi I want to close a modeless dialog window on the click of submit button .During click of submit button i am saving data to database and Postback the data entered in child window to parent...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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: 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

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.