Scott_t's Q&A profile
Visual C# Configuration Files - Winforms .NET 2.0
I'll explain the situation We have in our solution 6 projects, One is the winform gui APP which has it's own configuration file. Then there is another project which is the Data Layer and this also has it's own config file containing the connection string which is in the Properties.Settings are of the project. This is new to me so bare with my poor description I also joined the project later on. The problem is now we are deploying the project only one application config is deployed and it doesn't contain the connection string as its the application config. It seems the connection string is 'inside' the dll generated by the DataLayer project. No one here wants to fix the problem as such what we want is a way of accessing t ...Show All
SQL Server passing multivalue parameter in a URL action
How can I pass a multivalue parameter via a URL action on a report item I've tried using Split and Join but it doesnt work. Any ideas Multivalue paramters are accessed in URL within the following schema: Report_Param_Name=A&Report_Param_Name=B&Report_Param_Name=C so AFAIK you would have to write some own sophisticated code to do this. HTH; Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Software Development for Windows Vista Enabling Theme Support via Manifest
My application (using the WIN32 API) enables XP Visual Styles under XP with a manifest. But when the app is run under Vista, Visual Styles / Theme Support does not get enabled. (Buttons have square corners, no highlighting, etc.) What can I change in the manifest (or in the C code) to enable Vista Themes Manifest: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="SabioNet.AshWin.ashw32" type="win32" /> <description>AshWin</description> <dependency> <depen ...Show All
Visual Studio Team System Removing Project Alerts
Hi, I have a question regarding project alerts. I have subscribed to events by using the UI in Visual Studio. Since then, my old computer has been reformatted and I have a new computer. When I try to look at my project alerts in the UI (Team->Project Alerts), the Send To fields are empty. I would like to remove the project alerts I have subscribed to. Is there any way to do this Regards Answered my own question: was able to unsubscribe by specifying the server parameter as well. I don't think that an object reference error is quite the right way for bissubscribe to handle not being able to communicate with the server. ...Show All
Visual Studio Tools for Office custom command bar menu disappears off one sheet but appears on another
I have added a custom button to my vsto excel project. Here is the code: Public Sub CheckIfMenuBarExists() Try Dim foundMenu As Office.CommandBarPopup = _ Me .Application.CommandBars.ActiveMenuBar.FindControl( _ Office.MsoControlType.msoControlPopup, System.Type.Missing, menuTag, True , True ) If foundMenu IsNot Nothing Then foundMenu.Delete( True ) Else AddMenuBar() End If Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub ----------------------------------------------------------------------------------------- Public Sub AddMenuBar() ...Show All
Software Development for Windows Vista Real-time WMV9 Capture and Save to .WMV File with GraphEdit
Hi, I have looked through the docs and sdk's and did not find an example showing how to capture video+audio in real-time and encode with a WMV9 encoder, while saving to a .wmv file, using the DirectShow APIs. The only docs I have found so far to create WMV9 .wmv files are online, as inline examples, though it appears that WMV8 profiles are shown (meaning that WMV9 is not being used ). Additionally, is it possible to set up a real-time capture, encode to WMV9, then write to .WMV using GraphEdit (so far no luck: the .WMV writer shows only WMV8 profiles in the property page). I'm working on a real-time capture project and am comparing ease-of-use, code stability, capture performance (CPU load), and encoder performance (quality per bit). ...Show All
SQL Server Nested Groups with Two datasources?? Noob design approach question.
I've got these two tables FileLog: ProcessKey Filename EventLog: ProcessKey Eventtype Date Both tables can be related by Processkey key, but there data does not relate. Anwhere from 5 to 10 Filelog rows per ProcessKey. Anywhere from 5 to 200 Eventlog rows per ProcessKey. Filelog contains Filenames that make up a Process Key batch, and Eventlog contains rows of events for that ProessKey Batch. I'd like a report where Filelog enteries are in my group header by Process Key, followed by details with Enventlog by ProcessKey.. something like this: ProcessKey1: filename1,filename2,filename3 filename4 (wraping and growing a cell) Eventtype Date ...Show All
Visual C# events on form activate?
I have a windows form where I want to perform certain actions each time the form is activated. Is there an event handler that I can use for this ...Show All
Visual C# Dynamic Property Page creation - web app in c#
Hi, I am new to dotNet, i am developing a sample application, ASP.Net WebApplication 2005 and the coding part i am doing in C#. In the Default.aspx i would like to create a Property Sheet, And number of pages(tabs) in this property sheet should be dynamic. User enters a value say 4 then 4 Pages should be in the Created when submit button is cliked. I would to know how can solve this problem. What i have in mind is have a System.Windows.Controls.TabControl() then add items to it in a loop. How can it be implement as a web control using C# Any code snippet,suggestion,Ideas ...... regards, Alex yep. It is not as fancy but still take a look here: http://www.codeproject.com/aspnet/FormTa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Official List of Features and Limitations of the various Pixel Shader versions?
Does anyone know of an official list of features and limitations for the different Vertex Shader and Pixel Shader versions (1.1, 2.0, 3.0, etc) I couldn't find anything on the Microsoft or nVidia web sites or on the web. I don't even know for sure who governs these standards. Wikipedia has a pretty good article on HLSL that should help. Basically, you get more registers/instruction slots with greater versions, allowing you to do more. So some things like tex#dlod aren't available on earlier shader models. MSDN used to have a pretty good HLSL Shader Reference , but I think it's either been taken down or moved, and I can't find it if it's been moved. Edit: I found this in MSDN2. Not exactly wh ...Show All
Visual Basic Creating an Excel Object using VB.NET.
Hi everyone, This is my problem: I am trying to create an excel object so I can run an excel macro. This is the code I a using: Dim oExcel As Excel.ApplicationClass Dim oBook As Excel.WorkbookClass Dim oBooks As Excel.Workbooks Dim missing As Object = System.Reflection.Missing.Value Me .TextBox1.Text = Me .TextBox1.Text + " Report Creation in progress Please Wait..." + vbCrLf 'Start Excel and open the workbook. oExcel = DirectCast (CreateObject("Excel.Application"), Excel.Application) oExcel.Visible = False oBooks = oExcel.Workbooks oBook = oBooks.Open("C:\Developpement\Project_RCP\RCP_App\Job Bruts\Job RCP.xls", missing, missing, missing, missin ...Show All
Visual Studio Express Editions grey out menu items
hi everyone, so i have a new question for you guys since im still learning VB. what im trying to do now is play with menuitems and grey them out if they are not needed and then make them enabled when they are. below is the code i made for greying out the "select all" menu item when the richtextbox1 is empty. this isnt working so please point this beginner in the right direction! Private Sub SelectAllToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem.Click If RichTextBox1.Text.IsNullOrEmpty = True Then SelectAllToolStripMenuItem.Enabled = False Else RichTextBox1.SelectAll() End If End Sub ...Show All
SQL Server cannot install integration services
Hi! During the installation of integration services (SQL 05 Developer RTM) I get the following error: TITLE: Microsoft SQL Server 2005 Setup ------------------------------ Failed to install and configure assemblies C:\Programme\Microsoft SQL Server\90\DTS\Tasks\Microsoft.SqlServer.MSMQTask.dll in the COM+ catalog. Error: -2146233087 Error message: Unknown error 0x80131501 Error description: Failed to generate type library 'C:\Programme\Microsoft SQL Server\90\DTS\Tasks\Microsoft.SqlServer.MSMQTask.tlb' for 'Microsoft.SqlServer.MSMQTask, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'. I had CTPs of SQL05 and VS05 installed before, but uninstalled them with the cleanup tool. I alread ...Show All
Visual Studio Team System Upgrading TFS data tier to a named instance cluster
We have been seeing performance issues and have an opportunity to land the data tier on a much higher performance cluster that is already up and running, but it uses named instances. I've seen a work around that uses an alias to run on the named instance, but am wondering if the cluster will complicate things. Is this config possible, and will it be difficult to set up if so See Bill's answer here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1222322&SiteID=1 The native alias trick has some issues, and we have some known problems we're working on for servicing TFS with a cluster for the data tier, see http://blogs.msdn.com/bharry/archive/2007/02/08/problems-installing-tfs-sp1.aspx ...Show All
Visual Studio How can you prevent a relationship from an element to itself?
I have a DSL definition in which it's possible for an element to connect with an element of the same type. However, in this definition the element can also connect to itself, which is undesirable. I already know how to add custom validation to the model in such a way that it throws an error when there's a self-connection, but I need it to validate realtime when trying to connect an element to itself, so that it's not even possible to draw that connection. I already searched this forum and there was one topic which covers the same problem, but it's more than a year old I and think it doesn't work the same anymore in the newer DSL tools. Does anyone have an idea how to make self connections impossible ...Show All
