CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Form not being displayed?

    Ok this is the weirdest thing that I have ever had happen! In my project I have a form that I have named frmSetting. I call this with frmSetting.Show vbmodal. Now this works absolutely fine in the development environment and when compiled (exe) on the machine I used to create it. When I transfer the exe to another machine everything works except for this one form not showing its self. I have done tons of tests to see how far it was getting and It just seems that the one line of code "frmSetting.Show vbmodal" is not being executed at all. No errors or anything are arising. Thanks in advance for any ideas!

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

  2. #2
    Join Date
    Mar 2001
    Location
    Toronto, CANADA
    Posts
    16

    Re: Form not being displayed?

    okay... i am not sure if this is what you are looking for but i'm gonna try and help anywayz..

    if your form is not showing up when you run your project, go to the "Project" menu > "Project Properties" > change the "Startup object" to the form name that is not showing up.

    [n]Shaikh
    |Buy low - hold - prosper|

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Form not being displayed?

    This may not help at all, but your form may be hiding behind other forms.
    Try playing with
    1). BorderStyle
    2). Visible and
    3). WindowState properties

    John G

  4. #4
    Join Date
    Feb 2000
    Location
    OH - USA
    Posts
    1,892

    Re: Form not being displayed?

    Ok, the problem was this. I had an image on the form. The Image1.DataFormat was set to something other than Picture and this caused the form to be unusable!

    Good Luck,
    Craig - CRG IT Solutions - Microsoft Gold Partner

    -My posts after 08/2015 = .NET 4.x and Visual Studio 2015
    -My posts after 11/2011 = .NET 4.x and Visual Studio 2012
    -My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
    -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
    -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
    -My posts before 04/2007 = .NET 1.1/2.0

    *I do not follow all threads, so if you have a secondary question, message me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured