Facey's Q&A profile
Windows Forms ClickOnce deployment
Hi, I am trying to use ClickOnce to deploy the windows application i am working on. My application is using Microsoft application blocks. When I Click the "Publish" option, I received several warnings, such as ; Assembly 'References\Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll' is incorrectly specified as a file. " Assembly 'References\Microsoft.Practices.EnterpriseLibrary.Configuration.dll' is incorrectly specified as a file. Does anyone know what is happening Thanks in advance. Those dll files were copied in a folder inside the application when the project structure was created. I simply removed those files (not the references). ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex Animation help
Hi, I'd like to do some simple vertex animation on a model using a vertex shader, but I'm having an extremely difficult and frustrating time figuring this out. I've been looking at the content pipeline documentation, I've found the tutorial about the BBox processor and done that a couple times, I've written a C# converter for a custom mesh format I have to X and still I can't work out how to accomplish this. I guess conceptually I understand how the content pipeline works. I ran the X processor DLL that ships with XNA through reflector and just about had a nervous breakdown looking at all the classes in there. I write geometry exporters, importers, and deformers for Maya at my day job, so I like to think I should be able to do this, ...Show All
SQL Server Report/query parameter default values
I am using a SQL stored procedure for a report. The sproc has a variable in it (@itemnumber) to be supplied by the user at run time. In the report parameters within Visual Studio Designer, I am trying to set a default value for the parameter of % so that all items will be returned unless the user enters a specific item number. In the Visual Studio preview this works but once the report is deployed to the web server, the default value does NOT show up. Please advise. thanks! Martha No, it's a non-queried default. I'm simply trying to set it to %. The variable is a string (varchar) in the sproc. In the Visual Studio preview it works, just not on the web once deployed. ...Show All
Windows Forms about datagrid in vs 2003???
hi, everybody, I have a problem about datagrid in VS 2003. I want to make a datagridcell's forecolor different from the next datagridcell's forecolor. How I do this.... thx. but these code will cause System.NullReferenceException in this line objCVScrollBar = DirectCast(grid.GetType().GetField("m_sbVert", BindingFlags.NonPublic Or BindingFlags.GetField Or BindingFlags.Instance).GetValue(grid), VScrollBar) I write the testing code: Dim field As FieldInfo = DataGrid1.GetType.GetField("m_sbVert", BindingFlags.NonPublic Or BindingFlags.GetField Or BindingFlags.Instance) Console.WriteLine(field.Name) it will cause NullReferenceException in second line. I guess that 'm_sbVert' doesnot exist!!!!! ...Show All
Windows Forms Another ListView Question
i have setup a ListView control after much hard work but stumbled onto a problem, when you add new items then close the application then run it again the items are no longer remembered should the ListView control remember whats been added and if so how can it be done thanks btw im using MS VS 2005 C++ Which is why I always recommend getting a good 'third party' grid. The good ones allow you do download a version for evaluation, so you can be sure it suits your needs before buying. ...Show All
.NET Development Question about embedding MSWORD in a WindowsForms-App (InPlace-Editing)
Hi there, I need to use MS-Word in my WinForms-Application using the good old "OLE2-InPlace-Editing"-Feature. Is this possible with the framework or do I have to program this via MFC and-/or ATL (IOleClient.. interfaces and so on) Best regards Reiner Deborah, yes, I need to embed WORD. My App constructs a complex document-structure. Most of the tasks are done via "Automation"! But I want give my customers a chance to "manually" type (and format) a new sentence/paragraph or whatever. I think, starting WORD as an external app for this to do is not a good idea. Best regards Reiner PS.: Internet Explorer does this anyway for much document-types, e ...Show All
Windows Forms Can ClickOnce provide an 'Uninstall' method?
I'd like to make it easy for users to uninstall a ClickOnce program. Is there a way to set ClickOnce to include an uninstall option Either as a link on the publish.html page, Or in the startup group created in StartUp > All Programs David: Thank you for your response. I feared that was the answer: The same one I reached after far too much time researching the question. Doesn't it seem reasonable that the Click-Once approach include an "Uninstall" option Certainly providing the user with such a handy, easy-to-use option wouldn't harm security, would it Again, thanks. N.C. Gordon. David Guyer MSFT wrote: I just checked system.deployment.dll, and I don't think there's any way to remove i ...Show All
SQL Server Why is SQL 2005 Express much slower than Developers Edition?
I'm working on upgrading VB6-based application to employ SQL Server 2005 Express (it currently uses MSDE). I'm using the following connection string - Provider=SQLNCLI;Persist Security Info=False;User ID=my_user;Password=my_password;Initial Catalog=my_database;Data Source=my_pc;Packet Size=8000 The application runs exceedingly slow. As soon as I uninstall SQL Server 2005 Express edition and install SQL Server 2005 Developers edition speed increases in 5 to 10 times. Once I uninstall SQL Server 2005 Developers edition and install SQL Server 2005 Express edition the application's speed drops again. I have repeated this "cycle" several times: install express -> running slow -> removed express, installed developers -> running ...Show All
Software Development for Windows Vista Windows Workflow Foundation - Install Problems?
Hi, I have installed .NET 3.0, I have downloaded “Orcas” Development Tools for for .NET Framework 3.0 I have then downloaded samples from below site. http://wf.netfx3.com/content/WelcometoNetFx3.aspx When it try to open any Solution file I get a message stating "The application for project C:\MyWorkflow.csproj" is not installed. Make sure the application for the project type (.csproj) is installed." Any ideas why I get this. On my machine I also have NET 1.1, .NET 2.0, Visual Studio 2003 and Visual Studio 2005 installed. Please help! I have the RTM .Net 3.0 and have downloaded the WF ext. from here but it just starts the windows sdk EXE and when I click repair it does not seem to effect my visua ...Show All
Visual Studio 2008 (Pre-release) svcutil errors on wsdl name attribute
Hello, I am trying to generate WCF client and service code from a WSDL file provided by a third party. The wsdl file passes validation in several verification tools. However, svcutil generates an error when run as such: svcutil importedfile.xsd thirdparty.wsdl The error is this: Error: Cannot import wsdl:binding Detail: The WSDL binding named ReferApplicationSOAP is not valid because no match for operation ReferApplication was found in the corresponding portType definition. XPath to Error Source: //wsdl:definitions[@targetNamespace='http://www.fake.org/schemas/referApplication_1_3_1.wsdl']/wsdl:binding[@name='ReferApplicationSOAP'] If I remove the "name" attributes from the wsdl:input and wsdl:output elements under the wsdl ...Show All
Silverlight (formerly WPF/E) How to change Attributes value of xml node at runtime through javascript
Hi, How i change xml elements attribute value at runtime through javascript . Thanks The sender["propertyName"] is only recommended (required) for attached properties like Canvas.Left: sender["Canvas.Left"] = 5; -mark Program Manager Microsoft This post is provided "as-is" ...Show All
SQL Server Suppress blank lines problem
I am having difficulty suppressing empty groups from rendering blank lines. For instance, take a simple left outer join to group detailed sales by region. The report has a regions group and the detail line. Every region that made no sales would print one blank line. If I add a subgroup between the region and the detail say to group by product within region then I get two blank lines for each no sale region. If I add another detail line then I get three blank lines etc. Has anyone else come across this and solved it Thanks. Yes. Basically if I do not use left outer joins and set visibility at the line level then the blank lines are not there. Unfortunately, that brings in another issue I was trying to avoid ...Show All
Windows Forms Delete listview item on delete key press?
In a datagridview, there's an event that fires when the user press delete on a selected row. Is there a similar event for the listview How can I catch when the user selects a listview item and then press delete Subscribe to the mouse down event of the ListView and write in this code- if (e.KeyCode == Keys.Delete) { if (lv.SelectedItems.Count > 0) { int count = lv.SelectedItems.Count; for ( int i = 0;i<count ;++i) lv.SelectedItems[0].Remove(); } } ...Show All
Visual Studio Tools for Office Access Outlook Address Book using C# or VB
I am developing a ASP.NET Website in C# and is going to be an Intranet Website. The Customers of the site with be authenticated through the Active Directory. Once the Customer accesses the home page, the page will identify the email address. Using the email address, I would like to get the Customer details from the Outlook Address Book. Please let me know if you have any ideas on how to access the Outlook address book object and read the information. Any help would be appreciated. Thanks The Outlook address book has pretty much all the required information about the Customers within the Organization. Have the Customer email address and need to get the rest of the information. ...Show All
Visual C# Constraints in generic clases
Hello, I have the following problem and I can not figure out how to solve it in the best C# style: I need a class with 2 methods: See here for more info: http://www.codeproject.com/csharp/genericnumerics.asp ...Show All
