Nasir_khan_persistent's Q&A profile
.NET Development MSXML sample code
On MSDN MSXML document ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/xmlsdk/html/4b7e8215-9685-43b0-b985-f9417e97d08f.asp ), it has the following output from the sample code: < xml version="1.0" > <!--sample xml file created using XML DOM object.--> <root created="using dom"> <node1>some character data</node1> <node2><![CDATA[<some mark-up text>]]></node2> <node3> <subnode1/> <subnode2/> <subnode3/> </node3> </root> But, in the sample code ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/xmlsdk/html/4b7e8215-9685-43b0-b985-f9417e97d08f.asp ), I do ...Show All
Visual C# Raising an event in C# that impliments a VB interface?
Hi. I have an public interface class in VB that I'm trying to use in C# (I'm converting my ways to C# - like it!!). I'm getting the following error when trying to code for the event handler: C:\<path>\newDevice.cs(7,18): error CS0536: 'deviceInCsImplimentsEquipIL.newDevice' does not implement interface member 'EquipmentIL.EquipIC.Methods.ConnectionEstablished'. 'deviceInCsImplimentsEquipIL.newDevice.ConnectionEstablished' is either static, not public, or has the wrong return type. Here are two events from the VB portion of the interface: Event ConnectionEstablished( ByVal id As Long , ByVal address As String , ByVal port As Integer ) Event NewData( ByVal id As Long , ByVal message As String , B ...Show All
Visual Studio 2008 (Pre-release) Howto: make the Enter key work like the Tab key
What's the best WPF way to have a custom/user control move to the next control in the tab sequence. I'm writing a control that shows a popup list and when the user selects an item and presses the Enter key, the keyboard focus should move to the next control in the tab sequence. Thanks, MikeS I guess you could add something like this to your main window: (Constructor) ... this .PreviewKeyDown += new KeyEventHandler (MainPage_PreviewKeyDown); ... (/Constructor) void MainPage_PreviewKeyDown( object sender, KeyEventArgs e) { if (e.Key == Key .Enter) { if ( Keyboard .FocusedElement is FrameworkElement ) { ...Show All
Windows Forms Client Area of MDIParent should not be sunken
Hallo, i have an MDI Application in which all Childs are plugged in the MDIParent without Border. Now i want to change the look of the MDIParent client area without raised border and not sunken. Did you have an idea how i could manage this. Thanks Arnold thank you very much! your code work exactly in the way i want. is there anything to consider because it is unmanaged code Mick Doherty wrote: You can use Interop to turn off the WS_EX_CLIENTEDGE style. using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace FlatMdi { public partial class Form1 : Form { public Form1() { // Specifically add the md ...Show All
Windows Forms Adding ampersand to create hotkeys
Hello all, I'm working on a form that contains several languages and therefore using unicode. The problem is that when I use ampersands on buttons in order to create hotkeys, the ampersand appears on the button text. Is there anyway to get around this Also, I wanted to know if there's a way just as simple to create hotkeys without having to use the button text This example here is the closest one I came up with, but it still looks rather complicated. I'm afraid Languages.Strings.LOGIN is not set to &Login, and when I do set it that way and leave out the "&" before, the ampersand still appears... Are you sure it doesn't have anything to do with the fact that my code is written in unicode Anyway, I've simply created ...Show All
SQL Server XML Problem when scheduling SSIS package
I am getting an error when I try to schedule a package. I can run the package with no problems from BIDS. For some reason it is throwing an error when I try to schedule the package using SQL Server Agent. Information on how to resove this would be greatly appreciated. Executed as user: MACHINE\SYSTEM. ...n 9.00.1399.06 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 5:41:55 PM Error: 2007-02-19 17:41:56.01 Code: 0xC0011007 Source: {48427B5A-10F6-4054-B7EB-F0F19B90F334} Description: Unable to load the package as XML because of package does not have a valid XML format. A specific XML parser error will be posted. End Error Error: 2007-02-19 17:41:56.01 Code: 0xC0011002 Source: {48427B5A-10F6-4054 ...Show All
SQL Server Export formats
I have created report project using Business Intelligence Development Studio. When i use Preview tab or run report from Visual Studio in debug mode there is 6 formats available for export. But when i open the same report in Windows Forms based application using ReportViewer control there is only 2 export formats: PDF and Excel. How can i configure ReportViewer control to show all export formats Igor, Is your Windows Forms application configured to use the ReportViewer control in local mode, or in server mode ReportViewer control in local mode (where your report is in .rdlc file in the application project, and your application doesn't connect to the Reporting Services server) has only PDF and Excel r ...Show All
SQL Server Programmatically adding a user to the System User role
We have been working on an application that will be using a forms-authenticated report server (RS2005) as a reporting back-end. Using the reporting services web service I have been able to assign permissions to objects in reporting services no problem. The issue is that each user needs to be added to the System User role to be able to use the report builder properly. I can't seem to find a way to do this programmatically. Any idea ...Show All
Visual Basic Winsock OR TCP connection + SSL
Hi, I am making an Email reader program, and I need to use POP3 servers. I learned the protocol so I'll could use winsock for the connections. The problem is, that a lot of servers require SSL connection, and I don't know how to open one... I know there is a way with the TCP socket, but I don't know how...... :( Can anyone tell me how Thanks, Ofir. Anyone I only need someone to tell me how to use a TCPCLIENT, and after that, TCPCLIENT + SSL.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! PLEASE!! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Size of .FBX models when exported in XNA.
Hi, I was simply trying to create a cylinder in 3dsmax (v. 8) and import the mesh in a XNA project. I create a cylinder with a height of 70.0 (pointing up and with the base at axis origin). Then in XNA I want to create a sphere and put it at the top of the cylinder, but when I use 70.0 for y-coord, then it is below half the height of the cylinder. I've noticed that I have to put it at 175.0 (70 * 2.5) to have it at the top of the cylinder. However, I cannot see any scaling or so in my code. Any idea on what is wrong Thank you very much in advance! dvarrin 3dsmax saves scaling information in the .FBX file, which XNA will use by default. The simplest fix is to set scaling back to 1.0 when you create you world matrix for re ...Show All
Audio and Video Development UOP functionality
Does HD-DVD technology have analogy UOP from DVD technology http://msdn.microsoft.com/library/default.asp url=/archive/en-us/directx9_c_Summer_03/directX/htm/uopvalidmethod.asp i.e. as sample, I can't use inner(system) methods for checking that "Play" action is availability at the current moment. I must do it self (use own code for it). Am I right ...Show All
Software Development for Windows Vista Power icon problem
Hello, I've just installed the Windows Vista Beta 2 (Build 5384) and so far so good, except for one thing: somehow i can't activate the option to show the power icon on the "notification are" of the "taskbar". When i go to the properties of the "taskbar", and then go to the "notification area" options, i'm allowed to select to always show the clock, volume and network icons, but not the power icon. Do you know what can i do to fix this problem Because of this problem, i never know when the battery is low. Thanks for your help!! Hello again... I thought my machine was battery-enable, but it doesn't shows any battery icon in the tray. And in the "Tas ...Show All
Visual Studio Retrieving "active" data connections
Greetings everyone (or anyone), I am writing a little add-in and I am trying to figure out how to do something that I think should be simple: I want to retrieve the connections that are listed in the "Data Connections" in the Server Explorer. I can obviously access the UIHierarchy but what I really want is actually the connection(s) itself or the representation for the connection(s). Say the user has already defined a couple of data connections, I would like to get them and have access to the properties of the connection such as the connection string, and then access the field properties (isIdentity, etc). Essentially imagine that I am writing a custom properties form that shows the same information that the "Dat ...Show All
Software Development for Windows Vista VB 6.0 - How to elevate my application?
Hi All, I am new in Vista and not a very experienced developer. I am currently developing an application in Visual Basic 6.0, and I want the application to start Elevated in Vista. I want to be able to pop up the window to ask the user for permision to run the application. As I'm new to this can someone help me with a detailed way of doing so, an example code will be very nice. Thank you, Alex Do an MSDN search for Vista and Manifest. That will contain information on how to immediately elevate your application to run with Admin privileges. It also contains sample XML for the manifest file. The manifest can be a separate file or it can be included as a resource within the executable itself. ...Show All
Visual Basic Making a process modal
Hi, hopefully a rather straight forward case: I have two programs that I wish to integrate such that the first one opens the second modally. How would I go about this I'm thinking there must be something you can do with handles, but I have no idea how to go about it and haven't been able to find any information to aid me. Any help would be much appreciated, thanks. Hoopla You can only make windows modal compared to other windows. If I remember correctly you cannot do this over process boundaries. Can you make you second form member of a class library, so that you can create an instance of that form in the same process -- SvenC ...Show All
