visual-studio-2010

Making buttons disappear depending on the size of a list

做~自己de王妃 提交于 2019-12-25 17:43:10
问题 I am trying to make a button disappear off the screen when the size of a list that is being filled by the user reaches a size of lets say 3 items. The button is for "adding a new person" but once the list is full i don't want that to be an option to add another person to the list. I have tried the following code but the program doesn't run Private Sub Form1_MouseMove(sender As Object, e As MouseEventArgs) Handles Me.MouseMove If inputNames.Count >= 3 Then 'inputnames is the name of the list

Exception when VS 2010 ASP.NET Development Server Serves Static Files

送分小仙女□ 提交于 2019-12-25 16:51:49
问题 I'm building an ASP.NET MVC 2 site with Visual Studio 2010 Beta 2. Out of nowhere none of my images or css started showing up. If I navigate directly to the resources in the browser I see this exception message: Specified argument was out of the range of valid values. Parameter name: utcDate Stack Trace: [ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: utcDate] System.Web.HttpCachePolicy.UtcSetLastModified(DateTime utcDate) +3038942 System

Why does Visual Basic allow Strings to be added to Integers in arithmetic statements?

一笑奈何 提交于 2019-12-25 16:30:12
问题 Recently, I've been covering data types in my programming course (teaching VB) and I've run into an interesting situation. While attempting to demonstrate a random number generator, I ran into the fact that my code was allowing for Strings to be used legibly in arithmetic statements. While I'm fine with it doing it, I'm wracking my brain as to the justification or the what is actually causing this to happen. Below are some examples of some code I built to test this: Public Class Form1 Private

Error in linking when converting Fortran to C (using f2c)

帅比萌擦擦* 提交于 2019-12-25 12:52:45
问题 I'm trying to build a project that is mostly C but has some Fortran subroutines. The code is old and I'm trying to make it work on modern machines. My main function calls an external function extern void __stdcall mainlhs(void); The function is a subroutine written in Fortan subroutine mainlhs I want to convert the Fortran code (which contains this and other subroutines) using f2c and put the result in my project. f2c does convert the code and the resulting C code does compile. When I try to

Error in linking when converting Fortran to C (using f2c)

别说谁变了你拦得住时间么 提交于 2019-12-25 12:52:12
问题 I'm trying to build a project that is mostly C but has some Fortran subroutines. The code is old and I'm trying to make it work on modern machines. My main function calls an external function extern void __stdcall mainlhs(void); The function is a subroutine written in Fortan subroutine mainlhs I want to convert the Fortran code (which contains this and other subroutines) using f2c and put the result in my project. f2c does convert the code and the resulting C code does compile. When I try to

Error in linking when converting Fortran to C (using f2c)

蹲街弑〆低调 提交于 2019-12-25 12:52:08
问题 I'm trying to build a project that is mostly C but has some Fortran subroutines. The code is old and I'm trying to make it work on modern machines. My main function calls an external function extern void __stdcall mainlhs(void); The function is a subroutine written in Fortan subroutine mainlhs I want to convert the Fortran code (which contains this and other subroutines) using f2c and put the result in my project. f2c does convert the code and the resulting C code does compile. When I try to

how to compile an expression blend solution in visual studio

好久不见. 提交于 2019-12-25 12:46:16
问题 weWithin our development environment we have VS2010 installed on my computer along with Expresison blend and silverlight4 tools. We have a separate build box where we compile and build the entire project. When running through the precompile I am receiving errors that references to the expression blend namespaces cannot be found. I assume this is due to the fact that expresison blend is not installed on the build box. What is the best practice to prevent this from happening in the future? One

Can't open my dbml file in Visual Studio 2010 anymore

吃可爱长大的小学妹 提交于 2019-12-25 12:08:20
问题 I've been working on a project for a while now. I hadn't touched it in a bit and when I came back to it and tried to open the dbml file, I'm getting this error. The 'Microsoft.VisualStudio.Data.Providers.SqlCompact.VsPackage, Microsoft.VisualStudio.Data.Providers.SqlCompact, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' package did not load correctly. The problem may have been caused by a configuration change or by the installation of another extension. You can get more

apply a template to a column of datagrid

扶醉桌前 提交于 2019-12-25 10:50:03
问题 I'm using MVVM and I want to apply a template to a specific column of my datagrid. I create Machine class which have Name, costs, properties. I create also Operation Class which have Name porperty, ExecutiveMachine property (Type : Machine) When I use itemsSource to display my list of opertations, I see the path of my machines whereas I want to display their name. I added DataGridTemplateColumn but now, I have machine column twice (one correct, and the other is incorrect) Actually my code is

How to make MSBuild correctly track files generated with an external tool across referenced projects?

a 夏天 提交于 2019-12-25 10:48:26
问题 I have MSBuild code that takes files with a particular Build Action ( CompileFoo in this example) and generates output files (with a different extension). This is the code I have so far: <Target Name="BuildFoo" BeforeTargets="Compile" Inputs="@(CompileFoo)" Outputs="@(CompileFoo -> '$(OutputPath)%(RelativeDir)%(Filename).bin' )" > <!-- makefoo doesn't know how to create directories: --> <MakeDir Directories="$(OutputPath)%(CompileFoo.RelativeDir)"/> <Exec Command="makefoo -o "$(OutputPath)%