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

Issue with invincible form

I have got an issue with a subform of an application that I have.
Basically, the subform displays a crystal report, and this works fine - it's
just that when you want to close it, it won't close. Clicking its cross
button does absolutely nothing, neither does any method of trying to close
it other than ending its process. While this doesn't impair the
functionality of the app, it's slightly annoying - because while it's OK in
debug mode as you can just click stop, it's slightly annoying when it's in
release mode and installed, as it has to be killed via task manager. I can't
think why this is, other than wondering if it could be some unmanaged
skullduggery going on in the crystal report that somehow locks resources
that can't be ended. All the form does is have a crystal report viewer that
gets passed an instance of a crystal report to display in it by the main
form. The subform is invoked via ShowDialog, prior to which the main form is
hidden. It then shows its crystal report successfully and is otherwise is
responsive, although thereafter, it's impossible to get the subform to
close. Can anyone think why this is?
Nov 16 '05 #1
2 1035
Is the Closing event being used to cancel the close?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
I have got an issue with a subform of an application that I have.
Basically, the subform displays a crystal report, and this works fine - it's just that when you want to close it, it won't close. Clicking its cross
button does absolutely nothing, neither does any method of trying to close
it other than ending its process. While this doesn't impair the
functionality of the app, it's slightly annoying - because while it's OK in debug mode as you can just click stop, it's slightly annoying when it's in
release mode and installed, as it has to be killed via task manager. I can't think why this is, other than wondering if it could be some unmanaged
skullduggery going on in the crystal report that somehow locks resources
that can't be ended. All the form does is have a crystal report viewer that gets passed an instance of a crystal report to display in it by the main
form. The subform is invoked via ShowDialog, prior to which the main form is hidden. It then shows its crystal report successfully and is otherwise is
responsive, although thereafter, it's impossible to get the subform to
close. Can anyone think why this is?

Nov 16 '05 #2
No, on the contrary even. I can get it to fire, and I tried putting things in
there to force it to close, such as Application.Exit(), but to no avail. But
it's definitely not setting it to cancel the close.

"Bob Powell [MVP]" wrote:
Is the Closing event being used to cancel the close?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
I have got an issue with a subform of an application that I have.
Basically, the subform displays a crystal report, and this works fine -

it's
just that when you want to close it, it won't close. Clicking its cross
button does absolutely nothing, neither does any method of trying to close
it other than ending its process. While this doesn't impair the
functionality of the app, it's slightly annoying - because while it's OK

in
debug mode as you can just click stop, it's slightly annoying when it's in
release mode and installed, as it has to be killed via task manager. I

can't
think why this is, other than wondering if it could be some unmanaged
skullduggery going on in the crystal report that somehow locks resources
that can't be ended. All the form does is have a crystal report viewer

that
gets passed an instance of a crystal report to display in it by the main
form. The subform is invoked via ShowDialog, prior to which the main form

is
hidden. It then shows its crystal report successfully and is otherwise is
responsive, although thereafter, it's impossible to get the subform to
close. Can anyone think why this is?


Nov 16 '05 #3

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

Similar topics

5
by: VK | last post by:
Hello: We have a very long form in .Net - issue comes in when a user wants to submit the form, and due some of error checking we perform, like required fields left blank the form is not...
17
by: Danny J. Lesandrini | last post by:
The following code works with a standard MDB to navigate to a particluar record (with a DAO recordset, of course) but it's giving me problems in an ADP I'm working on. Dim rs As ADODB.Recordset...
5
by: Andrew Chanter | last post by:
I have a situation where I am using an unbound dialog form to update data in an Access 2002 split back end / front end scenario. The data update is done via an ADO call (direct to the back end...
6
by: Patty O'Dors | last post by:
I've got a program that contains a crystal report, and it has a function that saves off one report for each branch of the company, in a loop. This all works beautifully, however - if the user...
10
by: Li Pang | last post by:
Hi, I created a html page from which I give a link to another web site. The new site is opened in a new window. When I opened multiple windows, they all have the same SessionID. I want ot know...
1
by: Dominic via DotNetMonster.com | last post by:
With a little help from someone in this forum, I am currently creating forms and then embedding them into tabpages, so that I get a display similar to Lotus Notes. I have one container window, so I...
2
by: Sid Price | last post by:
Hello, I am having a problem with a windows form when controlling its visibility. My application has a form that displays a timing function. Normally the timing form is hidden. An object has a...
1
by: Ryan | last post by:
Hello. I was hoping that someone may be able to assist with an issue that I am experiencing. I have created an Access DB which imports an Excel File with a particular layout and field naming. ...
10
by: Miro | last post by:
I have created myself an issue, and perhaps my idea wasn't as bright as I thought it was originally. If someone can help me figure out what the correct train of thought should be - or if there is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
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
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...

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.