473,750 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Visual Studio 2005 Forms.Show and Forms.ShowDialo g

2 New Member
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.userfo rm1.show, my.forms.userfo rm1.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
Sep 27 '07 #1
3 2079
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
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.userfo rm1.show, my.forms.userfo rm1.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
Sep 27 '07 #2
jlb
2 New Member
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.subfr m1.show". In subfrm1 I will have "my.forms.subfr m2.show", in subfrm2 I will do "my.forms.subfr m3" and then 3 will do "my.forms.subfr m1.show". Everything works until I try the my.forms.subfrm 1.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
Sep 27 '07 #3
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
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
Sep 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
5496
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 following code after the "Application.Run(new VMSMain());": static void Main() { Application.Run(new VMSMain()); }
1
1522
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 without problems. I have 2 questions : 1. When I launch the Quickstarts, I only see : -------------------------------------------------------------------------------- Microsoft .NET Framework SDK QuickStart Tutorials
0
1516
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 method: <Global.System.Diagnostics.DebuggerStepThrough()> _ Protected Overrides Sub OnCreateMainForm()
9
7827
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 projects to work. Just a simple hello world. Since installing the 2.0 of the framework, localhost no longer works on IIS. localhost is required for (at least it appears so) for the ASP.NET development server to function. Actually I take that...
6
2327
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: ' The following example displays an application that provides the ability to ' open rich text files (rtf) into the RichTextBox. The example demonstrates ' using the FolderBrowserDialog to set the default directory for opening files. ' The...
53
4750
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, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating records that have a '99' in them (it is similar to a CSV file). Some of my concerns are:
1
1600
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 serviced packed. I am working on an ASP.NET 2.0 Web Application in Visual Basic. 1. Publicly declared user controls on the Master page are no longer being recognized by Intellisense. Webforms that were created before SP1 are still working fine...
4
2215
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 wanted to move my work and needed to place it on the server. Using VS 2005 , went to BUILD -Publish Web Site Checked the box for :: Alow this precompiled site to be updatable.
3
2844
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 don't see currently
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8260
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6804
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.