kzu's Q&A profile
SQL Server Can multiple apps connect to the same database?
I have an application that was developed under Visual Basic .NET 2005 Standard that I keep continuously running to monitor and gather data and store that data in a SQL Server Express database. This is all done on a single computer that's not networked to anything. The trouble is, I'd like to look at the data in the database from time to time without shutting down the application, but I'm not able to do so. If I try to copy the database files, named lamination.mdf and lamination.ldf, to another location, I get the following error message; "Cannot copy lamination: There has been a sharing violation. The source or destination file may be in use." I would like to be able to copy the file to my office computer where it would be ...Show All
Visual Studio 2008 (Pre-release) [DataMember(Name="Foo")]
If I specify a Name in m DataMember attribute on top of a private class member, why does the proxy class add "Property" to my property. i.e. Name="Foo" becomes someProxy.FooProperty. ...Show All
Windows Forms control display location of forms
How do you control where forms open on the screen, especially in a multi-monitor environment Can you set a form position to be relative to the position of another form Is there a VB project sample that shows how to do form positioning ...Show All
Visual Studio Tools for Office Problem using ServerDocument.AddCustomization
Ok, here's the situation. I am creating a system modeled closely to this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOBenefitsRegistration.asp I am at the point where I am adding the customization to an uploaded word document. But I'm getting an error, and I can't make sense of the error, so I can't proceed to fixing it. I hope someone here can help. Here is the error I'm receiving (I've put this together in a catch, if you need the raw error, I can post that): An error occurred while saving the form. at Microsoft.VisualStudio.Tools.Applications.Runtime.IAppInfoDocument.SetDocument(String fileName, Byte[] bytes, FileAccess access) at Microsoft.Office.Tools.OfficeAppInfoDocume ...Show All
Visual Studio Express Editions GetPrivateProfileString?
Could someone please show me an example using GetPrivateProfileString in Visual C++ 2005 Express Edition This doesn't work. Thanks. #include "stdafx.h" #include <iostream> #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { int active; active = GetPrivateProfileString(Meow,StartEnabled,0,255,NULL,"C:\\Meow.ini"); std::cout<<active; Sleep(6000); return 0; } highneko wrote: Could someone please show me an example using GetPrivateProfileString in Visual C++ 2005 Express Edition This doesn't work. Thanks. #include "stdafx.h" #include <iostream> #include <windows.h& ...Show All
Visual Studio Team System How do I delete a workspace when the server is not accessible
Hi all, I have a folder mapped in a workspace. Unfortunatly the server is non longer available so when I do tf workspace /delete I get an error. I cannot map the same folder for another server. I do I force a Workspace delete even when the server is unreacheble Thank you. You can delete it from the file C:\Documents and Settings\[user]\Local Settings\Application Data\Microsoft\Team Foundation\1.0\Cache\VersionControl.config ...Show All
Visual Studio Express Editions supress message when deleting any file ProjectITem.Delete()
Hi All, I have my simple addin project using .net C# .Using Addin code here I am deleting file which is under solution project using code ProjectItem.Delete() method but it send message "do you want to delete anyway " Yes/No Here i want to supress this message and delete file directly. How i handle this Waiting for reply, Thanks, Nitin. ...Show All
Windows Forms Thread Pools
I'm using thread pools to update multiple windows forms. The question i have is that when i close a form the thread doesn't get disposed and eventually the app locks-up when i open and close to many forms and won't display any data unless the app is restarted. What happens is the threads are getting stuck trying to update the closed form and when it hits that section of code its stays there trying to find the form but can't. It won't get deleted or die it just stays there until all the available threads are used then i get no more updates. Is there a way to delete the threads as the forms are closed or are they supposed to stay and i just need to add more threads to support what i need to get done Hi, ...Show All
SQL Server using CASE statement in a prediction query
Hi, Can i use a CASE statement in a prediction query. the following query is throwing me an error SELECT CASE [Sales Forecast Time Series].[City Code] when 'LA' then 'Los Angeles' WHEN 'CA' THEN 'California' ELSE 'OTHERS' END, PredictTimeSeries([Sales Forecast Time Series].[Sales Value],5) From [Sales Forecast Time Series] ERROR: Parser: The statement dialect could not be resolved due to ambiguity. Also Is it possible to discretize the Sales Value column using a the CASE statement, the output column of PredictTimeSeries function. Is there a link that can give me a comprehensive info on what can be achieved and what cant be using DMX queries DMX does not support (yet) the CASE ...Show All
SQL Server Preferred index for a standard history/activity table design
Imagine the following table: MyTableActivity -------------------- MyTableActivityId (pk, guid) MyTableId (fk, guid) MyUserId (fk, guid) ActivityTypeId (int, guid) ActivityDateTime (datetime) Comment (varchar(max)) This is pretty common, right One way or another, this is kind of an audit log of another table (referenced by MyTableId). My question is in regards to what would be the best index(es) to place on this table. The three fields in question are MyTableId, ActivityTypeId, and ActivityDateTime, as these are (at least in my system) far and away the most frequent search criteria. Users will either typically want: All rows for MyTableId, sorted by ActivityDateTime All rows for MyTableId and ActivityTypeId, sorted by ActivityDateTime The ...Show All
Windows Forms GridView Edit Command
Hi, Can anyone throw some light on the error below Basically all I need to do is when an edit button within gridview is clicked, to fire the edit command event and invoke a method to add in drop down lists... But I get the following error: The GridView 'GridView1' fired event RowEditing which wasn't handled. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: The GridView 'GridView1' fired event RowEditing which wasn't handled. Source Error: An unhandled exception was generated during the execution of the current web request. Inf ...Show All
Windows Forms viewing datatable data in Watch window
Hi, Is there anyway I can view data in all rows and columns of a datatable in watch or command window during debugging Right now, I can only view one row/column at one time. I add following like in Add watch or Quick watch or command windows... DTable.DRows[0][0].ToString() Thanks, I use GetXML. It displays all of the data, but in XML format. the Datatable does not actually have this method, so you have to do something like this: DTable.DataSet.GetXml() ...Show All
Visual C# Sample code problem: creating threads
I found some example code in a web page titled “How to create a thread by using Visual C#” and located here: http://support.microsoft.com/default.aspx scid=kb%3Ben-us%3B815804 The instructions in this tutorial are easy to follow and I think I followed them correctly. It took maybe 3 minutes. When I try to run the new project, it pops up the form, then a few seconds later a window titled “InvalidOperatorException was unhandled.” The Window has an option to “Copy exception detail to the clipboard” so I did that and pasted the data in below. The line of code highlighted is: this .progressBar1.Value = newval; I did it twice and obtained exactly the same results. Did I make an error Has anyone ...Show All
Windows Live Developer Forums Polygon Circle outside map boundries
I am currently implementing the ve api in such a way that we are plotting points on a map and drawing a circle (polygon) around that point on a map based on a provided radius. The point in question is in the Fiji Islands which would be on the rightmost part of the map (approx. Lat: -16.694078, Lon: 179.835205). The radius of the circle is large and there are points which lie outside the map boundaries. The circle gets plotted correctly which would be on both sides of the map. However, there are lines between the top and the bottom of each circle part and the outside of the circle is shaded in. I can't include an image in the post, so i have included a link here (yahoo for lack of a better place to put them): http://new.photos.yahoo.com/dad ...Show All
Visual Studio Version control plugin makes vs2005 crash on vista
Hey All I am running Vista and have installed vs2005( with SP1 and the vista patch ) in hopes to do all of my developing on that platform now. But I am having problems with using a source control plugins. I use SVN, and have therefore installed AnkhSVN which is a great SVN plugin for vs2005. It works fine when I am working in vs2005. But every time I close vs2005, it crashes, and devenv.exe stalls, and cannot be stopped through task manager. I have tried to debug problem, and it looks like it tries to access some memory it does not have rights to. I don't understand this, as I am running vs2005 as administrator. It should be noted that this problem only occurs when the plugin is installed. If I uninstall it, vs2005 works fine and closes ...Show All
