Danny Fürniß's Q&A profile
Windows Forms copy file from CD
i'm want to copy file from CD to HDD and my code works fine 1st time but when i try to copy the same file 2nd time it doesn't work because the file is "read only" so how can i fix it my code Try Dim myfile As New System.IO.FileInfo("d:\filename.mdb&quo ...Show All
Visual Basic Inheritance run amuck!!!
I use CodeDom classes and VBCodeProvider to generate code and create assemblies. After the upgrade to Visual Studio 2005 Beta 2, I started getting the following error. Class '[ class name ]' must either be declared 'MustInherit' or override the following inherited 'MustOverride' member(s): Note that there is no member name following the error message. If I create a project and add the generated files to the project, it compiles fine. Is this a possible bug Please help. Thanks... I'm now having the same problem as well. I've started with a class derived from UserControl and marked as MustInherit, calle ...Show All
Windows Forms Finding the primary key# from a combobox or listbox selection
I have a basic app(VB 2k5) that reads a sql mobile database. I do not want the user to see a datagrid thus i am using listboxes,comboboxes and textboxes for input/output. The problem lies when i want to delete a record, i plan on doing this by getting the primary key of the record to be deleted, the problem is the selected value property does not translate into a primary key index.How can i get the primary key of a selected record I have tried the adding 1 to the selected value but if you delete a record life becomes difficult.My problem compounds itslef in the fact i have multiple tables and i need to delete the associated records in them a ...Show All
Visual Studio Team System MSBUILD : Warning : Visual Studio Team System for Software Testers is required to run tests as part of a Team Build
I have a Team Foundation Server. I am running the Build from my workstation. I have Visual Studio 2005 Team Edition for Software Developers version 8.0.50727.42 (RTM.050727-4200). When I run my Build Type which is configured to execute a test, I get the following warning: MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build. I've done some research and some folks have said that you absolutely need Visual Studio Team System for Software Testers for this to work. We only have Visual Studio Team Editon for Software De ...Show All
Visual Studio Express Editions SQL Server 2005 Express - Missing File
Hello All It seems I have a missing file in my Server 2005 Express install. When I click the new query button in the Management Console it says it can't find a file called sqlfile.sql in C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SsmseeTemplates\Sql\. Sure enough, the file isn't there. Where did it go Where can I find this file Am I going to have to reinstall SQL Server to fix the problem. God I truely hope not. Please help me out here if you can. Please send your replies to vscurtis@sbcglobal.net. Thanks Shane I was missing the sa ...Show All
Visual Studio Team System Work Item Tracking Across Branches
How does Team System handle WorkItem cloning/linkage across branche . The best example of this is QA tracking bugs that have been fixed in an earlier release and retesting in the current release. For example: an issue is found in version 1.0 which is in production. An incident is logged -The incident is fixed in 1.0.1 -Source changes are merged into main branch /trunk -2.0 is created from /trunk How does QA track that the incident from 1.0.1 needs to be retested in the main branch(hence 2.0) Is there a clone of this incident created. Is there a relationship created between the work item and the new branch Is this complete ...Show All
Visual Studio CVS and Source Control Plug-Ins
Hey all, I have been using a CVS-NT server installed on a Windows Server 2003 box for source control. I was also using the PuskOK CVS-SCC proxy plug in (from www.pushok.com ) to access the repository from the IDE on a networked WinXP machine, and access the repository using sspi and windows authentication. It worked well under VS2003. I have not made any changes (indeed, it still works well under VS2003), but VS2005 Team System does not remember that I am using the PushOK proxy when I restart the IDE, it will not bind back to the CVS repository for source control when I open the project from my local checked out version, it will no ...Show All
SQL Server sql server express loses ability to write to database
After a period of use (typically 1-2 hours), an application using SQL Server Express stops writing to the database, whilst still continuing to read from it. As far as I can tell, no error message is generated by any operation. The application is written in VB Express and is executed on several machines, with SQL Server Express on a central machine. Re-starting the application on the affected machine restores normal operation. The problem on one machine does not cause a similar problem elsewhere at the same time (hence it appears to be an issue with the relationship between the application and SQL Server) This does not appear to ...Show All
.NET Development Automation in C++ in .net
I'm trying to have VBA code in Excel call a method inside a dll of mine. I want the method to be able to modify the excel spreadsheet. I use GetActiveObject() to get the current Excel Application. I know that I'm definetly getting the object since I can change it's visibility property. However, when I try to do things like Add a workbook nothing happens, and when I try to modify a cell, I get an exception inside excel. My code works without a .dll - that is I can use a Windows Form Application to GetActiveObject(), modify it however I like, even save it and close it. Any ideas on how to change my .dll This is what my .h file looks like: ...Show All
SQL Server SSIS custom component will only partially update in VS causing debugging to fail
When I try to debug the break points will always say the source code is different from the current version, but the custom component in the GAC has the new version number. The other strange thing is the toolbox will not reset to the original version meaning it will not remove the custom components. The funny thing is after I compile the custom components and restart VS the custom component runs with the new code changes. I can see the new features I added, but the debugger and toolbox still seem to be broken. I have tried the following 1) Reset the tool box. 2) uninstall all my custom dll from the GAC “C:\WINDOWS\assembly ...Show All
Software Development for Windows Vista Beta 2 Changes
Hi to all. You've write about that there will be some major changes in beta 2 of the WF. So could you post some list with these changes. What will be added to the WF framework in beta2 Also will there be more MSDN documentation when beta2 ships in January We will publish this in January when WF Beta 2 is released. There will be more documentation, more samples and updates to existing samples. Regards, Paul ...Show All
Visual Studio Versioning in AssemblyInfo.cs
Is it possible to get MSBuild to insert a version number from a file into AssemblyInfo.cs without writing my own task to regexp the file (the [assembly: AssemblyVersion("[Version]")] string) We currently have a system whereby a pre-build event fires a vb script, taking a file $(ProjectDir)/presub/AssemblyInfo and searching for our string [MyVersion], replacing it with a value from version.txt (keeping version numbers under our control and the same across projects). It then dumps the output into $(ProjectDir)/AssemblyInfo where the build picks it up. Cheers Kyle There is currently no automated mecha ...Show All
Visual Studio Team System Installation error : "...error occurred during the login process..."
Hello, I have selected SQL Server and Windows Authentication Mode and the Login properties ->Status section for the new SQL login is set to "Enable". I work with Windows 2003 Server (without domain), SQL Server 2005 during installation of TFS i get the following error in "msi log file": ================= Is WSS Installed : True ConfigDBName : Not Available ConfigDBServer : Not Available Virtual Server State: NeedExtend AdminApPoolName: StsAdminAppPool VSApPoolName: Not Available AdminPort: 10885 ContentDBName: Not Available ContentDBServer: Not Available ====================================================== ...Show All
Visual C# Access a SAMBA share via C#
A search for "SAMBA" in this forum returned no results, so I am assuming that this question is not already covered somewhere else... I am trying to programmatically access a Samba share from a C# application. Is there any way to facilitate this using C#/.NET Or is the only option here to write a Win32 Shell app or dll Any guidance is appreciated... Thanks, Outsideshot I need to enumerate shared resources on remote computer, but without using WMI. ...Show All
Visual Studio Team System WebTest
Hi. i have problems with the webtest My application generates unique codes at the moment to fill a questionnaire each time to access At the moment to execute the TestWeb, i have an error, because the unique code captured in the moment to generate the test no match with the generated by the test execution. What must i do to change that code dinamically Thanks Hi, You need to extract the unique code by using extraction rules and pass this value everytime you run the webtest. Check this for more details on extraction rules http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=211951&SiteID=1 Hope this helps y ...Show All
