Xena Systems Limited's Q&A profile
Windows Forms Datagrid for multiple tables
I have a dataset of four tables (actually more than that but for simplicity now) and let's say its table names were A,B,C,D. I put a relation between table A and B and another relation between C and D. I made two datagrids in the VS designer. The first datagrid (which has datasource=ds, datasmember=ds.A) is OK for showing plus sign in front of each row of table A and when I opened this plus sign it showed the relation and child rows from table B. It worked as intended. But when I made another datagrid (datasource=ds, datamember=ds.C), it didn't work in a same manner. This second datagrid showed the plus sign in front of ...Show All
Visual Studio Team System Difficulties in getting Code coverage information
I am testing ASP.NET web controls and am facing difficulties in getting code coverage information from my tests. For testing our web controls, I am using the [HostType("ASP.NET")] and [UrlToTest(" http://localhost/TestSite ")] attributes in my test projects to either test a website that has these webcontrols, or dynamically add these controls to a empty test website and test their properties and methods. So my project structure is like this c:\> - InetPub -wwwroot -UnitTestWebSite & ...Show All
Microsoft ISV Community Center Forums Run-time error '3085' - Undefined Function in expression
I have an intermittent problem with an Access database. I have a function defined in a module shiftletter, which takes two parameters. This function is used by a query. Nine times out of ten the query called by VBA works. But occasionally I get the above error, to make the query work I have to reboot my machine. Opening and closing the database does not help. Running the same query in the query window works. I have tried moving the function to a new module; compressing the database and using the repair option. None of these have cured the fault. Anyone got any ideas Hello ADG, this might help. ...Show All
Smart Device Development how to use sort!
can anyone teach me how to use sort If you happen to need to sort items in a ListView, a How To topic is available: http://msdn2.microsoft.com/en-us/library/ms229643(en-US,VS.80).aspx - Bruce Hamilton .NET Compact Framework User Education ...Show All
Visual C++ Problem using argv in main
Hello there, I am pretty new at this C/C++ I am writing a console program, and from what I read here, and around the internet is that the argv array in main() is supposed to hold any arguments entered on the command line... argv[0] is the name of the program, and argv[1] to argc is the arguments. So if I were to write a program that opened a file in binary mode. To run it I would type executable and then the file I want to open and operate on. example: C:// binaryopen binaryfile.bin binaryopen is the name of the program, argv[0] binaryfile.bin is the file being operated on, argv[1] at least that's what the internet ...Show All
Visual Studio Team System Team Build - PublishRun Error
My first Team Build build, errored out on "Build process and custom task errors". I get: Error PublishRun: Only one usage of each socket address (protocol/network address/port) is normally permitted My code does nothing with sockets which leads me to believe this is an internal TeamBuild error. Building just one configuration at a time is a fine workaround for now. Thanks. ...Show All
Visual C# How to create local instance of the remote object
The question is How to create local instance of the remote object For example, the server class MyClass in computer A contains a method create() to create a file in "c:\", if the client in computer B creates a remote object from A : MyClass mc = new MyClass() and call the method create(): mc.create(), it will create a file in the c:\ of A, not B. How can I create a local instance of MyClass so that when I call the create() method, it will create a file in B Thanks a lot! Hi, I think with remoting you create a local proxy to the remote object and not a local instance ...Show All
Visual Studio Language Service Options - what's the correct approach?
What is the recommended approach to adding options to a Language Service DialogPage provides an easy way to add Options pages. Visual Studio then manages the presentation and serialization, but it seems hard to access the values actually in the page each time via the DTE. What is the role of the LanguagePreferences class The documentation suggests extending it, but they you have to manage the serialization, loading, etc. The XML Editor seems to take the approach of extending the LanguagePreferences class to add it's own options, and adding customized DialogPage-derived pages which update it's extended LanguagePreferences i.e. it does ...Show All
Visual Basic Detecting end of Explorer Copy
I am just learning VB but am pretty comfortable writing moderately complex code and using the help files. I am trying to detect when an Explorer copy of a file ends to start another process. The copies I am interested in are rather long, due to large file sizes and a slow internet connection. I have been able to detect when a stand alone process ends by using "Process.GetProcessesByName(ProcName)" then checking on exit with ".HasExited" but the copy window evidently is a thread internal to Explorer and Explorer doesn't exit when done. I have looked at Explorer memory usage, and just about all of the parameters a ...Show All
SQL Server SQLExpress database file auto-creation error
Hi, I'm not sure this is the right location to post ... I got some issues with VS 2005 BETA 2. I done full install except for SQL Express and full install of the SQL server disc. Now when looking at the starter kits or building app / sites using sql connection i get the following error: An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 5118 and the SqlException message is: The file "R:\DATA\VS2005\SAMPLES\PWSSK\APP_DATA\ASPNETDB.MDF.MDF" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed. CREATE DATABASE failed. Some file names listed c ...Show All
Windows Forms Problem creating dynamic reports
I am new to Crystal Reports for .net. I have created a report, but I don't want it to be the "pull" type report but the "push" type. I have created my dataset and bound the dataset to the report and the report to the dataviewer. The problem is if I use the Report Expert, it will create the datasource for me -- I don't ...Show All
Visual C# Counting lines of a file
Is there a easy way to get the amount of lines a file has Without looping through every line and incrementing a variable as I am working with large files, or is that the only way I can do it Basicly, I'm looking for the quickest way to get the amount of lines a file has. Thanks. Hi Squimmy, You can do it by the following code snippet. Void CountLines() { string[] fileContents = File.ReadAllLines("d:\myfile.txt"); int linesInFile = fileContents.Length; } Hope this helps, Suma ...Show All
Visual Studio Tools for Office Security Deployment Package
Hi everybody, I have a VSTO solution for word. OK I need to add a runtime security policy node to the user, computer or enterprise node. I had that too on my developer box. Now I want to deplooy my solution. So I made a security deployment package. Great. There is my name.msi file. But what does this file do I deleted all the security nodes I added manually, for a test. Then I started the created msi file. And nothing happend. WHY What is this MSI File for Can anyone tell me how to add permission to my assemblys. Well not manually. This file should add all the nodes I had when I created the deployment package. So when start t ...Show All
Visual Studio c# Project template with linked file
I exported a Project template from a working class library project, which has the following linked file element: <Compile Include="..\DalBase.cs"> <Link>DalBase.cs</Link> </Compile> This works fine in the original project, but when I create a project from my template the include path ends up pointing to some temp folder, such as: C:\Documents and Settings\bradk\Local Settings\Temp\5oohnkvn.04c\DalBase.cs The linked file is obviously broken then, and the project won't compile. Is there any way around this I tried a custom parameter wi ...Show All
Visual Basic dataset won't save back to database
hi all i have created an SQL db containing 1 table within VB 2005 express. i then created a datasource to connect to the DB. A dataset was then created. i dragged the dataset onto my "Form1.vb" and bindingsource, tableadapter and binding navigator were then created. i then pressed f5 to run. I can nvavigate through the records and create new one's but when i click on the save icon and then exit, the new records are not written back to the DB. any ideas Hi I already made this experience. Problem is that datasets are copies of database files so when You press f5 to run app it does not save to the original database the records. B ...Show All
