Anthony at Beckman's Q&A profile
Windows Forms UserControl expose datagridview columns collection in design time
Hello, I have a user control containing a toolbar and a datagridview, I want to expose the datasource (all ok) and the columns collection (not so ok). I get a basic columns editor, complete different from the one you would expect, I end up having text columns only and I can't add any new columns. Anybody any idea, I just spend 2 hours googling, msning, ... Thanks, Peter Nice. Thank you for the that. Hopefully, with the help of your post ...Show All
.NET Development Synchronising Serial Communication
I have a questiong regarding Serial Communication. Im trying to set up a communication between a computer and a machine. Sending data is not a problem because the machine has already an algorithm to check and validate the data received. But on my side, I have to develop this algorithm to be sure that I get sensefull information. I receive a byte that tells me an id of the type of operation, then a byte which tells me the number of following b ...Show All
SQL Server Visual Studio 2005 and NS 2.0
Does anyone have experience using the new VS 2005 (.NET 2.0) with Notification Services 2.0 and SQL 2000, does it work We're far away from upgrading to SQL 2005, but I'd like to use the new developer tools (ASP and C#) to upgrade my subscription management interface. Thanks, Marcus We went with a complete upgrade, but I cannot expect you would have problems, unless you are wanting to develop custom de ...Show All
Windows Forms Exception Handling in Windows Forms
All, I want to bring the focus to handling General Windows Forms exceptions. In ASP.NET we have Global.asax.cs file that has Application_Error() function where all the exceptions that's not been handled for the application bubbles to the function and you&nb ...Show All
SQL Server How to run "Execute Package" Task Conditionally in SSIS?
I have a boolean variable in my package. How to run "Execute Package" Task Conditionally using that variable For example if the variable is True, I want to run the Task else just skip this task and continue to the next one. The Control flow should continue after this task. How do I achieve this How to do the same for "Execute SQL" task mci wrote: This doe't help I tried it already. It breaks the flow. The control never reache ...Show All
Visual C# How to import a dll made in C++ Win 32
Hello Everyone, I have a dll which is made in Win 32, as it is not an assembly neither COM can't be used as a refrence, so I have to Import it.... Can someone tell me how to do it...As when i do it asks for the entry point and secondly how to call the functions from that dll.....A brief example will be highly appreciATED... Thanks, Harsimrat Thats simple.. u have to use System.Runtime.Interopservices ...Show All
Windows Forms selected item in a list
I'm trying to programmatically select item in a listbox in another program. I figured out the handle to the listbox but I'm having trouble selecting the items in the listbox. I have tried this so far and this doesnt seem to work. Can anyone help me out w/ whats wrong by fixing my code or proposing a new way to tackle this. //I'm trying to setselectionmark to 11th item in the list. SendMessage(tester1,LVM_SETSELECTIONMARK,0,10); //I believe t ...Show All
Visual Studio Express Editions Q: Check user Entry
hi, How can i validate the user entry in a text box if its number or text like for example in vb i used to use this if isnumeric(textbox1.text) then how can i do that in c# thx You can still use IsNumeric if you really want to, but a better way to validate a string for numerical values is with the TryParse method of whatever type of number you want to convert it to, i.e. Integer, Double, Decimal, etc. Like IsNumeric, TryP ...Show All
Software Development for Windows Vista Persistence & tracking in beta 2.2
I have created a simple application with 1 code activity, one delay and another code activity, in that order. If i'm enabling both the tracking and persistence, my workflow stops at unload If one if disabled, the other works just fine. Any ideas why this might happen Are you using a shared database Is the app hosted in ASP.NET or a win form app Can you post your code for creating the runtime and ...Show All
SQL Server Is there transactional consistency across multiple publications?
Hi, Currently, I have Server A which has Publication P1. Server B is subscribed to P1. Let's use 'T1' as the name for the set of tables/articles included in P1. Now I need to add serveral new tables to Server A. Let's call the new set of tables 'T2'. There is a Server C that needs to sync with the data in both T1 and T2. But Server B cannot have T2's data for privacy reasons. One of the solutions I'm thinking about is to create another pub ...Show All
Visual Studio Debugging unit tests using the ASP.Net development web server
Hi, we're having issues while attempting to debug our unit tests for ASP.NET apps, i.e., there is no support for automatic debugging in VS2005. The current msdn documentation on the subject has been deemed incorrect, with forthcoming amendments posted here: http://blogs.msdn.com/vstsue/articles/556002.aspx#DebuggingOnIIS The procedure for IIS works, but after following the steps for Cassini to the letter, i still cannot get the debu ...Show All
Smart Device Development SerialPort.BytesToRead max's out at 2047
Im using a GPS receiver with a PocketPC, and experimenting with using a timer or the DataReceived event to trigger processing the data. When using the timer, and incrementing the interval each time through, I noticed I was missing data between the end of one loop and the start of the next, when the interval was > 10seconds (approx) When using the DataReceived event, worked fine when the ReceivedBytesThreshold property was quite low (<204 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Loading DirectX inside a .NET control
Hey - i am working on a terrain editor, and i need to be able to load the terrain (from my original engine) in a .NET control such as an ImageBox, or SplitPanel - is there anyway to do this, if so how I was sure i saw a tutorial once but i'm drawing a complete blank. Regards James Gupta I do not know about any direct tutorials on creating DirectX devices inside a windows control, but I do have some links to samples that are doing it. T ...Show All
Visual C# datagridview selection and column span
have a DataGridView populated by an SQL db. What i need to do and can't, is to doubleclick a row, and retrieve a value from a column in that row into a string or int. I also need some help on making a column span on a DataGridView.. Could anyone help me on this Thx Pedro ...Show All
SQL Server Calling WebService in SQL2K5 - Error generating XML ...
Hi, I've created a stored procedure in SQL Server 2005 (September CTP) that calls a web service hosted on a local computer. Here is the error message that I am getting: Msg 6522, Level 16, State 1, Procedure GetProductCost, Line 0 A .NET Framework error occurred during execution of user defined routine or aggregate 'GetProductCost': System.InvalidOperationException: There was an error generating the XML document. ---> System.Security. ...Show All
