Michael Mileos's Q&A profile
Visual Studio 2008 (Pre-release) FaultException
In running the ErrorHandling sample in the sdk it always returns UnknownFaultExceptions never typed FaultException<xxx> from the Factorial calls. Also the exception handling in WCF is quite frustrating. If I call one service which in turn calls another service which throws some exception it never gets to my first service. I implement IErrorHandler on both services and the HandleError gets called in the 2nd service, but the exceptio ...Show All
Smart Device Development Control Focus Problem - a Bug? or..
Hi, i would like to create a simple control that changes its background color depending upon whether it is focused or not. i have the following code. class mylabel : Control { protected override void OnGotFocus( EventArgs e) { base .OnGotFocus(e); this .BackColor = Color .Red; } protected override void OnLostFocus( EventArgs e) { base .OnLostFocus(e); this .BackColor = Color .White; } } The pro ...Show All
Visual Studio Tools for Office Problem using Chart Export with VB .NET on MS Office 2003 on XP
For the last 2 days solid I have been chasing a problem. I've found it impossible to use the Chart Export facility in a Excel VB.NET from the Microsoft.Office.Interop.Excel references. The system is as follows:- VB.NET 2003 Version 7.1.3088 .NET Framework 1.1 Version 1.1.4322 SP1 Microsoft XP Pro, Version 2002 SP2. My cut down code to show the problem is as follows, and is called simply by clicking a button on a Form with nothing else on it:- ...Show All
Windows Forms Icon Colors
Is there anyway to increase the color palette for icons in Visual Studio.Net That fixed my issue. Thanks. I don't know why I didn't think of the new image type before. All I did was open my old icons, copy the content, a ...Show All
Visual Studio Team System Error while running VSTS
Hi, I Have installed VSTS on my system. It is giving the following error when i am trying to run it. Package Load Failure - Package 'Microsoft.VisualStudio.Qualitytools.TestCaseManagement.QualitytoolsPackage, Microsoft.VisualStudio.Qualitytools.TestCaseManagement.QualitytoolsPackage, version=8.0.1200.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' has failed to load properly. Please contact package vendor for assistance. Application ...Show All
Windows Search Technologies How to kill a process that is not even listed in task manager?
Hi, I'm having a problem to kill a process. For your information, the process is not even listed in the task manager. I would like to delete that particular file, but it seems like there's a process of software currently associated with that file. When i try to rename, move or delete that file, an error came out saying: "Cannot delete filename: It being used by another person of program. Close any programs that might be using the file and t ...Show All
Windows Forms programmatically select a cell in the datagrid
Does anybody know how to select a particular cell except for the CurrentCell I know that the CellFormatting method gives us a variable that contains the address of the current cell where we can access the CellStyle method to format the backco ...Show All
Windows Forms addition date
I am using VB.NET windows forms. I have problem with addition(+) between startdate and enddate I want to show value to total how many day example startdate =#01/01/2003# enddate =#02/05/2003# totaldate = startdate+enddate what is sum value totaldate Can any one help Thanks ...Show All
Visual Studio Team System Build always checks out most of 'Bin' directory? (VS2005 Team Suite RC1)
I searched a bit for this, but VS2005 Team Suite has been checking out most of my 'Bin' directory each time I open OR build my solution. Has anyone seen this before Is this simply an option that I have forgotten to turn off or is this a bug fixed in RTM Its a very annoying behavior, because often I just want to build the solution and don't have any pending changes, but because its checking out everything all the time it picks up all the Bin and ...Show All
SQL Server Executing .sql file using SMO
Hi all, Is it possible to execute a .sql file using SMO. like in old days we used to use osql.exe to execute the sql files Thanks in advance Rujith Hi, you don’t need SMO for that,executing scripts can be done via a *normal* sqlconnection (untested script, just wroite down in notepad) static void Main(string[] args) { if (args[0] == null) { Console.WriteLine("No file ...Show All
SQL Server Unable to use Reporting Services
Hi, After installing Sql server 2005 CTP09, we can neither connect to reporting services trought Management Studio nore to reportserver. Using Management Studion we are getting this message: TITLE: Connect to Server ------------------------------ Cannot connect to XXXXXX. ------------------------------ ADDITIONAL INFORMATION: The underlying connection was closed: An unexpected error occurred on a receive. (Microsoft.SqlServer.Man ...Show All
SQL Server SQL Express not updating database
I recently converted a program I made in C# from Access to Sql Server Express and I noticed something odd. Anytime I update or insert data into the database, it only sticks around until the program closes. I can insert new records but as soon as the program quits, the inserts are gone. Is this a bug or is there something else I need to do Hi, seems that you open a transaction and didn’t commit it. Did you try t ...Show All
SQL Server CTE behaviour in SQL 2005
I were trying to achive paging through using a CTE etc, but ran into the following weither thing happening. The CTE allows me to use avariable as the ORder By field, although the CTE do not care at all what is in there Have any one seen this or maybe can explain this USE AdventureWorks ; GO DECLARE @SortExpression Varchar ( 50 ) Set @SortExpression = 'SalesPersonID ASC' ; WITH Sales_CTE ( RowNu ...Show All
.NET Development Synchronizing a Queue
hi, i'm developing a rs-232 to rs-232 bridge, with a tcp/ip or udp connection in the middle, now in my design i generate an object wich is called CommEvent wich has info about a change in the serial port, wether it's new data received or a line change. I'm posting this object from my class that handles serial communication to the class that handles the tcp/ip and udp section of the bridge as an event. now in the class that handles the tc ...Show All
Visual Basic Amazing super serious bug..
Using 2005 RTM In our file based Webb application, we add a new page. Then we add this simple code. Dim bTest as Boolean = True If Not bTest Then Debug.WriteLine("bTest is false") End If And Guess what, the debug line is printed. If I do a breakpoint on the If line, and add a watch for bTest its TRUE, still it goes into the if statement. Rebuilding the solution dont help. I cant replicate it on any other project at the moment, b ...Show All
