﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Getting Mainform to load in background</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 10 May 2026 03:26:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26148.aspx</link><description>[quote]I miss sample code in VB.NET. Very much.&lt;br&gt;
&lt;br&gt;
I find I have to convert everything manually (great for learning, bad for productivity) since the converters always get something wrong. [/quote]&lt;br&gt;
&lt;br&gt;
As Les and some of the other chimed in, Instant VB.NET is actually something that we use to convert projects over when we post them ourselves.  This is a great tool to have around.  That being said, though, I will try to be more in tune with this in the future. :)</description><pubDate>Mon, 22 Feb 2010 09:16:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost24530.aspx</link><description>Guys,&lt;/P&gt;&lt;P&gt;I hope I explain what I want to do correctly, forgive me if I don't. My app has a login form, and I would like the mainform to be loading in the background whilst the login form is present on the screen. Once a correct login is achieved, then the loading process to continue and display the main form.&lt;/P&gt;&lt;P&gt;My main form is shown immediately after the login form, except it starts to load there and it has a lot going on. I just kind of wondered if you did anything flashy like this in your medical app.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Geoff.</description><pubDate>Mon, 22 Feb 2010 09:16:41 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26143.aspx</link><description>Thanks Les, will keep this info safe, for when I decide to jump into C# seriously.</description><pubDate>Sun, 21 Feb 2010 12:38:32 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26142.aspx</link><description>I just&amp;nbsp;looked and it is only $179 too for &lt;EM&gt;Instant C#&lt;/EM&gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I&amp;nbsp;also checked to see what Les uses to show code in both VB and C# on his website articles&amp;nbsp;and noticed that&amp;nbsp;he mentions Tangible Software Solutions on his website as well.&amp;nbsp; It must be good!:cool:&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Sun, 21 Feb 2010 09:48:37 GMT</pubDate><dc:creator>Russell Scott Brown</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26140.aspx</link><description>Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; TangibleSoftwareSolutions.com sells Instant C# and Instant VB, software to convert VB to C# and vice-versa. I've used it&amp;nbsp;for years, even though I can write in both languages, and it does a remarkable job. VBConversions.net sells a slightly more expensive product, but Instant C# does a great job.&lt;/P&gt;&lt;P&gt;Les&amp;nbsp;</description><pubDate>Sun, 21 Feb 2010 07:40:02 GMT</pubDate><dc:creator>Les Pinter</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26139.aspx</link><description>[quote][b]Keith Chisarik (02/20/2010)[/b][hr]I miss sample code in VB.NET. Very much.[/quote]&lt;br&gt;
&lt;br&gt;
Me too :D, but every where I turn, I see more and more C# samples, books, articles than VB.NET, probably with VS2010 will be easier to start working with C# even though I do like VB a lot (humm, I never though I would say that, being a VFP developer for so many years :w00t: )</description><pubDate>Sat, 20 Feb 2010 21:19:44 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26138.aspx</link><description>I miss sample code in VB.NET. Very much.&lt;/P&gt;&lt;P&gt;I find&amp;nbsp;I have to convert everything manually (great for learning, bad for productivity) since the converters always get something wrong.</description><pubDate>Sat, 20 Feb 2010 10:50:48 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26137.aspx</link><description>Yeah, Thanks Edhy.</description><pubDate>Sat, 20 Feb 2010 10:31:58 GMT</pubDate><dc:creator>Russell Scott Brown</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26136.aspx</link><description>Thanks Edhy! :)</description><pubDate>Sat, 20 Feb 2010 09:43:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost26132.aspx</link><description>Hi Trent,&lt;br&gt;
&lt;br&gt;
Thanks a lot for this sample.  Since it is in C# I took the liberty to manually translate it to VB and it was a good learning experience, specially with the VB equivalent function for the C# Lock.&lt;br&gt;
&lt;br&gt;
I simply added a VB project to the current solution and some copy/paste :D.&lt;br&gt;
&lt;br&gt;
Enjoy!&lt;br&gt;
&lt;br&gt;
P.S.&lt;br&gt;
To save some space you may want to remove your zip above since mine have the C# as you posted plus the VB.</description><pubDate>Fri, 19 Feb 2010 19:29:37 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost25082.aspx</link><description>Nothing is coming immediately to mind here, but the whole purpose of the splash screen is to run threaded.  So it sounds like there could be a treading issue within your configuration.</description><pubDate>Fri, 30 Oct 2009 12:57:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost25075.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I did some more testing and I found out&amp;nbsp;couple of&amp;nbsp;things&amp;nbsp;that might be causing&amp;nbsp;the strange behavior. It&amp;nbsp;seems to occur only with a frameless form as with a splash screen&amp;nbsp;when running the app&amp;nbsp;in Debug mode in the IDE.&amp;nbsp; And the behavior seems to be somewhat sporadic when I play with the StartPosition property of the &amp;#119;indow.&amp;nbsp; It seems to run fine in the release version.&amp;nbsp; Please don't waste much time on this unless you know what is happenning.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff</description><pubDate>Fri, 30 Oct 2009 10:57:50 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost25070.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I converted your splash screen example to VB.NET and got it working and added to my program.&amp;nbsp; However, I ran into a very strange bug.&amp;nbsp; If I use the splash screen when starting the application, the images in my list view boxes do not show up.&amp;nbsp; Obviously, if I don't use it, they show up fine.&amp;nbsp; Do you have any idea what is going on?&lt;IMG title=Crazy src="http://forum.strataframe.net/Skins/Classic/Images/MessageIcons/Crazy.gif" align=absMiddle&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jeff</description><pubDate>Fri, 30 Oct 2009 09:58:32 GMT</pubDate><dc:creator>Jeff Pagley</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost24583.aspx</link><description>Glad to help :)</description><pubDate>Tue, 08 Sep 2009 16:32:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost24569.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Thanks for this, indeed the process isn't too complex. What was giving me the headaches really was the fact that my splashscreen is also my login screen, so I needed the application to kind of pause until a valid login was provided. What I did was invoke my splash-login using the normal SF methods, then invoke a new version of the form using your example but one that was reduced in size, hiding the login details, but displaying label message so the updates could be seen.&lt;/P&gt;&lt;P&gt;This works really well thanks for the assistance.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Geoff Hirst</description><pubDate>Tue, 08 Sep 2009 06:08:54 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: Getting Mainform to load in background</title><link>http://forum.strataframe.net/FindPost24560.aspx</link><description>I have posted a sample on how to create a threaded splash screen that does exactly what you want.  At some point we plan on creating a template for both VB and C# to do this easily as this really is such as easy thing to implement once you know what to do.  This sample is in C#, but it should get you going whatever the case may be.  Hope this helps! :)</description><pubDate>Mon, 07 Sep 2009 11:42:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>