Hi
I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is
Nothing Then, but it does not work.
Thanks
Regards 4 1063
"John" <jo**@nospam.infovis.co.uk> schrieb I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is Nothing Then, but it does not work.
You can not check it, but when the execution of the next line starts, the
previous one must have been executed. Sorry, I don't find the right words
because I don't understand the problem.
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html
I create and show a form then I hide it instead of closing it. The next time
I want to see if it already exist in that case I don't re-create it using
the New frmMyForm instead only show it. If I am not able to check if it
already exists then I will always end up creating a new instance.
Thanks
Regards
"Armin Zingler" <az*******@freenet.de> wrote in message
news:eB**************@TK2MSFTNGP12.phx.gbl... "John" <jo**@nospam.infovis.co.uk> schrieb I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is Nothing Then, but it does not work.
You can not check it, but when the execution of the next line starts, the previous one must have been executed. Sorry, I don't find the right words because I don't understand the problem.
-- Armin
http://learn.to/quote http://www.plig.net/nnq/nquote.html
Can't you just use a try catch statement?
try
frm.visible = true
catch
frm = new frmMyForm
msgbox "New Form Created"
endtry
or something similar to this?
Shawn Shelton
John wrote: I create and show a form then I hide it instead of closing it. The next time I want to see if it already exist in that case I don't re-create it using the New frmMyForm instead only show it. If I am not able to check if it already exists then I will always end up creating a new instance.
Thanks
Regards
"Armin Zingler" <az*******@freenet.de> wrote in message news:eB**************@TK2MSFTNGP12.phx.gbl...
"John" <jo**@nospam.infovis.co.uk> schrieb
I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is Nothing Then, but it does not work.
You can not check it, but when the execution of the next line starts, the previous one must have been executed. Sorry, I don't find the right words because I don't understand the problem.
-- Armin
http://learn.to/quote http://www.plig.net/nnq/nquote.html
Sorry for answering late. I thought I've already sent the reply. I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is Nothing Then, but it does not work.
You can not check it, but when the execution of the next line starts, the previous one must have been executed. Sorry, I don't find the right words because I don't understand the problem.
I create and show a form then I hide it instead of closing it. The next time I want to see if it already exist in that case I don't re-create it using the New frmMyForm instead only show it. If I am not able to check if it already exists then I will always end up creating a new instance.
Ahh, I see now. You want to know whether the statement has already been
executed previously.
Usually writing
If frm Is Nothing then
should do the job. As you wrote it doesn't work, I guess you declare "frm"
locally?
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Bob |
last post by:
Declaring a module level form object in multiple froms
within a project to show another project form causes a
stack overflow and other assorted errors. Can anyone help?
|
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...
|
by: Altramagnus |
last post by:
I have a form first created my the main thread.
I have another thread monitoring the IO.
Upon receiving certain message, I want to show/unhide the form.
When the form is first created ( handle...
|
by: Sgt. Sausage |
last post by:
Problem. Work-around. No issues, just looking to see
if I'm the only one that's seen this.
I just lost 3 hours (shoulda found it sooner) to the
InvokeRequired on a form being somewhat...
|
by: http://www.visual-basic-data-mining.net/forum |
last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to
textBox2 in form2.....
That means after i fill in any data in textBox1 and click Next button...
It will bring me to...
|
by: Roemer |
last post by:
Hi all
I stumbled over a new problem:
I have a programm with just a class that is asynchronous listening for
network connections. As soon as someone connected, a new form needs to be
created....
|
by: garyusenet |
last post by:
Dear Professionals,
I have recently been using the wonderful krypton toolkit and am trying
to use them in my small hobby application. I include this bit of info
as an aside really because i'm...
|
by: TheDataGuy |
last post by:
Using MS ACCESS 2002
I developed a FORM, and within that FORM, I created and added a SEARCH BUTTON, and then I created a SUB-FORM, so that when an the END USER clicks on the FORM it will POP-UP...
|
by: Angelo |
last post by:
Hi all,
I'm using a FileSystemWatcher to monitor a directory. I want the FSW
to pop up my already instantiated but invisible form.
However, I'm running into some problems with this.
1) In...
|
by: Mike |
last post by:
Hi,
I have a form with some controls, and a different class that needs to
modify some control properties at run time.
Hoy can I reference the from so I have access to its controls and...
|
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: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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: 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: 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...
| |