masri's Q&A profile
Visual Studio Team System Team System - Website Under source control
I have the Team Build Configured and I am also able to start the build from any of the client machines. The library, console, windows services and application are all compiling with out any errors but when it comes to compiling websites I am running into issues. All of these projects are under Team System source control. The website has Project references to other library projects within the same solution but the team build does not seem to be copying these referenced assemblies into the website's bin directory after compiling those libraries, because of this the website compilation is failing, is there any thing that i need to do ...Show All
.NET Development xml documentation
Hi! I've a problem cos my boss wants to do a strange thing (i think so). i'm gonna try to explain it: He wants to know how the .net generates the xml documentation when you programmer with c#. I mean which classes of .net are called to generate this xml. Basically, how (I supose) the compiler read (I supose) the .cs file and take just the documentation tags (<summary>,<param>...). Once you've got just the tags you need, it's easy to generate the xml, but i don't know how to do the before step. I have an idea but i think it's not the optimal one. My idea is: open the .cs file and go ...Show All
Smart Device Development Using the emulator with eMbedded Visual C++ 4.0
I am trying to use the emulator with eMbedded Visual C++ 4.0 but the compiler does not seem to recognize that the emulator exists. How do I configure eMbedded Visual C++ 4.0 to use the emulator eVC sees it as a cradled activesync device, the same as a real PDA. Choose "PocketPC 2003 Device". Barry ...Show All
Windows Forms OnClosing() e.Cancel == true on entry
Under what conditions is e.Cancel set to true when OnClosing() is called for a form I've overridden the fuction and sometimes get called with e.Cancel == true when the form's 'x' button is pressed. Is my override responsible for initializing e.Cancel to false Thanks, Ray There a number of situations where OnClosing will be called with Cancel equal to true: If: 1. a derived Form overrides OnClosing and sets Cancel to true and then calls base.OnClosing 2. the Form's OnValidating sets Cancel to true 3. the Form is a MDI child or is owned by another Form and its parent OnValidating sets ...Show All
Windows Forms Virtual ListView Control
Many folks have been asking for a ListView that supports virtualization. Ben Williams, a support engineer at Microsoft, did something about it and wrote a control. Ben's ListView comes bundled with a sample driver app showing how to use it. You can download the package at: <a href="http://windowsforms.net/ControlGallery/ControlDetail.aspx Control=214">http://windowsforms.net/ControlGallery/Con ...Show All
Visual Studio Express Editions FileSystemWatcher problem
I have set up a FileSystemWatcher component in my program to watch a certain folder for new files. It is working fine except that it is firing 2 or 3 times whenever a new file is created in the watched folder, which is causing problems elsewhere in my program. Is there a way in which I can set the FileSystemWatcher component to fire only once for each new file that gets created I have tried changing the .NotifyFilter property to the various options, but I still get the multiple events firing. Thanks for any help... What flags do you have When I set IO.NotifyFilters.FileName only (in the quick testing I di ...Show All
SQL Server Returning SqlDecimal with the correct scale
I have a UDF using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Diagnostics; using System.Text; using Microsoft.SqlServer.Server; public partial class UserDefinedFunctions { [SqlFunction(DataAccess = DataAccessKind.Read)] public static SqlDecimal GetCustomPrice(SqlGuid Item_Key, SqlGuid Company_Key) { SqlDecimal retvalue = new SqlDecimal(); try { StringBuilder sqlstr = new StringBuilder(); sqlstr.Append("SELECT A.Price "); sqlstr.Append("FROM Price A "); sqlstr.Append("JOIN Link_Table B "); sqlstr.Append("ON A.Price_ ...Show All
Visual C# How to set the AutoscrollPosition of a ScrollPanel Control?
The problem I have is when I loose focus of the control and get focus back, the autoscrollPosition is set to 0,0. I tried to set the AutoscrollPosition on the Enter event, but it stays 0,0. sample code: System.Drawing.Point mAutoScrollPosition = new System.Drawing.Point(-50,-300); scrollPanel.AutoScrollPosition=mAutoScrollPosition; scrollPanel.AutoScrollPosition stays 0,0. Any help will be appreciated. ...Show All
Visual Studio Express Editions removing items from a list box based on the individual items content
hello i am trying to remove items from a list box based on if they contain the text acknowledged or not. If i acknowledge 1 item , it appends the word acknowledge to the end of the currently selected item in the listbox, then if i click my clear button the item in the list box will go using removeat key word. however, if i click the button acknowledge all then this adds the string acknowledge to the end of all items in the list box my problem is if i then select the clear button only half the items will be gone even thoguh all items show has having the word acknowledge appended to them in the list box. its an alarm list. here is ...Show All
Smart Device Development XSLT support or ideas?
Hey I have just found out the bad news the the .NET CF does not support XSLT transformation of XML documents. However, I really need this kind of technique, or I need some way to format my XML without using an external XSLT document. Any ideas It probably won't be available because it's rarely needed and quite bulky. On a bright side, you could use MSXML 3.0 available on WM 5.0 via NETCF V2 COM interop. ...Show All
Windows Forms DataGridView KeyDown?
(VS2005 - beta 2) Hello, is there anyway to capture a keypress or keydown event in the DataGridView I know there's events called KeyDown and Keypress, but if the DGV is in edit mode, they never get caught. My ultimate goal is to make it so pressing enter moves to the Cell to the right, instead of to the next row but I need to know what key is being pressed before I can do that. Thanks -Adam Hi Logan I would explain step by step You have to derive the datagridview class to do this. First you have to add a new class1.vb to your project and write some code in it: Public Class DGV ...Show All
Visual C# Declaring an array
I want to declare an array that will hold 3 values then i want to add all those three values and divide it by 3....to return the average...how should i start should i declare a method called average with three arguments or should i just declare an array and create and pass all these values through a foreach statement to return the total and then take the total and divide it by the values in the array any help out there If you say so...thanks for the help i find these forums very helpful on the explanation side i was able to do what i needed for my program its just strange when i incorporate these code samples none of them work...but ...Show All
Visual Studio Tools for Office Managed Outlook add-ins do not start automatically
Hi! I've played around a little bit with managed outlook add-ins. They work fine so far. The problem. assume that i've activated such an add-in within outlook - and it works. when i shutdown outlook and restart it again, the add-in is not loaded automatically! when i go to the outlook add-in manager, it's still activated (selected). i then have to deselect it, close the dialog and reopen it and select it again, close it and then the add-in runs again... any ideas thanks -olaf See also this blog post: http://blogs.msdn.com/eric_carter/archive/2005/02/01/365021.aspx ...Show All
SQL Server Suppress Text Wrap
Is there a way to keep text from wrapping to the next line if it hits the width of the containing item Yes, the property "CanGrow" will determine whether or not something will automatically resize. Simply set this value to false and the value will not wrap to the next line. ...Show All
Smart Device Development WaveIn
Greetings, We are using the WaveIn/Out PInvoke framework provided by MS to capture audio on an iPaq and do some processing on that audio in a .NET CF app. The problem we are encountering can best be described as a "drift" issue. Basically, we are capturing using 1 second buffers (44100, 16 bit, mono audio) and WaveIn appears to be passing in the 1 second buffers faster than real-time (ie after 120 seconds of audio is captured, WaveIn has passed in, say, 122 buffers of audio). I've verified that the audio buffers are setup properly and all the params to WaveIn appear to be correct. Anyone have any clues what might be wrong or enc ...Show All
