ataparia's Q&A profile
Visual Studio Team System TestInitialize Called More Than Once Per Class? And TestContext.WriteLine()
Hello, I started having issues with a set of unit tests that I wrote when I added a File.Copy routine to the TestInitalize method. It seems that the initialization is happening once per test in the class, not once for the entire class. Is that the correct behaviour Isn't it supposed to be once per class To try and test this theory further (without having to step through it) I tried the TestContext.WriteLine() method ...Show All
Windows Forms manually raise event for ComboBox
In a form, I have a ComboBox. In the form load event handler , in some cases it is bound with some data and in other cases it is empty. If it is bound with some data, I want to select the first item in the combo's items and manually raise its SelectedIndexChanged event to do some processing. Note all the above is done in the form's load event handler. Could I do that and how The alternative now I use is to define another method to do the proc ...Show All
Smart Device Development .Net CF 2.0 - Prevent device from sleeping
Hello, I've been looking for a way to (optionally) prevent a pocketpc 2k3 device from going into sleep mode while my app is running, but could not find anything. Any suggestions --John (update) Also, Is there a way to keep the screen light from going out without user interaction And something more extreme, can one change the way devices behave during sleep mode (e.g. keep WiFi in a running state like GSM phone device) ...Show All
SQL Server SQL Express user permissions?
I'm trying to build a web application using SQL2005 Express and Visual Studio Express. It all works OK on the local machine, but gives an error "Login failed for user xxxx\ASPNET" when used remotely. I can't find where I can set login permissions for SQLServer 2005 Expresss - can anyone help, please Thanks John Remote connections are disabled by default. You can use the Surface Area Configuration t ...Show All
Visual C# good and cheap DBGrid for C#
hi, can anyone recommend and good and cheap DBGrid for C# application. The most important for me is to assign an ID (e.g. Primary Key) for each row instead for adding it as a column but hide it which i feel it's stupid way... Many Thanks, Jassim Rahma Here is a list of third party controls: XtraGrid Spreadsheet FlyGrid iGrid List of top rated grid products ...Show All
Windows Forms Wheel mouse event
Hi, How can I catch the wheel mouse event on panel (or user control, or every othe control) Thank's Alexei Hi, I have found the solution: in mouse enter event set focus on panel... After it the wheel event is fired. Thank's Alexei ...Show All
Visual Basic How to use a Process to run CMD and a DOS utility to send Commands
Hello, I need some help. I want to write a program that will do the following: 1. Start a process that will run CMD.exe 2. Once in CMD window run the DOS utility (i.e., "C:\utility.exe Command) where Command is the command to send to a device. 3. There are about 5 or 6 commands that I need to send to configure a device using this utility. This utility exits with the "quit" command and returns to CMD window. Ca ...Show All
Visual Studio Team System Failed to install latest June CTP SQL Server 2005 and TFS
I want to install the latest June CTP SQL Server 2005 and TFS on a single computer, but failed miserably. SQL Server requires an slighter older version of .NET Framework 2.0 while TFS uses a version dated 06/01/2005. I tried to install SQL Server first and then uninstall the Framework and install 06/01 version, but got errors during TFS setup (sorry, could not remeber clearly what the errors are). Is there a workaround for this problem or Do I ...Show All
Software Development for Windows Vista Question on <Glyphs> element
Hi, Was going throught the XPS specification. Noticed that the <Glyph> element can have a Fill attribute, but not a Stroke attribute. Also noticed that there is a <Glyphs.Fill> element. Wonder why stroke is missing for a <Glyphs> element. However did see that <Path> has both stroke and Fill attributes as well as the corresponding <Path.Fill> and <Path.Stroke> elements. Any reason stroking ...Show All
Visual Studio Team System Teambuild: Customizing the e-mail sent when a build completes.
Hi all, I'm looking at customizing the email sent by TFS when a build completes. I found the XSL file defining the format of the mail (C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\bisserver\events\EventSchemas\BuildCompletionEvent.xsl) but how can I do the following: _ Change the subject of the mail (I would like to tag it with SUCCESS or FAILURE) _ Modify the XML on which the BuildCompletionEvent.XSL stylesheet is ...Show All
.NET Development Enumerating Domain/Realm for login Form
Hello, I am a .NET newbie. I want to write Login Form similar to Windows Login Dialog in one of my applications say MyApp. Here are my requirements. 1. The login form contains Login ID, password and Realm fields. 2. The realm is a combo box which should list the following items a. "MyApp SQL Server Database" b. A List of all available NT domains which can authenticate a user/password from the machine on which ...Show All
Visual Studio Tools for Office exporting mdf to excel format
Hi would someone be able to help with converting database .mdf file to excel. Im informed that this is possible in .net using office extensions, however im not sure how. Please could someone point me in the right direction. Thanks You can actaully export data from SQL Server directly into a new Excel spreadsheet. For further details on how to do this from code, please post your question on the MSDN ...Show All
Smart Device Development [C++] [MAPI] How to force mail sendind ?
My question is how, in the soft, flush an outlook account. I can create a email "ready to be send" but if i want it to be send immediatly how i do 1- Create an email :i know how to do that 2- Send the email :i don't know as my email is marked "ready to be send" i want to send immediatly without user intervention See http://forums.microsoft.com/msdn/ShowPost.aspx PostID=66330 ...Show All
Windows Forms Startup Switch
Is it possible to use a startup switches If so how would I access them using VB.net What I'd like to do is have a shortcut that calls MyApp.exe /startup. If the startup switch is set then the app would just display in the sys ...Show All
Smart Device Development Type Load Exception
Hi, I have this occasionally re-occurring problem which has just re-appeared and feel its time I go to the bottom of it... A project which previously ran OK now throws a System.TypeLoadException with following details... Additional information: Could not load type Microsoft.VisualBasic.CompilerServices.ProjectData from assembly Microsoft.VisualBasic, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A. I'm guessing this a versio ...Show All
