Jim Fr's Q&A profile
Visual C# Capture Key Presses in Windows
Hello, I would like to build an app that acts similar to ALT+TAB (a key combination causes a form to pop up, hide the form when the keys arent held down anymore) and I'm just wondering what I would need to do to capture keys in Windows Will I need to access the Windows API directly to accomplish this Are there any examples that somebody could point me to that show how to do something in C# based on a KeyDown in Windows Thanks! Peter Ritchie wrote: It's not recommended that system-wide hooks, shared extensions, or system-wide extensions be written in a managed language like C# or VB.NET. For details see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=125283&SiteID=1 and ...Show All
SQL Server dimension design
I have a fact table and dimension. a view is taken as base table for Dimension which will Productkey,LevelId. One product may exist in multiple levels. so we have multiple records for a single product. And in fact table we have productkey as foriegnKey. When i relate fact n dim to create a cube, cube considering one record for each product key in fact table. its automatically avoiding other records. can we any way stop this happening OR is this default behavior Thanks in adv Thanks for the response. 3rd point is not possible to implement..let me check with first point. so does it ignore multiple records for same productKey ...Show All
Visual Studio Team System Field value restrictions for different users.
I want to make sure that for the normal group of users the value of a field is fixed depending on another field when submitting a workitem. Projectadministrators however should be able to change the value of this field. For all member (including ProjectAdministrators), the value shown should be the "current" value. Is it possible to accomplish this E.g.: For a new workitem a user (non-projectAdministrator) sets the Severity field to Cosmetic. The priority is then automatically set to the value P4. When a ProjectAdministrator later on opens the workitem he should see the current value of Priority field (in this case P4) and should be able to change the priority to one of the allowed values (e.g.: P2). With the code below, P1 i ...Show All
Visual Studio Team System issue with TFS mail alert
hi , The mail alerts on my TFS server stopped working suddenly with this message Event Type: Warning Event Source: TFS Services Event Category: None Event ID: 6011 Date: 12/5/2006 Time: 1:02:25 PM User: N/A Computer: CTSINGVCSASF Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 12/5/2006 7:32:25 AM Machine: CTSINGVCSASF Application Domain: /LM/W3SVC/3/Root/services-2-128096762500808237 Assembly: Microsoft.TeamFoundation.Server, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process ...Show All
Smart Device Development How to get storage card size / free space? c#
hi the title says it all really I am trying to work out the size free space used space on a storage card how do you do this Here you go http://www.peterfoot.net/FreeSpaceOnStorageCards.aspx ...Show All
Software Development for Windows Vista problems with WorkflowDesignerControl and Sharepoint activities
With WorkflowDesignerControl i can add custom activites... Everything is cool... But what about Sharepoint activities Can I integrate Sharepoint Server and WorkflowDesignerControl For now, when I add myActivity, wich was created with Sharepoint Activities, for example "SendEmail", WorkflowDesignerControl generate error: "warning WF1336: Activity 'myActivity1.SendEmail' validation warning: The correlation my be not uninitialized". What should I Do This sounds to me like your activity just needs to be configured properly. Much like you would get a warning if you don't specify a handler for execute codeo on the code activity, or don't specify an interface and method on a call external ...Show All
SQL Server Using Excel file in Reporting services...unable to do compares on a date column
Hi all! I am trying to use an Excel spreadsheet in SQL Reporting Services. The first column contains a date field (but it also contains the word "Totals" in some of the rows). I can get rid of the "total" rows so that I'm really only working with a "string" date field. I can use the MON, DAY, YEAR functions on this column, but I am not able to select on a pure "date" parameter. This spreadsheet contains daily water totals, and I only want to extract those rows if the day falls within a certain range (>= 9/28/2006 and <= 10/31/2006). TODATE, DATE, CAST, CONVERT functions do not work. I have even made a copy of the spreadsheet, removed all of the "string" rows, saved it with the firs ...Show All
Smart Device Development Failed to create new project in VC++ 2005
Dear All, I am trying to create a new project for Win32 Smart Device using VS2005 and Mobile SDK. But I always get this error "project creation failed". I tried to re-install Mobile SDK again but I still get the same error... any ideas. Best regards, It is working fine now Thanks a lot daveie ...Show All
SQL Server Controls pushed off to the right
This is pretty weird... any controls past the halfway horizontal point of the report get pushed into page 2. The leftmost control is not affected just those to the right of it. It's like there is an invisible tab after the leftmost control. Smaller (not leftmost controls) (not past the middle of the page) are also pushed way to the right (just not into a new page) Is there some property (that I'm not aware of) that does this It doesn't matter if I use textboxes or lines. I have not changed any of the default control properties. flow layout is still LTR. In my current report I have questions and answers on separate lines...I can't place them next to each other or it screws up the pagination. I start with a new report and it does not d ...Show All
Visual C# Using assignment in an if/while/ condition?
Hey all, I am currently working on a rather large product and am nearing completion, and I was currently working on some of the Excel/Word conversion and IO routines and I thought to do something like this... StreamReader sr = new ...blah blah blah while ((tempString = sr.Readline()) != null) { < parsing code here...> } .. Is there anything absolutely wrong with that type of while or if statement Is it considered bad practice Will that sort of thing even work right ;p Alright.. Thanks :) I hadn't ever seen that before and wondered if it was something that was just generally frowned upon.. but its exactly how I need things so i ...Show All
Visual Studio Team System UI improvement - collapsable code regions
I use #region...#end region directives in Visal Studio quite alot. I like the ability to hide code so I can concentrate only on what I am working on. It gave me two ideas for data-dude: In a script, hide queries in a script that I'm not currently working on. This is analogous to #region...#end region that I just talked about. Hide parts of a query that I'm not currently working on. I have a great use case for this: If I am using a derived table in a query and I am happy that that derived table is returning what I need then I don't to see that derived table anymore - I only need to see the alias. Similarly if I am using a CTE I don't need to see the body of the CTE, only its name. Comment regions could also be col ...Show All
Visual Studio 2008 (Pre-release) Video on WPF
I can't see videos on WPF aplications. When I build and run, the videos simply don't appear. I have installed the Windows SDK RC1 , the .NET Framework 3.0 RC1 , and the Visual Studio "Orcas" Extensions for .NET Framework 3.0 RC1 , and don't know what I am missing that would enable me to integrate videos on my aplications. Any solution or help will be welcome. Please make sure that you are using the latest WMP 11 version. If you use the WMP 11 Beta 1 with .NET Fx 3.0 RC1, you will hit problems. Beta 2 of WMP 11 should work fine. ...Show All
SQL Server Identifier! [problem in passing a lengthy string to an SP]
exec sp_SearchProductAdvanced "(name LIKE '%a%' Or name LIKE '%b%' Or name LIKE '%c%' Or name LIKE '%d%' Or name LIKE '%e%' Or name LIKE '%f%')and (salesprice between 3 and 10) " ,null after executing i got this error: The identifier that starts with '(name LIKE '%a%' Or name LIKE '%b%' Or name LIKE '%c%' Or name LIKE '%d%' Or name LIKE '%e%' Or name LIKE '%f%')and (salesprice ' is too long. Maximum length is 128. how can i solve this problem. so that i can use more values . my lenght exceeds 128. is there any way to get rid of this. in my SP i have declared the parameter variable as @criteria nvarchar ( 1000 ) Just in conjunction with the above post, ...Show All
.NET Development get ip address of remote pc
Hello Everbody I have a problem in getting ip address of the remote pc i m connected with that pc through dial up connection that is throught the API RasDial() which is the part of ras32.ll As u know in dial up connection there is a phone line so i dial a phone number and through PPP we are able to get the ip address Now the thing is i want to know the ip address to which i am connected with. I hope u got my problem 1) Connect to remote pc throught dial up i.e. PPP come 2) i m getting my ip that happens through negotiation betn 2 pc 3) i want to know the ip of remote pc Thank you for replying one more thing i have a problem related to selecting the correct mode I have connected 4 mode ...Show All
.NET Development VB.Net Data Storage
Hello, I'm currently working on a medium size application. One of the requirements is to be able to store the data in a home user enviroment. I was curious what some of the latest flat file storage methods being used are The data that im looking to store is not large and will contain mostly contact information. Would dat files still be a good solution I wanted to stay away from solutions that use MDB or SQL Server simply because the average home user would not have access to these type of applications. How about SQL Server 2005 Everywhere Edition ...Show All
