justin tighe's Q&A profile
Windows Forms Glyph and Adorner Assistance
Ok this one should be a challenge. I have a control with a custom designer. The control is basically a Poly-Line object which draws multiple lines at different angles chosen by the user at design time. In design time when the user selects the control I place a Glyph at each of the points where the line changes direction. to get the idea, the character below would be two lines with a glyph at 3 points. One at each line end and one at the intersection. > The purpose of the glyphs is to give the user the ability to re-shape the poly line object. They will basically drag one of the glyphs to another position in the designer, and that will be the new position of the associated point, and the control will re-draw itself. I've g ...Show All
Software Development for Windows Vista New xp pro machine, MSDTC not installed or configured?
Hello everyone, I purchased a brand new shiny development machine last weekend (one of the new dual core 2 processor machines...two thumbs way up!). The operating system on the machine is XP Pro. I am coding a C# 2005 winforms application which requires MSDTC and after opening my C# project and running it I noticed that MSDTC is not installed on my new machine. I thought MSDTC was installed on every windows machine but apparently that is not correct. So when I go to component services to look at the Distributed Transaction Coordinator the "my computer" icon has a red arrow over it instead of a green arrow which makes it look like there is a problem. If I click on the "distributed transaction coordinator" folder under co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. how to implement some effection?
how to implement some effection like particle system and 3D ribbon Is there any example There are many many particle system demos out there - use your favourite search engine. 3d ribbon - well it depends what you want but applying some trignometrical functions to your vertices should work. Try searching for flag fluttering/waving code. ...Show All
Visual Studio 2008 (Pre-release) Control library and application resources best practices
Hi, I'd like to ask the community about how to best deal with control libraries and application resources. Here's my scenario: I have a number of WPF controls that are reusable, and I would like these to exist in a self-contained class library. My problem has to do with application level resources. Since the the class library doesn't have an Application XAML file, there isn't an obvious place to place shared top-level resources. What I do currently is place these top level resources in a resource dictionary XAML file, and merge that in in the Application XAML file in the executable project. Although this works at runtime, it breaks the encapsulation of the library, and tools such as Expression Blend don't know where to find the resources ...Show All
.NET Development Inserting data using a DataSet
This parameter is a boolean data type: objPaymentsProfileInsert.InsertParameters[14] I am trying to do an insert into the database for this parameter. I am using this line: bool isValid = true; objPaymentsProfileInsert.InsertParameters[14].DefaultValue = isValid ; However it is failing with error: CS0029: Cannot implicitly convert type 'bool' to 'string' Even though when I look at the XML schema, parameter 14 is listed as boolean. I tried several other ways and all are failing. How can I make this possible Any help will be much appreciated Leo hey, could you paste the XML Schema or at least the part that holds the parameter, so i could have a look a ...Show All
Software Development for Windows Vista Custom Activity in XAML
I would like to model a sequential workflow consisting of two long running activiites. Based on the recommendations suggested in many WF forums about not running such tasks within Execute method, I have added a custom service to the runtime and used that service to schedule this external work to be done. I have tested with by creating the workflow type using CreateWorkflow() and things seem to be fine. I would now like to model this workflow consisting of two activites as a XAML file. I know that I can define both the custom activites in a declarative mode via a XAML file whose contents can be read and passed on to CreateWorkflow(). However the drawback is that the custom service specific to those activiites must still be registered upfron ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Summary of pure shader vs. FX shader syntax differences?
Is there a summary somewhere of what elements of HLSL are available/relevant to a pure shader vs. an FX shader ...Show All
SQL Server Analysis Services – Step by Step: Semi-Additive-Account
If I set up a measure with semiadditive property LastNotEmpty, the browser shows for all accounttypes the correct aggregation. If I set up a measure with semiadditive property SUM, the browser shows for all accounttypes the correct aggregation. I have a problem, if I'm attempting to set up a measure with semiadditive property of ByAccount. The browser shows for all accounttypes the aggregation SUM. If I start the Business Intelligence Wizard, I can see, that all default accounttypes have Aggregatfunction = Sum. The dimension Account has Typ = Accounts. The measure amount has AggregatFunction = ByAccount. What can I make You must have attribute marked as AccountType in the Account dimension. ByAccount sem ...Show All
Visual C++ Visual Studio 2005 Error: SidebySide configuration info
Hi all; Using Windows XP, Service Pack 2 and code is in 32 bit. I am compiling code in a makefile on the command line and after linking the .exe , the .exe is run and i get the error: The Side-by-Side configuration information in "m:\binary.EXE.manifest" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001). The manifest is : < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <dependency> <dependentAssembly> <assem ...Show All
Visual Studio Installing VS2003 add-in programmatically or using registry file.
Hi, In my product installation I have to also install VS2003 addin. One way to achieve this is to launch the default set up that is created by Visual Studio 2003. However I want to install the add-in dll not using the default setup. How can I achieve the same Thanks and Best Regards, Vishal Hi Vishal, Could you please specify what exactly you meant It's not clear from your question - what do you need What do you mean by 'default setup' Thanks! ...Show All
Visual Studio Team System How to change the name of the computer on which TFS is installed
A Team Foundation Server (workgroup edition) is installed in a local workgroup "WKG" on a host with simple (non-qualified) name "master". A team project with critical data has already been created on this server. After our local network reconfiguration this host became available from the Internet by the name "master.somedomain.com". Unfortunately, all links on the team project site have the original (non-qualified) name "master" in them and, therefore, some parts of the site (including reporting service) cannot be accessed from the Internet. The same problem can be seen when the team project is accessed through Team Explorer. I think that renaming this host into "master.somedomain.com& ...Show All
Visual C++ date related functions
I am using VC++ 2005 Express Edition. I want to get the current year as an int, current day of week as an int, and current day of year as an int. How do I accomplish this I am writing my program using .NET because I can't find the std namespace anywhere in the VC++ Express Edition installation. When I first installed it, I installed .NET and Platform SDK. I keep seeing something about the MFC SDK, but I don't know how to access it in my environment. I only know that if I include "using namespace std;" in my program, VC++ says there is no such namespace. All of the documentation I've looked at in the .NET section is no help. Help Wayne.C wrote: I am using VC++ 2005 Express Edition. ...Show All
.NET Development DecimalSeparator
Hi, I got 20 textboxes and i want to change the decimal separator to the one they have in their region settings. This is how i tried it: foreach (Control textbox in this.Controls) { if (textbox is TextBox) { int controlIndex = 0; for (int k = 0; k < 20; k++) { string decimalSeparator = System.Globalization.NumberFormatInfo.CurrentInfo.NumberDecimalSeparator; string input = this._textBox[k].Text; input = input.Replace(".", decimalSeparator); input = input.Replace(",", decimalSeparator); double d; if (double.TryParse(input, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.CurrentCulture, out d)) ...Show All
Visual Studio Express Editions using visual basic to read until the last row of data in excel and display all into chart
i need to use a command where it is able to read until the last row of all my data and display them all into a line chart as i constantly need to insert new rows of data in and i do not wish to keep changing the row number of the chart... i have only managed to read and display the data until a specific row into the chart and so i hope to be able to find a easier way to do that by a click of a button...hope someone will be able to help me out... thanks this is the code i am using ActiveSheet.ChartObjects("Chart 12").Activate ActiveChart.SeriesCollection(1).XValues = "=one!R2C1:R650C1" ActiveChart.SeriesCollection(1).Values = "=one!R2C3:R650C3" but this code only allo ...Show All
Windows Forms Is there any way to use my own usercontrol as RootComponent of DesignSurface?
As I know, Form, UserControl and Component can be used as RootComponent of DesignSurface. but, I'd like to make a new custom usercontrol and adjust it as RootComponent. MSDN said 'have to implement IRootDesigner'. but, it's difficult to find sample. How can i get some sample ps. I'll add below functions into new custom usercontrol. 1. allow special control to be child. 2. arrange child controls automatically 3. etc.. Hi Sang, Sorry I did not get back to you earlier. You might find your answer in this article if you have not already read it.... http://msdn2.microsoft.com/en-us/library/37899azc.aspx Let me know if this helps you in finding a solution. Kind Regards ...Show All
