Hatanet's Q&A profile
Smart Device Development Simple way to "make single instance application" with a VB WinCE 5.0 App?
I know that in a windows application written in VB .NET 2005 there is an application property to set that will allow only one instance of the application to run. How can I do this in a VB .NET 2005 CF program targeting WinCE 5.0 There is a aticle on MSDN, Creating a Microsoft .NET Compact Framework-based Process Manager Application dass that shows you how to get all running processes. Iterate trough alle running processes and lookup if your process isn't allready running, if so; inform the user and close. ...Show All
.NET Development Sending Windows Messages
I am playing around trying to send messages to windows (specifically close messages and specific messages to dialog boxes). I am using visual studio 2003, and am using the windows API to try to send the messages. What I have found is that FlashWindow and CloseWindow work, MoveWindow kind of works (it does respond, but does some weird things), but SendMessage and DestroyWindow do nothing. Following is the code I have been tinkering with, does anyone have any advice (eg. are there any .NET framework classes which can help me here): Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpW ...Show All
Visual Studio Team System Access files names and directories
Hi, I am trying to make a new rule that checks the files (and resources) names and their directories hierarchy inside the project how can i access the names and paths Have a great time. Regards, FxCop is a binary checker, unfortunately, so there's no good way to accomplish what you're after using our rules SDK. Again, you could dig around in method bodies looking for all source information that's located in PDBs, but this would be a very indirect way to go about things. ...Show All
Software Development for Windows Vista problems communicating with the host
Hi, I am trying to get host communication working because I need to communicate back to the host if for example, a process will be long running. I've set up a very simple example which raises an event on the host and every time I run it, I get an error: Done Exception has been thrown by the target of an invocation. Press any key to contine The code for my test harness is as follows: #region Using directives using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Workflow; using System.Workflow.ComponentModel; using System.Workflow.Runtime; using System.Workflow.Runtime.Hosting; usi ...Show All
Software Development for Windows Vista Cannt format drive in vista Feb CTP
I had initially winxp sp2 installed in C drive and later I installed vista Feb CTP on Drive D. Both are NTFS. Now I use vista and I thought to format C drive to have some free space and get rid of winxp but I got an error which says that it cannot format C drive. Now neither it has been formatted nor it is usable. when I tried to run format command from command prompt it says that access in denied. Also I cannt access administrator account to format the same. I am the administrotor but I ont have admin previleges. Plz give any suggestions. thanks in advance:) ...Show All
Smart Device Development CF 2.0 - Rotate an image ??
Hi, I saw somewhere that on CF 2.0, an image rotating will be feasible. I installed the vs 2005 with the new framework and new cf but couldnt find any rotating ability. Does anyone can give me a hint thanks, Do you want to be able to rotate the image on any angle or some predefined values like 90, 180, 270 degrees ...Show All
.NET Development HTTP status 401: Access Denied
I am trying to programtically execute an MS SQL Server Reports Server Service in a web application. " /ReportServer/ReportService.asmx">http://<Server>/ReportServer/ReportService.asmx " I am receiving an "The request failed with HTTP status 401: Access Denied." I have tried using "DefaultCredentials" and Network Credentials that have local administrator rights on the Report Server computer. Below is the code I am executing. This same code works fine in a console application. Any ideas of what I can try to resolve the error Thanks in advance, Ken Private Sub Page_Load() Try 'Rem OurSQLReportsServer.Url ...Show All
Visual Studio Team System Find Changesets
How do I go about determining which changesets were created between two dates Is there a web service that can supply this information for me Well, maybe if there was a decent class reference in a help file somewhere... But thanks for the good news, I can rewrite my tasks to use the api rather than shelling out to tf, now, as well! ...Show All
.NET Development How to get field value in attribute constructor?
There is a StringValueAttribute attribute. The user can use it to associate string values with an enumeration field. In the first constructor of StringValueAttribute, two string arguments are passed and can be used to explicitly assigned to _databaseValue and _resourceKey. This is illustrated in MyEnum.EnumValue1. My question is in the second constructor with only one string argument. Since the resource key string is not passed in, I hope to get the enum field value EnumValue2 and then use value.ToString() as the resrouce key. But how to get this enum field value This is illustrated in MyEnum.EnumValue2 . ...Show All
Visual Studio Team System MSF Agile: Primary Persona in scenario description template?
Hi, Where in the Scenario Description Template (Scenario Description.doc) is the primary persona set I couldn't find any placeholder for that! Is it missing I think it would be great to have a placeholder for it in the first page, so that you don't have to read the scenario description just to find it out. Thanks! Hi Mariano, Thanks for pointing that out! You are quite right, it is missing. We have an update scheduled to be posted on MSDN this week for the agile process. We'll have a fix for this that matches what you have described. Thanks again. Randy MSF ...Show All
Visual Studio Team System What does this error mean and why does it keep coming up?
Exception LoadTestException Could not find dependent counter needed to apply threshold rule: \\MCSD-DEV\LoadTest:Page\Avg . Page Time(_Total) The view is: at Microsoft.VisualStudio.TestTools.WebStress.Rules.ThresholdRuleCompareCounters.CheckCounterValue(PerformanceCounterValue counterValue, ICounterProvider counterProvider) at Microsoft.VisualStudio.TestTools.WebStress.LoadTestResultsCollector.ApplyThresholdRules() I do not recall setting any threshold exceptions and I can't find anything else related to this error. This is in the RC release. Jeff This is c ...Show All
Windows Forms DataMember DataSource problem in DataGridView
I have a derived DataGridView that is sitting in a derived UserControl. The DataGridView is a protected member of the base UserControl. In the deriving UserControl the designer generated private void InitializeComponent() { this .components = new System.ComponentModel. Container (); System.ComponentModel. ComponentResourceManager resources = new System.ComponentModel. ComponentResourceManager ( typeof ( accounts )); this .accountStatusTypesBindingSource = new System.Windows.Forms. BindingSource ( this .components); this .bsValueTypes = new System.Windows.Forms. ...Show All
Visual C++ MSBuild in x64 environment with vcproj
Hello, With a quick search in the MSDN, I did not find the issue I am having. If this is already discussed, I apologize. I just got the latest VS2005, and tried to build 64 bit. It fails to build with MSbuild from command line. I have played just short time, and started with very basic. Still I am not successful. I am using VS2005 version is 8.0.50727.42 Here is the very basic scenario. I have created a new blank project "hello", my default is VC++, and added x64 'platform', then removed Win32 from 'platform' and 'active solution platform' via configuration manager. I add a new item C++ file as "test.c" I typed in the famous hello worl ...Show All
Windows Forms Contex Menu with image.
How to add an image in Contex Menu with specific menuItem in Contex Menu. See these links: http://www.codeproject.com/cs/menu/nicemenu.asp http://www.codeproject.com/cs/menu/menuimage.asp http://www.codeproject.com/cs/menu/MenuExtender.asp ...Show All
SQL Server Visual Studio 2005 - "Generate Create Script" for SQL 2000 stored procedure
Hello. I have noticed that "Generate Create Script" feature changed in VS 2005 (compared to 2003). In VS 2003 this feature was displaying dialog window where I could choose some options on what to include in script and where to place it. In VS 2005 this feature just creates SQL script in "Create Scripts" folder, without any intermediate dialog, and now it uses sp_executesql procedure in a script. Is there any way to change this behaviour (back to what it used to be in VS 2003) Thanks Iouri I guess this is a wrong forum - I'll try to re-post this in "Visual Studio General". ...Show All
