4 Replies - 1343 Views - Last Post: 20 December 2010 - 03:42 PM Rate Topic: -----

#1 InsaneRhino  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 15
  • Joined: 24-November 09

Differences in visual studio and at runtime

Posted 20 December 2010 - 06:29 AM

Hello all.

I am having some problems with visual studio and my VB.NET application. When I'm designing the project in visual studio 2010 it looks one way, and then when I run the project it looks completely different.

The form does inherit from a "design" form that specifies the background color, but other components like MonthCalendars come out looking very different (see attached picture).

Any clues as to why this is happening, or how it can be fixed.

Thanks

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: Differences in visual studio and at runtime

#2 Amrykid  Icon User is offline

  • 4+1=Moo
  • member icon

Reputation: 148
  • View blog
  • Posts: 1,589
  • Joined: 16-December 08

Re: Differences in visual studio and at runtime

Posted 20 December 2010 - 07:26 AM

Both of those pictures come from the same computer? Are you sure your running the same exact EXE file?

The runtime picture looks like a skinned version with Visual Styles disabled.
Was This Post Helpful? 1
  • +
  • -

#3 InsaneRhino  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 15
  • Joined: 24-November 09

Re: Differences in visual studio and at runtime

Posted 20 December 2010 - 07:31 AM

Same machine. The one on the left is the view from within visual studio 2010, and the right is the view when running the solution (via the play button in VS2010).

I am not the only person to have worked on the project so I don't know if anything was changed. So how would one enable/disable visual styles?

Thanks
Was This Post Helpful? 0
  • +
  • -

#4 InsaneRhino  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 15
  • Joined: 24-November 09

Re: Differences in visual studio and at runtime

Posted 20 December 2010 - 07:56 AM

For reference, the option is in the project settings.
Was This Post Helpful? 0
  • +
  • -

#5 Amrykid  Icon User is offline

  • 4+1=Moo
  • member icon

Reputation: 148
  • View blog
  • Posts: 1,589
  • Joined: 16-December 08

Re: Differences in visual studio and at runtime

Posted 20 December 2010 - 03:42 PM

If the left is from the design view, that means, something is changing what it looks like at run time.

Could you check to see if anything is changing the background or a style property in your start-up code?
Was This Post Helpful? -1
  • +
  • -

Page 1 of 1