DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Error closing form with icon

  1. #1
    Join Date
    Mar 2008
    Posts
    7

    Error closing form with icon

    Hello!!

    I have an application which use MDI. I have set an icon in the title bar to all of them. The problem I have is that if I maximize any mdi child and then I close it, I get this error:

    Original (In spanish):
    No se puede obtener acceso al objeto eliminado.
    Nombre del objeto: 'Icon'.

    Translated:
    You can't access to the deleted object.
    Object's name: 'Icon'

    If I hide it (showicon=false) or I put the default Icon everything is ok. Any idea?

    Thanks for all!!

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Is this icon something you added? Is there code behind it?

  3. #3
    Join Date
    Mar 2008
    Posts
    7
    I added the Icon (a file .ico) using the Icon property of the form (with the Designer). The code generated in the Designer.cs is:

    this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

Similar Threads

  1. Pseudocode Problem
    By zobi316 in forum VB Classic
    Replies: 3
    Last Post: 03-10-2008, 07:05 AM
  2. Replies: 0
    Last Post: 01-17-2007, 11:38 PM
  3. Icon in address bar
    By Ali Imran in forum Web
    Replies: 4
    Last Post: 06-06-2002, 03:51 AM
  4. show icon of a borderless form in the toolbar
    By cyrille in forum VB Classic
    Replies: 2
    Last Post: 06-20-2001, 07:55 PM
  5. show icon of a borderless form in the toolbar
    By cyrille in forum VB Classic
    Replies: 0
    Last Post: 06-20-2001, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center