Thomas2054's Q&A profile
Visual C# disable keys
Is there away to disable keyboard's \ mouse button(s) in web applicaiton and windows applicaiton.. using .net 1.1 .. please point me to the right API/dll/ examples I could use. Than you in advance.. Thanks, What dll I should use to control the sleep/power keys from being pressed.. Could you explain what you mean by a driver that sits between keyword and windows drivers.. ...Show All
.NET Development Multiple instances of same TraceSource in one process
I would like to be able to create multiple instances of a TraceSouce specified in app.config and then tweak their settings independently. When trying to do this it seems that if I create them within the same thread they're all sharing the same TraceListeners. If created in different threads they get their own listenter instances, which is what I want What would be the proper way to do this Example code: ts1 = New TraceSource( "Test" ) fileLogTraceListener1 = ts.Listeners( "FileLog" ) fileLogTraceListener1.BaseFileName = "FileName1" ts2 = New TraceSource( "Test" ) fileLogTraceListener2 = ts.Listeners( "FileLog" ) fileLogTraceListener2.BaseFileName = "FileName2" ...Show All
SQL Server Find/Replace Not Working in Management Console
I have the 2005 Standard Edition of Sql Server, and the managment console tonight stopped responding to quick find/replace requests either via menu or (ctrl+f, ctrl+h). The UI bars above just grey out a bit and nothing happens. I saw a MSFT dev for VB (visual studio) respond with a fix that was to run "devenv.exe /resetsettings" that restored the defaults and fixed the problem for those affected. Anyone know how to do that for management studio, since going to customize (restore) each of the individual bars didn't do it. Thanks in advance, Greg manay thanks i had the same porblem and i found the pop up under the task bar many many thanks ...Show All
Visual Studio 2008 (Pre-release) Problem:"Cannot locate resource 'window1.xaml'.
hi, i am a newer to WPF, when i debug the avalon project "AvalonCalculator2" which is downloaded from MSDN in VS 2005, the project throw an unexpected exception "Cannot locate resource 'window1.xaml'. I think it may be the culture concerned.i am now using the Chinese Windows Xp OS. how do i solve this problem thank you all !~ thank you very much! ALik I have tried many methods from the article that you showed me. at last, I solved the problem. I am very happy. The solution is add the following code in AssemblyInfo.cs: [assembly: NeutralResourcesLanguageAttribute("en-US",UltimateResourceFallbackLocation.Satellite)] ps: My OS is Chinese Windows XP. ...Show All
.NET Development XmlSerializer deadlock/timeout in .NET 2.0
I have experienced problems with the XmlSerializer in my application. Instantiating it causes a 10 minute timeout because the csc process seems to be deadlocked. The error is new since .NET 2.0. The problem only occurs in a slave process, not in any of the main processes which are started directly as services or from the shell. So what special about the slave process It's a .NET console application started fom a .NET service with Process.Start(), ShellExecute = false and RedirectStandardInput = true. The slave process reads commands from the master process in a background thread with Console.ReadLine(). In another background thread an XmlSerializer is instantiated and it fails. The error seems to be certain on machines with only on ...Show All
SQL Server Web sync and partitioned snapshot - failed from time to time. Why?
Hi! Well.. There's operable web sync with parameterized filter. But sometimes the strange errors appear. Below the list of the errors I got from ComErrorCollection property of MergeSynchronizationAgent instance: ERROR: -2147199433 SOURCE: Merge Replication Provider(Web Sync Server) TEXT: The Merge Agent was unable to start the SQL Server Agent job to generate the partitioned snapshot for this subscription. Verify that the SQL Server Agent service is running at the Distributor. ERROR: 22022 SOURCE: HOST3\MAIN TEXT: SQLServerAgent Error: Request to run job dyn_HOST3\MAIN-Customers-Main-2__20061014_14 (from User distributor_admin) refused because the job is already running from a request by User distribut ...Show All
Visual C++ CDHTMLDilaog and Internet Explorer 7
I have an MFC application that uses CDHTMLDialog to display HTML, but when IE7 is installed on the machine, the images specified in the html page are not being displayed at all For example: <html> <style> body { background-image: url(file:bg.png); background-position: center; background-repeat: no-repeat; } </style> <BODY> This is an image: <img src="file:myimage.png"> </BODY> </HTML> This works fine on previous versions of IE but under IE 7 the images aren't displayed.. Can anybody help thanks, Ronan If we suppose that Internet Explorer 7 processes differently relative addresses like " file://myimage.png ", and your problem is not caus ...Show All
Visual Studio Team System Is there a tool to create class diagram
Using Guidance tool with VS 2005 team version, I created a web service solution. When coding is done, I need to create a class diagram. Is there a tool can do this based on my Vs 2005 solution and project, or binaries Thanks Visual Studio 2005 Standard Edition and above include Class Designer. You can access it by right-clicking on a source file or project in the Solution Explorer and choosing "View Class Diagram". You can add a class diagram to a project by right-clicking on the project in the solution explorer and choosing Add | New Item ... and choosing Class Diagram from the list of items. There's probably a dozen other ways to get a class diagram as well. Note that the cl ...Show All
SQL Server Need Help on this SQL Statement
Hi All, sqlLstProds="Select * From PRODUCT_DEF "&_ "WHERE productID IN(Select productID From PRODUCT_DEF WHERE (IDProductCriteria = 5) AND ([Value] = '"&getSession("ModelID")&"')) "&_ " Order By IDProduct, IDProductCriteria" I have the above SQL Code in an ASP page. This queries the Product_Def table, however there is also a table called Product_sType, the primary key in that table is productID which corresponds to productID ub the Product_Def table. I need to add to the query a where clause, where active = 1 active 0 is obviously discontinued products, how would I do this So basically, it's somewhat of a join of some sort, like select * from Produc ...Show All
SQL Server Filtering Measures by Measure Groups
I'm trying to create scripts to convert foreign currencies. I would like to create the script so that the measures are not hard coded but would be specified by MeasureGroup, something like the following: Filter([Measures].AllMembers, Measures.CurrentMember.MeasureGroup = "Policy Measures") Is it possible MeasureGroupMeasures (MDX) Returns a set of measures that belongs to the specified measure group. Syntax MEASUREGROUPMEASURES ( MeasureGroupName ) ...Show All
Windows Live Developer Forums PostGIS, MSVE and alot pf Polylines/Polygons
I've been hacking at this problem for a while, and I'm sure tis been doen a thousand times by now by others but I've only just started playing with both PostGIS and MSVE so Its really messing with my head. Basically we have a several databases full of statistics for geographical locations which could be represented as polylines or polygons and actually both will have to be used... I'm trying to figure out a way of fetching this data from the databases but I want it to remain as polys for future adaptability. I've figured out the code in VE that would select the area and hence the queries I need from PostGIS but I just cant figure out how to join the two things together. I've been pointed at doing some kind of Java servlet and I've had a go ...Show All
Visual Studio Toolkit Error: The following arguments are required and don't have values
Hi, I am modifying the WSSF guidance package and have changed the solution structure. Upon implementing the package the newly defined structure is created by the CreateWCFSolution recipe but I receive an error immediately after. Below is the error message and an excerpt of my CreateWCFSolution recipe. Any ideas Help! Microsoft.Practices.RecipeFramework.RecipeExecutionException: An exception occurred during the binding of reference or execution of recipe CreateWCFSolution. Error was: The following arguments are required and don't have values: BusinessEntitiesProject, BusinessLogicProject, DataAccessProject, ServiceImplementationProject, HostProject, GatewayProject, ContractsProject. Can't continue execution.. You can remove the refere ...Show All
.NET Development No way to get time changed event as windows service (SystemEvents.TimeChanged)?
Is there no way for a service running without interacting with the desktop to receive time changed events, such as those generated by SystemEvents.TimeChanged How am I supposed to tell when DST hits Or if the user changes the clock Hmm... I don't think that's going to work. I need an EVENT from the SYSTEM that alerts me to the change in DST, or a user change to the clock. Unless I have a timer that checks a DateTime.Now value against a stored time every couple miliseconds, I'm not going to know when DST hits. ...Show All
SQL Server Select Case, Custom Code to Select Field
Hi, I am moving from Crystal Reports to Reporting Services and need a bit of help with a Profit and Loss Report; I have a table in my accounting software with the following fields: Account Name, Balance01, Balance02, Balance03,..........Balance12; I am writing a monthly profit and loss report; I've created a Report Paramater called "Month" I want to the user to select the month they want to run a Profit and Loss Statement for; Where January would be Balance01, February Balance02 etc. I have written the following custom code: Function Balance(Month as String) Select Case Month Case "January" Return Fields!BalanceThis01.Value Case "February" Return Fields!BalanceThis02.Value End Select ...Show All
Visual C# Running native code on C#
Hello, I know the basic things how to run native code dll's with C#, bus I have harder case. The function which is in native dll requires such parameters as structures and void * pointers. I have tried to use managed structures and objects as pointers, but nothig have worked. So how I can pass structures and void* pointers to unmanaged native functions Thanks in advance. Best regards, alpha Hello, Thank you very much. I will try, but I'm sure that ir will work. Thanks again. Best regards, alpha ...Show All
