Disappearing Toolstip
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Disappearing ToolstipExpand / Collapse
Author
Message
Posted 05/16/2008 10:08:32 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:42:08 PM
Posts: 595, Visits: 11,248
I have a base maintenance form that has a only a single GradientFormHeader and ToolStripContainer controls. Very sporadically the MaintenanceFormToolStrip disappears at runtime from my forms, and when I check the line below has been deleted from the designer file and I have to add it, then it is OK for a while. Any ideas?

Me.ToolStripContainer1.TopToolStripPanel.Controls.Add(Me.MaintenanceFormToolStrip1)

So it looks like this:

MYBASE - Inherits MicroFour.StrataFrame.UI.Windows.Forms.StandardForm

MYMAINTBASE - Inherits MMYBASE

frmSomething - Inherits MYMAINTBASE (funky behavior described above)

Post #16404
Posted 05/16/2008 10:20:00 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:13:06 AM
Posts: 4,104, Visits: 4,176
So the MaintenanceFormToolstrip is on your base form and then it disappears from the inherited form?  This is funky if this is the case!  Actually, even if it is being removed from the base form, this is still strange behavior.  I have seen .NET do some things like this when the InitializeComponent() method is either a.) not called from a New b.) additional logic is be added to a load event of some type (i.e. Load, OnCreateControl, etc) and the Me.DesignMode is not being taken into account (in this case something that should only be done at run-time). 

I have seen these types of things interfere, so that is where I would start to look...otherwise, well, more digging will be involved

Post #16407
Posted 05/16/2008 10:23:58 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:42:08 PM
Posts: 595, Visits: 11,248
It is being removed from the inherited form.
Post #16408
Posted 05/16/2008 10:45:47 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:13:06 AM
Posts: 4,104, Visits: 4,176
That is really strange.  The designer file of the child should not actually show the MaintenanceFormToolstrip...does it end up in there?
Post #16412
Posted 05/16/2008 12:14:06 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:42:08 PM
Posts: 595, Visits: 11,248
The MaintenanceFormToolstrip is not on my base, it is on the child form and is periodically removed from the designer and I have to readd it, it just happened, I ran the form about 25 times and it was fine, the 26th it was gone from the designer file and had to be re-added. I hadnt touched the form between runs, I was just doing testing with data.
Post #16416
Posted 05/16/2008 12:38:25 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 11:13:06 AM
Posts: 4,104, Visits: 4,176
This is one of those things that I cannot give a straight answer on.  This is not going to be SF related but .NET and designer serialization related....without actually reproducing this I really don't know what to tell in order to work through the issue.  I have seen some of these serialization issues in the past, but they have generally all been environment related...and they are all different
Post #16417
Posted 05/16/2008 12:44:54 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 10:42:08 PM
Posts: 595, Visits: 11,248
Fair enough.
Post #16418
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:53pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.