Bovril2006's Q&A profile
Windows Forms My.Settings - scope problem.
G'day, I've discovered an interesting problem with the my.settings namespace and my deployment strategy. I was hoping for some feedback from the group. Senario VS 2003 solution upgraded to VS2005. VB.net 2005 windows form solution with a GUI project + .snk (strong name signature). Windows application framework settings selected in the project. The GUI project is signed to allow licensing to be inserted into the application. VS2005 MSI package in release mode for deployement to \\Program Files\ My Company Name\Product Name\ folder for general users. Independant MSI Product Code. VS2005 MSI package in deployin ...Show All
Software Development for Windows Vista How to evalute a workflow parameter in a rule based condition?
Using the PDC bits, I'm trying to assign a rule based condition to an IfElse branch. The rule wants to references a workflow parameter initialized by the host application when the workflow is started. For instance the host initializes a parameter called Name with the value "Test". The IfElse branch1 condition's rule is trying to evaluate a predicate like Name == "Test". What do I need to do to specify in the rule that Name is a workflow parameter Name cannot be a constant value, and I don't seem to be able to access the workflow parameters using the scoped members. Thanks -Joel JD3027, ...Show All
Smart Device Development Microsoft Device Emulator Community Preview - Won't Start
Windows 2000 SP4 I have installed the Microsoft Device Emulator Community Preview, with ActiveSync, but am unable to get it to Cold Boot. The furthest it gets is the emulator window with skin launches and then I get an error "DeviceEmulator..exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created." Even with the /c option, I am not provided with any debug information. Your assistance is greatly appreciated. Respectfully, Gary This is really starting to frustrate me. This is my third day working on ...Show All
Windows Forms Changing Parent Items From Child
How can I change parent items such as menu items from a child First of all, the menu items aren't going to be hidden, right They're disabled. And, they will be disabled if there aren't any children. That's the point. You update the availability of the menu items each time you pull down the menu, so that if there aren't any&nbs ...Show All
Software Development for Windows Vista Access violation errors
Hi. I'm trying to make a DirectShow app in C++. I'm using Visual Studio 2005 Express, and I don't want to use .NET for various uninteresting reasons. I can get programmes to compile fine, but every time I try to run them it comes up with access violation errors. I feel sure there's something fairly simple and probably fairly obvious I'm doing wrong, but I really don't know where to start figuring out what that thing is. In this example, the violation occurs when I try to call pGrab->SetOneShot( true );. The really strange thing is that calling pGrab->SetOneShot( false ); works perfectly, or appears to (or rather, ...Show All
Visual Studio Comments and CommentShapes
I've been looking at adding comment shapes to my designer, and came across the Microsoft.VisualStudio.Modeling.Diagrams.CommentShape and Microsoft.VisualStudio.Modeling.Comment classes. "CommentShape" is particularly interesting; it isn't abstract, it isn't related to a model element, I can add instances to my diagram, and it automatically displays multi-line by default. However, should I be using it directly, or should I derive a custom shape from it "Comment" looks less useful, as I'm looking to provide the user with some way of annotating a diagram that doesn't really have a parallel in the underlying model. In a ...Show All
SQL Server CTE in a DSV named query
Hello, I have a CTE that I want to put into a DSV named query. here is the CTE (which anyone can run): WITH mycte AS (SELECT TOP (200) object_id, name, column_id, system_type_id FROM sys.columns) SELECT object_id, name, column_id, system_type_id FROM mycte AS mycte_1 I can put that into the named query editor and run it, no problems. Upon clicking "OK" I get: Incorrect syntax near ')' Incorrect syntax near the keyword 'with'/ If this statement is a common table expression or an xmlnamespaces clause the previous statement must be terminated with a semicolon. So, I put a semicolon i ...Show All
Visual C# How to Launch an executable from a hyperlink?
Is it possible to launch an executable from a hyperlink. Within an application I hope to create a hyperlink to a document, when the user clicks the link I want it to call a hyperlink with \\my.exe ...blah parameters, to open a specified document. Would somebody be kind enough to suggest a way to do this. The application is windows forms application and the .exe will provide a viewer for the document. The document cant be viewed in Internet explorer. I understand that there maybe some issues with security and launching an executable from a hyperlink without get the "this may harm you PC" prompt. Any implementation sugges ...Show All
.NET Development unable to connect to SQL server
hi everybody! I am just a beginner in asp.net. i am trying to connect to the sql server and getting an error: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection. the code line for connection is : cn.ConnectionString = "Data Source=DENVER; Initial catalog=pubs; user id=sa ; Pwd=" right click on the server name - properties gives a message saying only sysadmin can access this feature. do i need to change something in code please help. Hey, sa is the system account; do you have access to that account and is it a blank password Also, if logging ...Show All
SQL Server Newbie question about indexes
Hi , I have following statement : SELECT * FROM Table WHERE Col1=@Var1 AND Col2=@Var2 ... AND ColN=@VarN How should I design indexes for best performance ( Add one index on columns Col1 till ColN or add N indexes, first for column Col1, second for Col2, ... ) Thanks, for your suggestions Here's what the optimizer guys have to say: One index should be fine if he always has every column in the WHERE condition and he is doing equality matching. This will give two main plan options: 1. index lookup + fetch 2. table scan It will be a cost-based decision. ...Show All
Windows Forms how to Serialize System.Windows.Forms.Controls or deep copy of an windows control?
Hi, I want to serialize the windows control to make the deep copy of the control.Is there any ways to make the deep copy of an windows control Thanks, Arun ...Show All
Visual Studio Team System Extract text - need the code
Hi, I want to see how the extraction rule - extract text has been implemented. Can anyone provide the code. I am trying to implement my custom extraction rule with a few modifications...it would be a big help to me. Thanks, Shrad Here's a sample regex search routine that can be used in a custom extract text rule. public enum SearchResult { Found, StartsWithNotFound, EndsWithNotFound, } /// /// Does the work to find the text. /// document is set from e.Response.BodyString /// /// string to search /// Found if start/end found, ...Show All
SQL Server Sum from two tables.
Hi, I'm new with this SQL and I have one question where I need help. I have 2 tables (Table1) and (Table2). Both tables have columns (ItemNum) and (Pcs). Table1 is for items which we have. Table 2 is for items which we have delivered. I need to calculate the sum of how much we have Items. So the query should show ItemNum and how many pcs we have. Example: Table 1 Id ItemNum Pcs 1 1 10 2 2 30 3 1 22 Table 2 Id ItemNum Pcs 1 1 6 2 2 12 3 1 6 So the Query should show Item ...Show All
Visual Studio Express Editions How do I create a C# add-in for MS Outlook?
Is there a document sowewhere which describes how to create an add-in for MS Outlook 2003 in c#. Can I use Visual C# Express Many thanks, Maybe this one http://msdn.microsoft.com/msdnmag/issues/06/03/OutlookAddIns/ ...Show All
Visual Studio Express Editions Unknown error while Installing Visual C# Express.
Hi, I'm using Windows 2000 (Can't use Windows XP, gone over discussion many times, no solution as to why) and can't install Visual C# Express. I get the Unknown Error message, no clue why. It appears while i'm installing the Document Explorer, and sometime around the Visual C# base installation. I click OK on each and installation goes smoothly besides the error. Except for the SQL Server 2005 installation, that always fails. When I try to run the program, I get the same message. In the System Requirements, it says I can run on Windows 2000 so I don't think it's a Windows XP only problem. I searched this board to see if others had my ...Show All
