hvac-r_tech's Q&A profile
Visual Studio 2008 (Pre-release) Custom ScrollViewer Control
Hi. I am developing my avalon custom scrollviewer control. The class inherits from ScrollViewer class. I also have a few styles defined in ControlTemplate.Resources section under a main style that applied to my custom control in generic.xaml, some portions of code are as follow: C# code: public class AvalonScrollViewer : ScrollViewer { .... } XAML code in generic.xaml: < Style TargetType = " {x:Type local:AvalonScrollViewer} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Typ ...Show All
Windows Forms Determine mouse XY coordinates for double-click
The DoubleClick event for a DataGrid is just using the basic EventArgs and not MouseEventArgs. That makes it kinda difficult to determine <em>where</em> it happened since you don't have the coordinates to perform a HitTest check. My MouseUp event is already used to performed a full row selection, so what's a possible go step to solving this ...Show All
SQL Server calculations scripts for aggregating on a dimension with several hierarchies
Hi everybody, I am using the September SQL Server 2005 CTP version. I have a cube with five dimensions and several measures. I want to aggregate all the measures except one through the "sum" function along all the dimensions. On the contrary I have a measure (called [Valore]) which I want to aggregate with the Sum function along all the dimensions except one dimension called [DomMese]. Along all the hierarchies of this dimension, in fact, I would like to aggregate that measure using the firstchild (or, even, using “average”). I tried to add in the Calculations script the following piece of code, using the "Scope" statement: SCOPE ...Show All
Windows Forms Ambient Properties Question
I'm trying to make a property of my control act just like BackColor does. Here's the code that I have that's not quite working. Private _AlternateBackColor As Color = Color.FromKnownColor(KnownColor.Control) <Category("Appearance"), AmbientValue(GetType(KnownColor), "Control")> _ Public Property AlternatingBackColor() As Color Get If _AlternateBackColor.Equals(Color.FromKnownColor(KnownColor.Control)) AndAlso Not Me.Parent Is&nb ...Show All
Visual Studio Guidance Package Build
First of all Congratulation to the GAT team this is a really good work. I was trying to figure out how the build of a Guidance Package (GP) works. I would like to know what is happening behind the scenes when you build a GP. Who is creating and compiling the ctc definition, who is creating the resource dll for our package, how is registering the package in the registry hive, etc Here you can find more information: Dynamically add commands to your VSIP Package http://blogs.artinsoft.net/ocalvo/articles/169.aspx Regards. Daniel Gomez Technology Manager Infocorp http://www.infocorp.com.uy ...Show All
.NET Development Typed DataSet and WriteXml Namespace issue
Ok, I have a typed DataSet that was generated from an xsd schema using xsd.exe. The xsd schema is owned by a standards organization, so I can't modify it. The generated code sets the Namespace property of the DataSet (e.g. http://www.std.org/xml/name-space ). This controls the scope of elements read from an XML file when calling ReadXml and the file is read correctly with appropriate rows populated. Now, if I turn around and call WriteXml the typed DataSet creates a root element based on the DataSetName property, which is Ok. However, I get the namespace attribute on this element. (e.g. <MyDataSet xmlns:xsi=" http://www.w3c.org/ ...Show All
Smart Device Development Need to know how to magnify
dear members, I am for the first time doing a project on smartphones.It needs to capture the contents of the screen,magnify it then.I have source codes in Delphi,Windows API,C++.I am very new to this concept.I dont know how i should go about launching the application in .Net.How do i do this,I am a novice,I would be grateful if u could help.If so i will post the code.P Take a look at Graphics.DrawImage(). Specifically the overload that takes both a source and destination rectangle. If the dimensions of the destination rectangle are larger than that of the source, your image will be " ...Show All
Visual Basic VB-Express 2005 and Starter kit Movie collection
I installed VB express 2005 and the starter kit Movie Collection, but when i run it i get a message that i need to get the web plus edition. The link send me to the starter kits main page where i can't find any kit with name web plus edition. Where can this be found PetterL HHmm.. Over a year later, and now I have come across the same problem. Although I am trying to run the C# Movie kit. No Web Plus edition. I hope you found a solution in your year of searching. ...Show All
Visual C# How to compile third component into exe?
Yes,i created a WinForm application,and it use a third component in it. When i compile this application,and it contains a exe file and a dll(third component). Now,i want to compile this third component into exe,so,i think this application is simple. How can do it Sincerely, June Shi There is a couple of ways you could do this: 1. Embed the second dll as a resource and attach to the AppDomain.AssemblyResolve and stream the dll out of the resource when needed 2. Have a look at ILMerge . ...Show All
Visual C# How to develop a password protected Windows Application?
Hi all, I am trying to develop a password protected windows application. All that I require is a simple prompt for password whenever the application is started. The program should be able to detect if the application is started for the first time. If it is, the application should prompt for the user to set a password instead. If the password is correct, then the application will go on to show the starting startup screen. I am not really sure how to start or go about creating this application, i.e. password protected part. Q1) How do I store the password that is set. Do I create a static variable string and store the password using this stat ...Show All
.NET Development .NET Framework - hotfix. Can I discard the original Framework?
I don't know where else to post this, but I just received an automated update hotfix for my .Net Framework that is 1,114 megs...this is in addition to the original .Net Framework that is also 1,114 megs. That's taking up too much of my disk space. I'd like to remove one of them if I can, but I don't know anything about the pros and the cons. Can I just remove the original and use the hotfix in it's place Thanks, Paul The update was pushed to you via Windows Update because it was rated as an Important security update. In general you don't want to disable accepting updates since it will leave your system vulnerable to attacks ...Show All
Audio and Video Development remoting WMP in C# - display video?
I'm remoting WMP in an application and I want a way to capture video stream of a playing video to output into a directx or openGL texture If not then just a way to output the region of the video screen into a window. Thanks! Nadir How about hosting the WMP ActiveX control This lets you provide the window you want the output to go to. Here's a C++ example of how to do this. http://msdn.microsoft.com/library/default.asp url=/library/en-us/wmplay10/mmp_sdk/hostingthewindowsmediaplayercontrolinwindowsapplic.asp (You might get better answers on WMP-specific issues in the WMP newsgroup or the WMTalk distribution list at http://www.micros ...Show All
Visual Studio Team System Profiler instrumentation of C++ classes
Can someone point to the documentation describing. Specifically I need to explicitly include member functions of some template classes. The command line says: /INCLUDE:funcspec+ Simple functions work fine, but I can't find the way to supply template functions (e.g. map<string, double>::find) Also, it there a way to supply response file (configuration file) rather than spelling out everything on command line Thanks. Supplying individual template functions, worked for me only in response file. I also realized I can use multiple /INCLUDE switches. ...Show All
Visual Studio VS.NET 2005 Beta 2 Team Suite Edition fails half way through.
I finished downloading the full Vs.net 2005 Beta2 team system files, extracted them and then attempted to install them on my Development Laptop. It turns out, I just re-built my laptop with a clean installation of Windows XP SP2, and MS OFFiCE 2003. There are a few more apps, but the bottom line is that the laptop is clean. I ran the Installation, and it installed the .NET framework 2.0, and then the MSXML 6.0 Parser. It got to the VS.NET installation, and starts copying files ok. About 3/4 of the way through the progress bar, it throws a generic failure record, and rolls back the installation. Is anyone else running into this Is there ...Show All
Visual Studio Extend VSTA IDE with Managed VSPackages
Hi, is it possible to extend the VSTA IDE with managed VSPackes If yes, how can I do it. Regards Josef Answers to this and other question relating to your VSTA integration are available at our VSTA support site Q: Does the VSTA IDE support custom designers, editors, or (VS) packages top A: V1.0 does not support these customizations. Regards, Gary Depue ...Show All
