svarghese's Q&A profile
Smart Device Development STAThread can not be found, but where is it?
Hi. I'm writing an application with Compact Framework 2.0 SP 1. I want to apply the [STAThread] attribute to the main method, but there seems to be no such attribute. I get offered the MTAThread attribute, but not STAThread. Of course, the compiler doesn't find either. It just seems to be missing in the referenced assembly (System.dll, Version 2.0.6129.0). I didn't find anything about this problem on the web, so could anybody help me, please I'm quite desperate. I already reinstalled the CF 2.0, no success. Nobody else seems to have had this problem, ever. Help!!! Thanks! rudiman Thanks! Anyway, I found some information at MSDN just now. It is confirmed that STAThread is not supported in Compact Fr ...Show All
Smart Device Development How to create a transparent window (win mobile 5.0 pocket pc)?
Hi guys, I am writing an application to lock/unlock the device. For locking the device, my idea is to simply create a transparent window sit on top of the today screen, so user can see it but can not do anything---the device is "locked". Can anybody tell me how to create a transparent window or is there any other way to lock the device Cheers, Yuan, Well, I did run into the situation that you described above. The today window couldn't paint itself when I faked to create my transparent window by using WM_ERASEBACKGROUND. So the clock and the date of the today window will not be updated when the phone is locked:< I am a rookie so could you explain me more on ...Show All
Visual Studio Team System Cannot perform Static Code analysis
Error 1 CA0055 : Could not load Calculator.exe. Error 2 CA0052 : No targets were selected. Thanks The file was not readable by fxcopcmd.exe. MSDN has additional information on this error: The code analysis tool was unable to load the target file that was specified for analysis. This occurs if the file is not found or access to the file was denied. Typically, this occurs if the user chose to override the input assembly property in Visual Studio, or invoked fxcopcmd.exe manually. Thanks, Dave Lubash - Visual Studio Team Developer ...Show All
Visual Studio Team System View history in MS Excel
Is it possible to view history in MS Excel We want to use the comment/history field for adding release note descriptions, so that when the product is released, we can extract the release notes for all fixed bugs. The first step would be to get the history in Excel, the second step would be to filter for comments with Release Note information (don't know how yet) Or is there any other workaround to accomplish this functionality Hello, In V1 we don't support viewing history field in Excel. One workaround for what you are trying to achieve would be to have Release Note in existing "Description" field or you can add a new field to store Release notes (Additional information about how to a ...Show All
.NET Development Trying to intercept the ShowDesktop button
Hi, I try to intercept the ShowDesktop button (key : win + D) in my WinForm app in order to maintain some forms open (a sort of Desktop post-It effect). Can some one help me Thanks in advance. Garg PS : By the way, handle the resize event doesnt work ;) jiangzw wrote: Try to use keyboard HOOK API,SetHookWindowEx or something.although,It isn't a good answer.. ...Show All
Windows Live Developer Forums hi
i want msn handwritting how do u get it ...Show All
SQL Server Store Procedu Arrange data ahphamatically
Hi all, I'm newbie in SQL. Can anyone tell me how to create a store procedure to arrange data which use to display in ListBox alphamatically I know with using Visio .NET 2005, we can set it in ListBox Properties, but the details displayed in TextBox beside mismatched. Therefore, i want to do it before binding. Thanks & Regards, powerteh ...Show All
.NET Development Static method in an Interface?
Is there a good reason why static method cannot be defined for an interface Remember that a static member is only accessible through a type reference, not an instance reference. Therefore in order to call a static member it must be type.member . If you were to allow static members on an interface then you would still have to use type.member to invoke them. In this case type would have to be a class or struct that implements it. Therefore even though it is defined in the interface it is still only accessible through the type that implements the interface. I don't see that you gain anything there. The whole purpose of interfaces is to isolate yourself from the underlying implementation so if I had to do this: IMyInterface ifc = ... ...Show All
SQL Server multi step OLE DB error
Hi All, I have a MS Access DB that I have successfully u/graded to SQL Express 2005. I run my code using a recordset as normal, and all connections to the database work fine, but I receive the multi step OLE DB error when it gets to a line trying to populate an address field which has a datatype of nvarchar(max), null. (Field was Memo in Access version before). This field in SQL2005 has allow nulls. I've tried to add an empty string " " to the variable before being saved, but this still doesn't work. Any ideas Do you exceed the max possible characters eventually HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C++ Remove a given value from a list
Hello all: Is this solution correct void remove(Node **node, int v) { while (*node) { if ((*node)->value = v) { Node *tmp = *node; *node = (*node)->next; free(tmp); } else node = &(*node)->next; } } If this code is correct, I have the following question: why can we just free(tmp) without making the collection between the previous node of tmp with the node after tmp Thank you Yes, it is correct. As for your subsequent question: if you don't connect the previous node with the node after tmp you will end up having previous node having a 'next' pointer that points to freed memory instead of pointing to the next node i ...Show All
Audio and Video Development adding a pause in script
i'm wondering if anyone can help me add a pause in script. i'm trying to delay a function so that an animation has time to complete before a function begins. i'm familiar with setTimeout(), but i believe it is not supported in iHD Picture in Picture is actually very simple... https://blogs.msdn.com/ptorr/archive/2006/09/11/750124.aspx ...Show All
Windows Forms Treeview OwnerDrawAll example
Hi, I'm looking for a example for Treeview.DrawMode = TreeViewDrawMode.OwnerDrawAll. Any suggestions Thanks The following links might be useful http://msdn2.microsoft.com/en-gb/library/system.windows.forms.treeviewdrawmode.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=818698&SiteID=1 ...Show All
Visual Studio Problem with the office 2003 addin
Hi, I have created an office 2003 addin with teh code given in the site http://msdn2.microsoft.com/en-gb/library/aa218648(office.11).aspx but the addin is being created and i was not able to get the addin with the frontpage. When i tried to manually add the addin to the front page it is giving an error saying invalid office addin. please help me i have no time...... Thanks, phani In advance Thanks Radvis, The first thing is iam using VS2005 for the development of addin..... Next In the 4 of 5 screen I tried all the possible 4 combinations but still the addin is not working in FP2003 it worked fine for FP2000 I was unbale to know the reason why........Also see the the code 2 It ...Show All
Visual Basic How does the Windows Screen Saver detect whether the user has used the keyboard or mouse?
Hello all, I have posted a similar question in the past but the answers that I got weren't too helpful so I thought I'd give it another shot. How can I, using VB.NET 2003, detect whether the user has used the keyboard or mouse much like the Windows Screen Saver needs to do before it starts up. Thanks in advance. N. Farr Use the mouse events and the keyboard events in your application to throw a flag iondicating wether it was the keyboard or the mouse that caused activation ...you can also use a timer to start another process if the keyboard/mouse activity was not detected ...in other words every time you set your flag you also start/restart a timner and if the timer reaches a certian time do s ...Show All
Visual Studio Express Editions How Do I Add a Find Feature to the BindingNavigator?
The BindingNavigator does not have a Find method like the Recordset object does. I've added a Find Button and text box to the BindingNavigator, but I can't find a method to use to implement a Find feature (e.g., search for a last name). Below is the code I used in VB6. Can anyone help me with this one Thanks, Mike Private Sub cmdFind_Click() Dim Msg As String Dim strFind As String On Error GoTo PROC_ERR strFind = InputBox("Enter all or part of last name to find.", "Find Instructor") adoPrimaryRS.MoveFirst adoPrimaryRS.Find "LastName LIKE '" & strFind & "*'" If adoPrimaryRS.EOF Then Msg = "Record not found." MsgBox Msg, vbOKOnly + vbInformation ...Show All
