10 Replies - 618 Views - Last Post: 09 May 2013 - 06:54 PM Rate Topic: -----

#1 dshafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-May 13

vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 07:22 AM

I am working on a vb.net winforms application that compiles against the 2.0 framework. My issue is that I am running Windows 7 32 bit machine and my app works fine but when the code is copied over to a Windows 7 64 bit machine some of the controls on the form are strangely disabled. In Project Properties it is set to compile as x86 target. Has anyone experienced a similar problem and does anyone have an answer as to why I am having problems on the 64 bit machine?

Is This A Good Question/Topic? 0
  • +

Replies To: vb.net 32 bit to 64 bit controls disabled

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5513
  • View blog
  • Posts: 11,818
  • Joined: 02-June 10

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 07:48 AM

Never seen that before, and I've been making x86 apps to run on x64 machines for the last couple years (backwards compatibility for clients). Only difference is I code in C# to framework 4, but its still all .NET

By 'disabled' you mean still there, just greyed out so the user can't use the control, right? As if you had set .Enabled to false ?

This post has been edited by tlhIn`toq: 09 May 2013 - 07:49 AM

Was This Post Helpful? 0
  • +
  • -

#3 dshafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-May 13

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 08:20 AM

Yes, there are disabled as if we had code that was setting the .Enabled = true property.

I mean as if we were setting .Enabled = False

We tried deleted the .suo and .user files thinking something from my machine (32 bit) was affecting how it was building the project on his machine (64 bit) but no success
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5513
  • View blog
  • Posts: 11,818
  • Joined: 02-June 10

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 08:24 AM

Are you sure there isn't a method that disables the controls for some reason? Or maybe they start out disabled and get enabled by a method?

Maybe they start out disabled, then get enabled if the logged-in user has admin rights. If your enabling method fails they would then not get enabled.
Was This Post Helpful? 0
  • +
  • -

#5 dshafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-May 13

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 08:32 AM

Yes, I am sure that the controls defaults are set to enabled and that there is no code that disables the controls based on rights or anything else.

It doesn't make any sense to me why certain controls would be disabled just because we moved code from 32 bit machine to 64 bit machine. Maybe it doesn't have anything to do with that but we've checked other options in Visual Studio and haven't found anything that would explain the behavior.
Was This Post Helpful? 0
  • +
  • -

#6 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5513
  • View blog
  • Posts: 11,818
  • Joined: 02-June 10

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 08:45 AM

Solution corruption does happen.
Do you have an older version backed-up you can test?
If you take the solution and move it back to a 32bit machine what does it do?
How big is the solution? Maybe you should start a new one then copy/paste code from the old solution into a fresh (uncorrupted) solution. I know that can take a day - but if all this searching is eating a week, then a day isn't bad.
Was This Post Helpful? 0
  • +
  • -

#7 dshafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-May 13

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 08:58 AM

Yeah, that is a good point and probably our next avenue. The solution only has 6 projects so it shouldn't take too long to build it again from scratch. When I copy the solution back to the 32bit machine it works as expected still. Thanks, we'll try that.
Was This Post Helpful? 0
  • +
  • -

#8 m_wylie85  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 96
  • View blog
  • Posts: 899
  • Joined: 15-October 10

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 12:23 PM

Just wanted to throw this out there but i take none of the controls are 3rd party controls. I doubt they are just thought it was worth check this with you.
Was This Post Helpful? 0
  • +
  • -

#9 dshafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-May 13

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 01:05 PM

You are correct, the controls are standard winforms controls. That's for the suggestion though
Was This Post Helpful? 0
  • +
  • -

#10 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 03:16 PM

instead of compiling to x86 what happens if you set it to AnyCPU?
Was This Post Helpful? 0
  • +
  • -

#11 dshafer  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 09-May 13

Re: vb.net 32 bit to 64 bit controls disabled

Posted 09 May 2013 - 06:54 PM

It behaves incorrectly when compiled as AnyCpu also. We did try it on a different 64 bit machine and it behaved correctly so now we are trying to determine what is different about the other 64bit machine
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1