willajo's Q&A profile
Visual Studio Team System Work Item Details Report
Imagine I have a report (on my Reporting Services server) that show a list of work items (e.g. enhancement requests) filtered by some condition (e.g. with state "Assigned to Analyst" ), and the main report's field, Title , is marked as EnableDrilltrough = True in the appropriate report model. So when I view the report I can click one a work item's title to see... an almost blank page with the only heading "Work Item" - I supp ...Show All
Visual C# replace
Hi, This is what I have which is assigned to a string variable. I would like to replace the \\ to \ How is this done please I tried: string strData = strData.Replace("\\", @"\") But it does not work. Thanks strData = "{\\rtf1\\ansi\\ansicpg1252\\uc1\\deff0{\\fonttbl\r\n{\\f0\\fswiss\\fcharset0\\fprq2 Arial;}\r\n{\\f1\\froman\\fcharset2\\fprq2 Symbol;}}\r\n{\\colortbl;\\red0\\green0\\blue0;\\red255\\green255\\ ...Show All
Visual Basic Browse Button OpenDialog to TextBox Part 2
I used the below code to create a form w/ a browse button that opens a dialog box and moves the chosen file name to the text box. I also added the same logic to move the file name to a label also. Works perfect, thanks Moayad! My new problem is: how do I do the exact same thing only allow the user to chose the Directory to upload a file to, and show that directory name in the textbox Public Class UploadVendor Private Sub btnBrow ...Show All
Windows Forms strange casting error with userdefined control
In VS2005 beta2 we have made a Usercontrol which we are trying to place on a form from the toolbox. The problem is that we keep getting the following quite bizarre errormessage: System.InvalidCastException: Unable to cast object of type '<name of webservice>.<name of webservice class>.<dataset type>' to type '<name of webservice>.<name of webservice class>.<dataset type>'. So it says that it cannot c ...Show All
Windows Forms Problems databinding a combobox
Hi, I have a winforms app that binds it's fields at runtime to a dataset. Basically if the combobox/textbox name matches the field name, it is bound. Here's the code that does the binding.. oBinding = New Binding("SelectedValue", dsToBindTo.Tables(TableName), ctl.Name.ToUpper) cmb.DataBindings.Add(oBinding) Pretty straight-forward eh BUT, when I run this code, the comboboxes stay on the first row in the dropdown, rather than re ...Show All
.NET Development Data source for web services
Hi How do I add a data provider to a web service project in VS 2005 Greg GregP, Where are you trying to add a data provider and what data provider are you trying to add Thanks, Carl Perry Program Manager ADO.NET cperry@microsoft.com ...Show All
Visual Studio Team System Project structure and policies (best practices)
I've seen a few questions on this thread about best practices and I don't think this is a repeat. I'm trying to understand the best way to structure my repository. In the past I've used both CVS and Subversion and I like the Subversion recommended way of doing things. They suggest having three sub-directories per project: trrunk, branches and tags. While VSTS doesn't have version tagging I still like the idea of having trunk and branches, as th ...Show All
SQL Server OLAP substring
how to split account dimension into three different dimensions for example account dimension member = 11111200900 account_num.member = 11111 item_num.member = 200 sub_tem.member =900 Using Analysis Services 2005, the easiest way to do this is to create named columns in the table in the DSV which split out the portions of the accout. Then you will probably want to create seperate attributes within the same dimension for each of these as ...Show All
Visual C# Windows Media Player
Ok. I have a windows media player control on my form. I need to know how to make it play a wav file that is on my desktop. Can someone help me please. Not sure why it would play automatically, but this is how I disabled that: windowsMediaPlayer.settings.autoStart = false ; ...Show All
.NET Development Loading a remoting host on win2003 server throws BadImageFormatException
I am trying to set up a minimal remoting host on win2003 server. When I try to get the host to display the wsdl it shows (in part): System.BadImageFormatException: The format of the file 'TestServer' is invalid. ... Log: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/testservice/bf7a26e5/27b5035d/TestServer/TestServer.DLL ... The service is: Public Class TestService & ...Show All
Visual Studio DataSet Schema and crystal report with VS 2005
I really appreciate all the help you give. I use the DataSet Schema to create crystal report with VS 2005. I almost follow the tutorial sample code to do it. 1.create a dataset schema 2.write a helper class to populate the dataset Public Shared ReadOnly Property QuoteDataSet() As DataSet Get Dim myDataSet As DataSet = New DataSet() myDataSet.ReadXmlSchema(DirectoryFilePath & "XMLSchema.xsd" ) Dim ...Show All
.NET Development .Net and SQL interaction
I wrote a web application in VB.NET. After deploying it at the user, I realized that my machine's regional settings and the client's settings, differ. I added the Globaliszation .... to web.config but now experience major errors on my database calls when I want to work from my machine on their database. I get the following error when passing a data parameter in a select statement: "Cast from string "5/23/2005" to type 'Date' ...Show All
Visual Studio Tools for Office Action Pane VS ModalForm
Hi, I'm developing a User Control inside a Action Pane, but user find it's not acceptable to view so many controls (e.g. DataGridViews, ComboBoxes, TextBoxes...etc) in this little area. So I'd like to know is it possible to create a "floating" form, such that user can drag the user control into the main window, or drop to the margin of XLS / DOC file and docked. (In short, to make something like VS2005 and we can resize the "Prop ...Show All
.NET Development How to unload DLL files that are in use.
Hi, i wonder if its possible to unload a DLL file that i allready added in "References" in C#... and then if its possible to load it again after i unloaded it.. It is possible if you change the way you load the DLL. If you do not link the DLL you want to use statically to the application, but instead load the types e.g. by the fully qualified name, the application is forced to lookup the assembly. You ...Show All
.NET Development ConfigurationElement.ApplyInstanceAttributes
I'm just wondering: [AttributeUsage(AttributeTargets.Property] public class ConfigurationValidatorAttribute : Attribute {...} ConfigurationElement code snippet: private static void ApplyInstanceAttributes(object instance) { Type type = instance.GetType(); *-----> ConfigurationValidatorAttribute attribute = Attribute.GetCustomAttribute(type, typeof(ConfigurationValidatorAttribute)) a ...Show All
