shy_man's Q&A profile
Windows Forms Create an event for the close button on the title bar
Hello, I am using VS 2003. Lets say for example we have just a simple form and at the top of the form we have the default minimize, maximize and close button. How would I create an event for when if the user clicks the close button at the top of the form before the window closed it would perform an operation For example, if the user clicked the close button at the top, it would print a message box saying "Are you sure you want to cl ...Show All
Visual C++ C++ polygon class
Hello, is there a nice C++ (or java) class with free source code dealing with irregular 2D polygons out there on the Internet Thanks in advance Jean-Marie A quick search on the internet revealed http://www.codeproject.com/cpp/2dpolyclip.asp . Also, you might find more information on graphics agorithm related sites or forums (e.g. http://forums.microsoft.com/msdn/default.aspx ForumGroupID=20 ) Thanks, A ...Show All
Windows Forms tableLayoutPanel bugs
i have an tableLayoutPanel on my form which CellBorderStyle property is set to "Inset". it takes seconds to render this panel. but if i set CellBorderStyle property to "None" it is many times faster. this must be a bug. Another bug that tableLayoutPanel has is sometimes you cannot drag and drop controls in it, you have to edit Cell property. But becareful while editing, cause you cannot edit this property like width and he ...Show All
SQL Server The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect
I've read the other posts related to this issue, but I'm just REALLY confused as to whats happening in my case. Like everyone else it was working fine in SQL 2000 but now in SQL 2005 there is an issue. I'm calling a stored procedure with parameters defined like this: @action varchar(10), @GLTransactionID int = NULL OUTPUT , @GLBatchID int = NULL , @GLAccountID int = NULL , @CurrencyID int = NULL , @LocalDebit decimal(28, 13) = NULL , @LocalC ...Show All
Smart Device Development C1190 error when compiling...
Hi, all, I am using Visual studio 2005 to make a Visual c++ project. I was trying to make a simple UDP socket and threading program. The device manager i am using is wm 5.0 for Smartphone, and wm 5.0 Smartphone emulator. Here is what I have in the header file: #using <mscorlib.dll> using namespace System; using namespace System::Threading; using namespace System::Data; using namespace System::Net; using ...Show All
Visual Studio Team System Catch and Exception Handling
Sub test() Try Dim x As Integer x = 10 x = x * 15 Catch ex As SystemException Console.WriteLine("SystemException") Catch ex As InvalidCastException Console.WriteLine("InvalidCastException") End Try End Sub The problem here is that the catch for SystemException comes before the catch for InvalidCastException. Since SystemException is a parent class for InvalidCastException, th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting a custom cursor image [MDX2]
Hello all, I'm not sure if this post landed in the right forum, I'm sorry if it didn't. I'm developing a smallish Managed DirectX (2.0) application and I would like to change the standard mouse cursor image to my own image. I've created a small 32x32 image that I would like to have instead of the normal windows cursor. I guess this would change the cursor in other windows applications aswell during the time my application is running but that is ...Show All
Software Development for Windows Vista Inter-activity communication?
Just starting with Beta 2 of WWF and I've come across an issue that I cannot seem to find any guidance on. I have a sequential workflow with a series of individual activities that need to be conditionally executed depending on if the previous activity completed sucessfully, this is the easy part as WWF already handles it. As my activities execute I need them to be able to 'publish' one or more parameters and make those available to one or more o ...Show All
Visual Studio Team System Creating project tree structure, how?
Hi all, i've got installed TFb3, now i want to make a structure for our projects. How could i create something like this: tf | |-Company_A- | |-Project_Aa- | | |-subproject_Aaa | | |-subproject_Aab | ...Show All
Visual Studio Team System LoadTest.ThresholdExceeded problem
Hi, I wrote a simple load test plugin and used LoadTest.ThresholdExceeded. I set a threshold rule for process time in the local machine (testing machine). In the handler, I specified that when an ThresholdExceeded event occured, a message box wouldl pop up and the load test would be aborted. But it seems to me the handler was not working well. Although I saw a lot of threshold violations in the in the test result wizard, I never got any ...Show All
Visual C++ my visual c-code and visual c++ code after execution gives different answers
hallo, I have a simple visual c-code and visual c++ code.both codes are supposed to give me the same answer after execution.but the c-code gives me the write answer and the c++ code gives me a wrong answer. it's a floating point algorithmus code. Can anyone help me am guessing,it's a compiler setting problem.... Divini Please post a sample exhibiting both cases. Without such sample or repro case, it is really hard to speculate what is rea ...Show All
SQL Server Problem with a Replication with two publications
Hi. I have a database with two publications. One publication is used to replicate data among 4 SQL Servers, while the other is used for the replication with SQL Server CE clients. The problem here is that the SQLCE receive a number of changes that it is not correct. Before establishing the publication for SQL Servers the SQL CE clients were working great, but now i have this problem. Is there any patch or fix I should install on the server , or ...Show All
Visual Basic Printing forms using VB2005 Express Edition
How do I printout text and graphics on forms using VB2005 Express Edition You print in .NET using the PrintDocument class. The 2003 101 Samples contain a printing example. I'm not sure about the 2005 101 Samples but the process hasn't changed so you can still use the 2003 version. Search MSDN for '101'. ...Show All
SQL Server TFSWarehouseDataSourceView is missing
urgent: When trying to process the warehouse (TFSWarehouse) manually using the analysis services (in the sql server management studio) the following message is shown: TFSWarehouseDataSourceView is missing. I doublechecked and there's no TFSWarehouseDataSource in the "Data Source View" subdirectory. how can I restore or create this datasourceview I've got the schema of this datasourceView: <Create xmlns="http://schemas.microso ...Show All
SQL Server SSRS 2005 XML datasource & report subscription question
I'm working to enable subscriptions on some reports that have an active directory web service as a datasource as well as a standard datasource to a SQL server db. I'm admittedly new to reporting services '05, but some research tells me I can't do the job with the current configuration. As the AD web service is an XML datasource, I'm not sure if I can pass an expression...and the reporting service manager won't let me store the credentials on ...Show All
