I am converting a VB6 app to .NET Visual Studio 2005. I have about 20 forms. Ths app starts with Main_form, and then passes to a "loop" of about 14 forms that pass from 1 to another, with the possiblity of passing back and forth. The cylce can go on repeatledly without passing back to the "parent" form Main_form. My problem is everything flows along until I try to "repeat" the form.show/form.dialog. Then the form can't display, or I get the exception that says a resource has not been released. I've tried my.forms.userform1.show, my.forms.userform1.showdialog, each followed by me.close or without the me.close. It doesn't seem to make a difference. I can't dim a new form each time because the user is entering data as they go along and they want to "loop" thru to review what they've entered. I'm hoping that I'm doing something wrong. Any help would be appreciated greatly!!!
Thanks,
jlb
3 2054
I am converting a VB6 app to .NET Visual Studio 2005. I have about 20 forms. Ths app starts with Main_form, and then passes to a "loop" of about 14 forms that pass from 1 to another, with the possiblity of passing back and forth. The cylce can go on repeatledly without passing back to the "parent" form Main_form. My problem is everything flows along until I try to "repeat" the form.show/form.dialog. Then the form can't display, or I get the exception that says a resource has not been released. I've tried my.forms.userform1.show, my.forms.userform1.showdialog, each followed by me.close or without the me.close. It doesn't seem to make a difference. I can't dim a new form each time because the user is entering data as they go along and they want to "loop" thru to review what they've entered. I'm hoping that I'm doing something wrong. Any help would be appreciated greatly!!!
Thanks,
jlb
i suppose you would have one MDI form
Any forms to be opened in them should be as a show (rather than a show dialog)
but then any forms derived from these form should preferably be of showDialog, so that you can force the user to travel a certain path with your forms
and avoid spagetti, and even multiple forms editing values of the same exact row, even leading to concurrency issues
Have you also debugged ure application finding out where the errors are occouring?
cheers
i suppose you would have one MDI form
Any forms to be opened in them should be as a show (rather than a show dialog)
but then any forms derived from these form should preferably be of showDialog, so that you can force the user to travel a certain path with your forms
and avoid spagetti, and even multiple forms editing values of the same exact row, even leading to concurrency issues
Have you also debugged ure application finding out where the errors are occouring?
cheers
This is what happens:
I have a mainform. Then I have say subfrm1, subfrm2, subfrm3 etc. In mainform I code "my.forms.subfrm1.show". In subfrm1 I will have "my.forms.subfrm2.show", in subfrm2 I will do "my.forms.subfrm3" and then 3 will do "my.forms.subfrm1.show". Everything works until I try the my.forms.subfrm1.show from subfrm3. Then, subfrm1 will not dispay. I do a me.close each time after I do the .show. I've also tried .showdialog (with and without the close.) I hope that makes sense.
jlb
Hi
I tried replicating it, but the spegetti still works for me
Please go to subform3 and make sure that when u do subform1.show you do not do subform1.close ... this obvioulsy might be one of the reasons why subform1 dosent show up.
As far as your exception goes, I am unable to replicate it.
If you can replicate it in another test application let me know
cheeers
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Alpha |
last post by:
I have a Window based application that shows up still running in the task
manager when I close it. It reaches the "this.close" statement and then it
stops at the "}" at the section of the...
|
by: jmd |
last post by:
Hello.
I have downloaded and installed Visual Studio 2005 February CTP -- Professional Edition (English) from msdn.
All works fine (with a few bugs) except the Quickstarts.
The Quickstarts install...
|
by: Dr. Zharkov |
last post by:
Hello. To see the graphics of technology DirectX 9.0 SDK Update - June 2005
in project Visual Basic, WindowsApplication1 from Visual Studio 2005 Beta 1,
in file My Project, MyApplication.vb in a...
|
by: scorpion53061 |
last post by:
I have a request of Microsoft and I hope they see this.
I use Visual Studio 2005 Pro and WIN XP Pro with IIS 5.1
I have spent the better part of the last 2 weeks attempting to get my
ASP.NET...
|
by: cj |
last post by:
Lets just take this example I'm looking at now. I'm looking at the help
screen titled .NET Framework Class Library FolderBrowserDialog Class
. It gives an example at the bottom that begins with:...
|
by: Hexman |
last post by:
Hello All,
I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm
using some VB6 code, .Net2003 code,...
|
by: John Kotuby |
last post by:
Hi all,
I have experienced several problems after installing SP1 for Visual Studio
2005 Professional. The problems are occurring on 2 different Windows XP SP2
development machines that have been...
|
by: Brad Isaacs |
last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database.
I am using Visual Studio 2005 and developing on my Local machine. I am
working with Login controls ASP.Configuration, I...
|
by: =?Utf-8?B?TmFjaA==?= |
last post by:
Would like to see the Generated code in visual studio 2005 as I did in 2003
Example #Region #End Region
Under Public Class form1
I would like to see
Inherits system.windows.forms.form
Which I...
|
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: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: 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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |