visual-studio-2008

Cant connect application with connection string .\\Sqlexpress

99封情书 提交于 2019-12-23 04:52:02
问题 i am a beginner and using mircosoft Sql Server 2005. i connect with Server name : USER-PC on Windows Authentication. now this is creating a serious problem in my Windows Application. i want to use .\SQLEXPRESS in the connection string in my application but doing this creates an error saying: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL

Insert Macros Word 2010 into a Visual Basic 2008 Express Edition

对着背影说爱祢 提交于 2019-12-23 04:23:17
问题 I created a Macro with Microsoft Word 2010: Sub Macro1() Selection.WholeStory End Sub At the event Button1_Click I would execute the macro : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Selection.WholeStory End Sub I remember that Visual Basic 6 allowed to enter Macro object from Microsoft Application. Now with Visual Basic 2008 Express Edition? 回答1: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System

Make SpecFlow / Cuke4VS understand non-English .feature files

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 04:09:16
问题 I'm trying to use SpecFlow in our (Visual Studio 2008) project to define executable acceptance tests. It was a decision made by the dev team to use our native German as the language for the feature files - so we added this little snippet of config to our test project: <configuration> <configSections> <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/> </configSections> <specFlow> <language feature="de-DE" tool="" /> </specFlow> <

Wrapping Serialized Properties in Additional Elements with .NET XML Serialization

点点圈 提交于 2019-12-23 04:03:35
问题 I am using C# + VSTS2008 + .Net 3.0 to do XML serialization. The code works fine. Here below is my code and current serialized XML results. Now I want to add two additional layers to the output XML file. Here is my expected XML results. Any easy way to do this? I am not sure whether NestingLevel could help to do this. I want to find an easy way which does not change the structure of MyClass and MyObject. Expected XML serialization result, <?xml version="1.0"?> <MyClass xmlns:xsi="http://www

How do you deploy an ActiveX control for ie from a VS2008 project?

白昼怎懂夜的黑 提交于 2019-12-23 03:44:25
问题 What are the steps to deploying a project created in VS2008 (windows forms and c#) as a ActiveX control hosted in ie? I have a file uploader project that I want to be hosted on a webpage that users can navigate to, click 'trust this active x control' and the application runs on the page in the browser, just like a java application. To be clear, I'm not looking for ClickOnce (that is an installer) and I don't want the user to have to modify their .Net security or add a trusted site (so just

nHibernate & sqlite mappings

烈酒焚心 提交于 2019-12-23 03:23:35
问题 I'm having real problems with setting up nHibernate with sqlite. Here is the hibernate.cfg.xml file: <?xml version="1.0" encoding="utf-8" ?> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <session-factory> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property> <property name="dialect">NHibernate.Dialect.SQLite20Dialect</property> <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property> <property name=

“Error opening associated documents” message when loading VS

旧城冷巷雨未停 提交于 2019-12-23 03:17:21
问题 When loading up a solution in VS2008 I get this message: An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error. It shut down immediately the first time I opened it. The next time I opened it, VS popped up a message box but did not shut down at first; however, it did shut down when I clicked a usercontrol or ASPX page. How can I find which document is causing the

Visual Studio 2008 awful performance

不问归期 提交于 2019-12-23 03:14:08
问题 I have ported a piece of C++ code, that works out of core, from Linux(Ubuntu) to Windows(Vista) and I realized that it works about 50times slower on VS2008! I removed all the out of core parts and now I just have a piece of code that has nothing to do with the hard disk. I set compiler parameters to O2 in Project Properties but still get about 10times slower than g++ in linux! Does anybody have an idea why it is this much slower under VS? I really appreciate any kind of hint! Thanks, 回答1: Do

How to create full screen window with MFC?

…衆ロ難τιáo~ 提交于 2019-12-23 03:11:57
问题 I want to create full screen topmost (screen saver) window with MFC? How to create such full screen window in MFC? I tried to create win32 application and i am able to create fullscreen top most window but i want to create using MFC so later i can put different MFC controls on that window? Please help me. Thanks, Jim. 回答1: You should be able to adapt the example code here to do what you want: MSDN: Initializing a dialog box 回答2: I do it with a Dialog Box app. In the resource editor properties

.NET Drag and drop ; Show dragged borders or image such as Windows do

六眼飞鱼酱① 提交于 2019-12-23 03:10:23
问题 I was wondering if there is a way (there is always a way) or what are best approach you have to show either of the borders of my controls or an image of what user is currently draging and dropping? I only drag from within my own app so not from desktop. I would like to have somethings similar to : I used to try to manually draw lines to "fake" the fact that this is my control's borders and It works fine... but I had hard time showing them over others form's controls as this is a huge form