Alexander Yaremchuk's Q&A profile
Visual Studio Team System Can anyone show me a sample source code in reading SourceContext line number?
Does anyone have a working sample code on how to use SourceContext in a custom rule using FxCop 1.35 What are you trying to achieve with the rule ie What pattern are you trying to detect As mentioned on the previous thread, we don't actually use SourceContext within any of our rules, as the Problem object is responsible for getting the correct source file and line number to display to the user. ...Show All
Visual Studio Team System TF10139: problem after upgrade freom B3R to RTM
Hello all, After the upgrade from B3R to RTM I have the following problem during check-in of an previously excisting project: TF10139: The following check-in policies have not been statisfied Internal error in Ensures that code analysis is run with a defined set of rules. On the project Code Analysis is enabeled and on the Team Project setting: Check in policy: Code Analysis has been added. If I override the policy, I get an error: 'object reference not set to an instance of an object' followed by a message box: Visual Studio Team System Check iN; Operation not performed Obejct reference not set to an instance of an o ...Show All
Visual Basic Converting String to double?
OK i have a plain text file in a rich text box. This plain text file contains for the most part just text, but it has several chunks of data which are apparently stored as doubles For Example this string here: 33333oH@33333oH@26/01/06 I happen to know that the date field is a date of payment, and apparently, the data before this is the amount paid. The original program i am trying to read was written in quickbasic 7. I don't know enough to know how to do what i what. I've tried Try Dim test As String test = "33333oH@33333oH@" Dim Result As Double Result = Convert.ToDouble(test) ...Show All
Software Development for Windows Vista Radeon x600 256MB
Is anyone else running the Radeon x600 256MB Video driver with build 5231 Yes, and I am currently unable to get video working outside of safe mode. Are you having similiar experiences ...Show All
SQL Server Quick Question Importing
Two Quick Question's, Are you better off importing data through Excel or through Text files in terms of ease of use \ Speed \ Efficency etc or does it make a differance Also if I am loading data into a SQL database should I always use the "SQL Server Destination" rather than the "OLE DB Destination" Hope Q's aren't too basic, both seem to work for me, but I just want to make sure im using the right one. Thank you You may find text files a little easier than excel files, because in case of excel files, you may need to do a transformation from unicode to non-unicode characters. For your s ...Show All
Windows Forms Can't Kill WINWORD.EXE...
I've posted a message before, but my question wasn't really answered. I'm using VB.NET to open, print and close a Word Document. Thing is it leaves an instance of WINWORD.EXE in TaskManager - and it seems nothing will kill it. After a while, there are so many instances, the computer runs out of memory - that's annoying to say the&nbs ...Show All
Visual C# Changing width of scrollbar on combo box
I'm currently writing a C# application that will utilize a touchscreen as the primary interface method. Since I'm using a touchscreen and not a mouse, large, easy to hit controls are key. This hasn't been a problem for the most part, but I'm running into trouble in a situation where I use a combo box. I can change font size of the items listed in the combo box, so each row is tall enough to hit easily. The problem is that there are more items in the list than can be displayed on screen at one time, so using the scroll bar is necessary. I havn't been able to find any way to make that vertical scroll bar wider, and it is fairly difficult t ...Show All
Windows Forms Custom Title Bar and Bigger Scrollbar buttons
An application i'm creating needs to have huge buttons for the user. The first problem i'm having is that the scrollbar's buttons aren't tall enough(vscroll). Is there anyway i can make these buttons taller without changing the system options A related question --> I made some owner drawn menu items which make the menu items larger but if there&n ...Show All
Windows Forms Change Imagindex to nothing for particular nodes
My program has to work for two different scenarios. Scenario 1) there is only one tree view and I need an image list for all nodes. The folders have one set of images and the groups have another set of images. I have no problem with this. Scenario 2) There are two tree views. In tree view one and in tree view two, I need the folders to have a set of images for these nodes but for the groups I do not want to have a set of images for them. For scenario one I am using a check box and uncheck box images to show what node is the selected item for the group. For scenario two I am using the two tree views to show t ...Show All
.NET Development LoaderLock
Hi, this is a bit of a wierd one. It was working before without any problems, but after leaving the project for a few days to about 2 weeks, I loaded it up again and for the first time ever when i run this application, it gives me a loaderlock error! LoaderLock was detected Message: DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX.DirectSound\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.DirectSound.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. LoaderLock was detected Message: DLL ...Show All
Software Development for Windows Vista Rules which reference Activity properties in XOML only workflows
Has anyone been successful in creating and executing a rule that refers to an property of an activity which was dropped onto the workflow at design time in a XOML only workflow. In our scenario, we have a hosted designer which outputs XOML only workflows. In the designer, we can drop activities on to the surface and reference activity properties from anywhere on the workflow. HOWEVER, if we write a rule (in a policy or condition) which accesses a property on a dropped on activity, the workflow fails validation. It appears that it can't resolve the child activity types at validation time. When creating the workflow with XAML Activatio ...Show All
.NET Development Unable to get {Watcom 4.0 SQL (ODBC 2.)} driver to connect with .NET 2.0 / C# /System.Data.Odbc
Having gotten System.Data.Odbc connections to work with Access, I've turned to trying to connect to a old legacy application using Watcom. I have successfully used the VS 2005 Data Connection wizard for Server Explorer to access the database and do table reads. I'd like to replace some previous C# code with the Access ODBC driver by that for Watcom. The settings for the Watcom driver in the WinXP ODBC Adminstrator are as follows... Driver – "Watcom SQL 4.0 (ODBC 2.0)" Data Source Name – "TestDB" Description – "" User ID – "dba" Password – "sql" Server Name – &q ...Show All
Smart Device Development Can the .NET compact framework meet my application requirements?
Hi all, This has been a subject I've been researching for a while now and I am still unsure on how best to meet the requirements I have. We have a need to design a mobile application that can run on PDA's or Smartphones or both. This application needs to be able to interface with the device built in camera (if one) and needs to be able to interface with some kind of GPS device. This GPS device needs to be accessed externally via bluetooth or internally or both. We need to store the images persistantly on the device(s) so some kind of persistant storage API is a must. This application needs to talk to a SOAP web service so it needs to u ...Show All
Software Development for Windows Vista [Deleted Post]
Ignore. ...Show All
Windows Forms What's up with the stats page?
Not that it's been all that exciting to look at lately, but what happened to the chart on the stats page Well, this is no good, now is it I'll take a look and see what I find out. ...Show All
