Bin Ali's Q&A profile
Software Development for Windows Vista Filtering activities before insertion; ActivityValidator question
Hi! I have 2 questions actually: I am hosting the designer in my app with a custom root activity as the root designer. This root activity can have child activities where exactly 1 child can be of the type StartActivity (also a custom activity) and several childs can be EndActivity. I overrid InsertActivities of the designer to check wheter there is already a StartActivity. If there is, I give a list of activities to the base.InsertActivities where I filtered out the new StartActivity which is about to be inserted. This works well for Drag&Drop operations from the Toolbox, I get my message as expected and the 2nd StartActivity is not inserted. However if I copy (using Copy&Paste) a 2nd StartActivity, my message pops u ...Show All
SQL Server sql server connection
when I try to connect my application for database in sql server 2003, while compiling there is an error message "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. That occurs in the code Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load DACategories.Fill(CategoriesProducts1, "Categories") DAProducts.Fill(CategoriesProducts1, "Products") End Sub how can I solve this. I uninstalled and installed SQL twice and VB.net once, but the problem was not solved Hi ananta, Could you please provide the connection string that you're u ...Show All
Visual Studio Text editor options for custom language (MPF April 2006)
Hi All: I'm trying to create my own custom language (MyLang) using the default editor. I've a VSIP package and corresponding LanguageService object. MyPackage: [ ProvideService ( typeof ( MyLangPackage ))] [ ProvideLanguageExtension ( typeof ( MyLang ), ".ext" )] [ PackageRegistration (UseManagedResourcesOnly = true )] [ProvideLanguageService ( typeof ( NSISLanguageService ), "MyLang" ,0) ] [ Guid ( "1fce6824-1d1d-4f96-9a01-6e1fAf47a863" )] public class MyLangPackage : ProjectPackage , IOleComponent { ... } Within the MyLang looks like: [ Guid ( "81d82ae6-7746-499e-970f-842755bc9498" )] [ ComVisible ( true )] class MyLang : LanguageService { ... public o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Crashing Saleen, early XNA demo?
I remember when I first heard of XNA at Microsoft's press conference at GDC 2004. They showed off a really stunning demo of a Saleen crashing into a concrete wall. Go to Gamespot and have a look for yourself, if you haven't already, http://www.gamespot.com/news/6092125.html q=XNA. Will that demo and source code ever be available Cheers Alfons I just watched it for the first time, and it was impresive. I wonder how they did all that without the content pipeline. And with that background music, the demo must of been 500MB. All kidding aside, it would be cool to see this source code come out. ...Show All
SQL Server Toggle item RS 2000
HI, I would like All Toggles will be open while i print the report can i do it or i need to open them and only after that prit the report Hi, yes, you wil have to toggle them before. There is no different settings for printing. If there are too many of collapsed areas, you should consider using an additional parameter which is queried in every toggle item for existance, which then manages the toggle of the areas. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Microsoft ISV Community Center Forums Help to create a new table using VBA codes
Hello All, How to copy a structure of an existing table to a new table and also i need to change a particular field in that table to Primary key. (in MS Access) i can create it using gui but i need it in code. Please help me for this code. Thanx in Advance Madhan Hi Madhan, You have a couple of approaches. Look at the TableDef object, which is part of DAO, this lets you alter the definition of a table. The other option is to use ADO and that involves adding a referenc to Microsoft ADO Ext. 2.7 for DLL and Security objects. In here there is a collection of objects that let you modify table and database structure for example the Table and Key objects. I don't have any specific code for you but the help files and some edu ...Show All
Smart Device Development Eureka
Hi I am writing code for smartphone 2003 SE to access internet asynchronously. After 2 days of headbanging with asynchronous logic in wininet, I m facing this utterly unexpected problem when I call InternetReadFileEx function. Earlier I was getting error 120 when I called it. After a few painful hours of googling I found out that the unicode version of this function hasnt been implemented by the guys at MSFT. Huh. So i resorted to the ascii version InternetReadFileA(). Accordingly I m also using INTERNET_BUFFERSA now. Now this function is failing miserably with error code 12018 which translates to ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE and texted as "The manifest is missing the required default namespace specification on ...Show All
Community Chat SaveProjectAs
Ok...After hearing some complaints on this these boards about not having a "Project Save As" that saves the entire project to a new destination and name...I created this addin for VS05 that does just that. The addin creates a 'Save Project As' menu item off of the file menu and allows the user to select a VB or C# project file and then select a new destination directory and a new name for the project. All standard dialogs used. you can download the xcopy deployment files from: http://codegallery.gotdotnet.com/SaveProjectAs The zip file contains two files: SaveProjectAs.AddIn and SaveProjectAs.dll and all you have to do to get it to work is to unzip the files into your addin directory... Please use this thread or ...Show All
Visual Studio Tools for Office Disappearing Document ActionTask Panes with Word
I've been working on a fairly complex Word VSTO application which is about complete, except for some intermitent strange behavior which happens after a document has been saved. When reopening the document ( either the saved one or starting the new one via the application word template) one of two things may happen. 1) the document action pane begins to display and then closes , leaving only the getting started task pane. it is not listed as a disabled application, logging off and back on will fix the problem as if it had been black listed 2) The Document Actions pane stays open, but the two actions pane controls which should be there are not visible, despite code (msgbox(me.ActionsPane.Controls(1).Visible) claiming the control IS ...Show All
Software Development for Windows Vista Radio Button Patterns in WPF?
I am trying to write an automation provider for a collection of radio buttons in a WPF application. The help files seem to indicate that I should implement a selection provider pattern for the collection, which would mean that the Radio Buttons support the Selection Item provider pattern. Unfortunately radio buttons do not seem to support any Automation patterns. Does this mean I will need to create a custom Radio Button class that implements the pattern I need to use or is there an easier way around this problem Hi, Have you implemented the selection provider in the program that you are trying to control The generic radio buttons do not atuomatically support any providers and so will not ...Show All
SQL Server How do I find the total memroy consumed by a SQL2K5 instance
My Box: I have an SQL2k5 Dev 64 bit running on a Win2K3 64 bit box with 12 GB of RAM with two dual cores intel xeon processors. My concern: Task manager never shows sqlserver.exe consuming more than 500 MB of memory even when running very big jobs.( for e.g. joins on mutliple tables of 10 Million plus rows with lots of calculations while also using some CLR UDFs) My question: Is the task manager best way to find the total memory consumption by a SQL2K5 instance is there any other way to find the total memory consumption by SQL2K5 Apprciate any answers or leads. Thanks Saptagiri Tangudu PNT Marketing Services Inc. Yes there are other methods/mechanisms and in fact task mgr is horrible overall f ...Show All
Visual Studio Express Editions help splitting text
I need some help splitting up some text that looks like this BOS DH 34 or other ways like (3 chars) *blank space* (2 chars) *blank space* (1+ chars) the last set can be a single digits or 2 digits. thanks for the advice OK I have not change the could but am at home and am getting an error on this code of: Index and length must refer to a location within the string. Parameter name: length the error is pointed tot he second line Dim s As String = "BOS DH 34" Dim IDid = S.Substring(0, 3) + S.Substring(7, 2) Dim teamname = S.Substring(0, 3) Dim playerposition = S.Substring(4, 3) Why would this not work on my home computer ...Show All
SQL Server How do I Install SQL Server Compact Edition from a storage card on a device
Hi all experts, in case of a cold boot on a device, I insert the the flash SD disk in a device and install the NETCF 2.0 by clicking on the NETCFv2.wm.armv4i.cab which iI previously copied, that's fine it works OK, but is there a cab file for Sql server CE that i can install from the flash disk as well, I'm trying the Sqlce30setupen.msi, SQLServerCE31-EN.msi, an I get a device message "There is no application associated....." TIA Jack You need the cab files located at: C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce500\armv4i For Mobile 5, Pocket PC, base: sqlce30.ppc.wce5.armv4i.CAB (required) For Mobile 5, Pocket PC, Replica ...Show All
SQL Server Using expressions with FlatFile connections?
This seems so obvious, but is causing me a lot of trouble: The flat files input to my SSIS packages may contain an empty line between each row of data, or may be "continuous" without any extra empty lines. Here are small examples of the data I'm working with: With the extra line: "M","SFH","Single Family Mortgage Loans","Single Fam Mtg" "M","MFH","Multifamily Mortgage Loans","Multi-Fam Mtg" "R","MIX","Mixed/Various/Unknown","Mixed/Various" Without the extra line: "M","SFH","Single Family Mortgage Loans","Single Fam Mtg" "M","MFH","Mult ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
