wum's Q&A profile
Visual Studio 2008 (Pre-release) Windows Form opening WPF window
I have a Windows Form project containing a Windows Form that opens a blank WPF window with a TextBox control and the text is not displaying within the TextBox with keyboard input. If I copy the XAML to a WPF .NET 3.0 project the text will be displayed within the TextBox. However within my normal VB.NET Windows Form project the TextBox is not displaying the key presses when the WPF window is opened from a Windows Form. Does something need to be added to the project to ensure that the WPF controls will work fine when opened from a Windows Form XAML code is as follows: <Window x:Class="Window1" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=" ...Show All
SQL Server Reports rendered bad in Firefox...
Because of some peculiar way of using CSS, the reports aren't rendered correctly in Firefox. I've tryed specifying different rendering options (html 4 for instance) but it didn't help. What are my options on this I could use Webservices (SOAP) and wrap SSRS in a proxy, but I'd have to parse reports and extract the data and build my own presentation layer. This way I'd be missing half of the SSRS functionality. Any ideas You also loose features in Firefox and besides the numerous display bugs, their is also a Session TimeOut bug. Essentially SQL reports is IE only. http://msdn2.microsoft.com/en-us/library/ms156511.aspx The following features are not supported in third-party browsers: Document map ...Show All
Software Development for Windows Vista How to grab the element of Pop up window ?
While executing in the UI Automation framework, the main program waits indefinitely whenever a pop up window is invoked by the program. I tried invoking the pop up in a thread, but in that case also the main thread waits indefinitely In the main thread i am trying in a loop to find the window, with sufficient time interval between each loops been given Is there any way we can handle this ~JK Code below may be helpfull to you: public static void ShowAllUIObject(UIObject m_UIObject) { try{ System.Console.Write("==========================" + "\n"); foreach(UIObject tempUIObject in m_UIObject.Descendants) { System.Console.Write(tempUIObject.AutomationID + ...Show All
Windows Forms System.Security
Whenever i import System.Security class then what type of security is provided by .net framework,where did it need specially.. if you are referring to what security classes exist in the .NET Framework, take a look at this and use/import the System.Security.Cryptography namespace: http://msdn2.microsoft.com/en-us/library/system.security.cryptography.aspx Mostly each class in terms of security generation includes examples as well as documentation ...Show All
Visual C++ Visual Styles
I am programming with C++ 2003 under XP Home SP2 and would like to use Visual Styles in a MFC program. I tried the example "Visual Styles Custom Control" from MSDN (which unfortunately is the only example available for this topic) and it works. When I try to use visual styles in my MFC application I have some problems. There is no problem with the function InitCommonControls (inserted by the wizard), and when I insert the manifest in the .rc, it activates the XP style (which can be seen e.g. in the buttons) without need to call any additional function. But if I try to use e.g. SetWindowTheme in my own MFC program (or any of the theme functions), the linker does not recognize it. It is apparent that library uxtheme.lib ...Show All
SQL Server Licensing of SQL Server 2005
what would be the most cost efficient way of acquiring sql server 2005 licenses for 10000 users that would access 1 web server which access the sql server 2005 . Hope youcan help me at this one... Thanks Find a MS supplier, and do the math. I would say that licensing the SQL Server per processor would make sense. The CAL model, User Cals would work out at 1,628,487 for 10K users. You could license 68 processors for that money. Those prices are "Example Prices" for Enterprise Edition from the link below, which is low volume discount. You can get much better discounts through the various purchasing schemes. Microsoft SQL Server: How to Buy Microsoft SQL Server ( http://www.microsoft ...Show All
Windows Forms Custom Design-Time tasks
When placing a control, for example, a listbox on a Windows Form, there are certain "tasks" that show up for easy access by clicking on a small black arrow in a white box at the top-right corner of the control. For the listbox, these include setting a boolean value for "Use data bound items" (via a checkbox) and "Edit items" (via a link to a textbox that pops up). Are these pieces of the designer that are hard-coded in Or is there a way to add my own properties to the box for editing If, for example, I had an integer property that I just wanted to insert in that list as any form of editable input (a textbox or NumericUpDown), how would I go about doing that I've looked into making designers, but all of th ...Show All
Visual Basic How do you add EndCap AnchorCircle to each line in a Path
Hello, I'm using GDI+ to create a graph. I can have about 20,000 points and want to make a curve out of this points. I iterated each point and used DrawLine to draw each line and it was really slow. I found that with: graphPath.AddLines(test) 'test is an array of points grfx.DrawPath(pluma, graphPath) I can make ir really fast... but the thing is that the pen I'm using only displays the EndCap for the whole path (only at the end) and not for each of the lines that create that path. I want to show where each point is located with pluma.EndCap = RoundAnchor...it worked well with DrawLine... but with the path I get the EndCap only at the end of the path... I used AddEllipse for each point but it's very very slow. ...Show All
Visual C# Singleton class at runtime
I implementet a few classes in my actual project using the singleton pattern mentioned somewhere in the MSDN: public class SingletonClass { public static readonly SingletonClass Instance = new SingletonClass(); private SingletonClass() { // some initializations here } // some more methods, fields, properties, ... } Can someone explain me when SingletonClass.Instance will be created at runtime Could it be created before "the program jumps into the main-method" it's better, you are right but as the constructor is private, you can't inherit it anyway. So this is better : public sealed class Test { private static Test _instance; &nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SaveStateMode.SaveState performance
Back when state blocks were brand spanking new, they yeilded poor performance. I haven't really looked at them since. As I understand it, Effect.Begin(SaveStateMode.SaveState) would use state blocks internally. Is it ok to rely on this I would like to set all render state in my .fx file techniques rather than in the code. To do this, I would just use .SaveState on everything. Will this hurt performance Are there other things to worry about with this Thanks, Brandon There is an interface for managing render state changes within .fx files but it is not yet part of XNA. You could still manage render state within .fx files with a little discipline and some extra organisation in your application. You c ...Show All
SQL Server SELECT USER_NAME() !!!!! Urgent
I wrote a trigger which writes to a audit table. To get the user name I use to use SELECT USER_NAME() this used to return something like a12345 this worked fine until we moved to production where the username also had the domin name with it . Now the output of the query is something like DOMAIN/a12345 t he value of "DOMAIN' is different for different users, and the "/" may or may not be present in the user name Can some one please give me code just to return the user name like a12345 There's a couple of different ways to do it, here's one way. create table #x ( nm varchar(20) not null ) insert #x select 'DOMAIN/a12345' union all select 'DOMAIN123/b12345' union all select 'c12 ...Show All
Software Development for Windows Vista Vista backuo doesn't support SDLT?
I tried to backup to a Quantum SDLT drive, but Vista Backup didn't recognize the drive as a backup device. Vista installed the driver for the drive correctly and also recognized it as tape drive. I conclude that Vista Backup doesn't support SDLT. Am I correct Correct. Vista Backup utility does not support ANY tape devices. I was quite disappointed to find this out as well since they appear to have improved the functionality otherwise substantially. -Adam ...Show All
Commerce Server OrderContext from a non Web application.
I have been able to create a CatalogContext, Profile, etc. contexts. But I don't know how to create an OrderContext. All the samples and documentation that I have seen reference CommerServerContext.Current which in a non-Web application is null. How do I create/initialize an OrderContext object so I can amonung other things manage baskets, payment methods, orders, etc. It seems that all of the objects in the Runtime namespace are a mystery to me as far as a non-web application. Thank you. Kevin One more question. How is OrderContext different from OrderManagementContext I have managed to find an agent API for OrderManagementContext but now I am not clear on the difference and when I should use w ...Show All
.NET Development DirectX app with C# and both managed unmanaged C++ code: steps to take?
Hi, I am about to support x64 with our DirectX 9.0c application. Our application contains both unmanaged and managed C++, and a lot of C#. It is built with Visual Studio 2005. What steps do I need to take to make our app work on XP x64, besides (or other) than the ones below: Include x64-versions of the DirectX dlls Change target platform to x64 Should I change target platform to x64 for all projects that forms our application, or will it still work if some projects are not set to this target, but "any" Best regards, Torbjorn Torbjorn: I am not a member of the DirectX team, but I believe that managed DirectX 9.0c does not support X64 natively. To target WinXP64 you sho ...Show All
.NET Development how to get patches and allerts in c#
hai i am doing .net proj i have to get the patches and the alerts of the system . is there any way to get this using wmi . or any other way ........ thanx Yeah! WMI might help but I am no expert in WMI. You should look for a forum on WMI I can;t find one myself and I sent mail to the corresponding team to see if they have a forum where you can post this question. In the mean time the following script or its ...Show All
