Software Development Network Logo
  • Smart Devicet
  • Visual Studio
  • Visual Basic
  • Visual C++
  • Windows Forms
  • Visual FoxPro
  • SharePoint Products
  • Audio and Video
  • .NET Development
  • Windows Vista
  • Visual C#
  • Microsoft ISV
  • Game Technologies
  • IE Development
  • VS Team System

Software Development Network >> Han Qiao's Q&A profile

Han Qiao

Member List

Vaish
sbuster
ivanw
JulianRidley
morphius1
RandomTiger
Mike Humphrey
Atiz
Tails111
MauricioUY
GAlexey
Kamii47
cippyboy
Mark Guenault
mattdawg
DanMoseley - MSFT
vito1281
AtMyWittsEnd
Martin Odhelius
PatOvens
Only Title

Han Qiao's Q&A profile

  • .NET Development Getting users of the system

    Hi there, Just want to ask how can you (programatically) know what are the users of the OS (Windows XP) and their passwords Regards looks like you are trying to do some hacking of some sort perhaps. I dont think you can retrieve the passwords but can retrieve the users, either by using WMI or the DirectoryService namespace/classes ...Show All

  • Visual Studio Tools for Office Unable to install VSTO 2005 on system with only Office 2007

    I have setup a computer with Windows Vista RC1 and Office 2007 Beta2 TR but when I try to install VSTO 2005 it says I have not installed Office 2003 SP2 and refuses to continue. Is there a work around for this Do you have Office 2003 Pro available If so, try installing just Word or Excel from that distribution. Ideally, if you have only VSTO 2005 and not Visual Studio Team System, this would be the order to install applications so that you can build Office 2007 add-ins with VSTO 2005 SE: Office 2003 Professional (at least Word or Excel, but not Outlook) VSTO 2005 Office 2007 (including Outlook) Office 2007 B2TR VSTO 2005 SE ...Show All

  • SQL Server how to convert this into stored procedure?

    I have the following coe to populate combobox with data from different tables and I want to know how to convert it into stored procedure private void populate_drop_down() { try { //ensure the box is cleared cboIDType.Items.Clear(); cboNationality.Items.Clear(); cboCountry.Items.Clear(); cboGender.Items.Clear(); cboMaritalStatus.Items.Clear(); cboBloodGroup.Items.Clear(); cboProfession.Items.Clear(); cboCompany.Items.Clear(); cboBloodGroup.Items.Add( "" ); cboProfession.Items.Add( "" ); cboCompany.Items.Add( "" ); //Use the SQLServer provider.. //set up the connection and the command... // sql_connection = new SqlConnection("server=J ...Show All

  • SQL Server Dynamic XSD Schema Location For XML Source

    I want to be able to programmatically set the schema location for an XML source. I first thought it would be a simple task using expressions and variables but it doesn't appear to allow anything in the way of setting it at runtime. Is this possible It does allow it, but you don't set the expression directly on the component. You have to set it on the data-flow that contains the component. Switch back to control-flow and look at expressions of the data-flow. Its self-explanatory from there. -Jamie ...Show All

  • SQL Server running packages in parallel and isolated (like a sepearte instance)

    I'm a bit confused about how ssis handles concurrent package runs let's say I'm running this package and I 've got 3 variables set in it VARA VARB VARC and by default they are all set to 0 if I run dtexec /File "C:\ControlRoom.dtsx" /SET \Package\Version_Builder.Variables[VARA].Value;1 dtexec /File "C:\ControlRoom.dtsx" /SET \Package\Version_Builder.Variables[VARB].Value;1 dtexec /File "C:\ControlRoom.dtsx" /SET \Package\Version_Builder.Variables[VARC].Value;1 I'm expecting to run 3 isloated version of the package with in first version VARA=1 VARB=0 VARC=0 second version VARA=0 VARB=1 VARC=0 third version VARA=0 VARB=0 VARC=1 but it doesn't seem like doing that the maxconcurrent variable is set to 40 to be on ...Show All

  • Windows Forms RichTextBox.Rtf -include Final Carriage Return?

    For a string with a carriage return at the end: richTextBox2.Text = richTextBox1.Text; //text is copied verbatim with the carriage return richTextBox2.Rtf = richTextBox1.Rtf; //The final carraige return is not copied over Is there a wy to copy Rtf and keep any final return character Carraiage returns anywhere else in the string are fine. No, it isn't. Do you have the same problem I think I need to take a screen shot from the debugger to show that the final return isn't included in the Rtf, but is in the Text string. In the meatime, since I didn't get an answer I have used a work around.  It was copied after doing a .SelectAll() on the RTB with the text to be copied, if that he ...Show All

  • Visual Basic Arabic Printing - Urgent Solutions Needed

    I have developed application in Visual basic 6.0 which supports English and Arabic languages. In textbox , Arabic font display properly.While creating report in Arabic language, when I am sending Arabic text from vb application to word application, in word document it shows junk characters. I used the word document object for creating report (i.e. sending text form vb application to word application) While my machine (xp Os) supporting Multilanguage futures , i can write in word document using Arabic font directly. kindly help , i need solution at earliest..... when you send text, how do you send as a stream you should send with unicode ( http://en.wikipedia.org/wiki/Unicode ) encoding. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How do I set The PrefferedBackBufferWidth and Height?

    Im learning XNA but it says PrefferedBackBufferWidth isnt a variable, Im trying to set the size of my application to 800 x 600. Thanks In the constructor for your class derived from Game, you should create an instance of the GraphicsDeviceManager class. After creating this instance you can set the preferred back buffer dimensions: public class MyGame : Microsft.Xna.Framework.Game { GraphicsDeviceManager graphics; public MyGame() { this.graphics = new GraphicsDeviceManager(this); this.graphics.PreferredBackBufferWidth = ...whatever you want; ...and so on... this.graphics.ApplyChanges(); } } ...Show All

  • Audio and Video Development Problems with XBOX 360 HD DVD Player

    I continue to run into issues with the xbox 360 hd dvd player every time I insert an hd concert dvd. I do not have any issues with the hd movies but have had issues with every concert inserted. Does anyone know of a solution i'm having a problem with Discovery Atlas: Italy HD DVD ... when i put the disc in..nothing but a black screen..can't even get a menu or get back to the dashboard w/o turning the console off/on. The only button on the remote that gets a response is the eject button. The player has worked great til now. ...Show All

  • Visual C# Asian characters in a rich edit text box

    In my C#, VS2005, app, there are labels and three rich edit text boxes. Chinese, Korean, and Japanese characters are being displayed on the labels, but " " show up on the rich edit controls. Operating System being used: XP, SP2, US version. I have gone into Control Panel \ Regional and Language Options and 'Installed files for east asian languages' and also 'Install files for complex scripts...". Do I need an Asian operating system to see the characters instead of the " " on a rich edit control This is the code I'm using that works for labels. m_rtfDesc.Rtf = @"{\rtf1\ansi \nowwrap " + prodDesc + "}" ; Thanks in advance. Thanks for the quick re ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating a game interface

    Hello I have just started working with DirectX 9.0c and I have some questions about creating game interface. I am using Visual Studio 2005, C# and managed DirectX. 1) For egxample, I have got a form in VS2005. I would like to use Windows forms controls (like buttons, checkboxes and so on) for creating user interface, and a 3D model would be rendered in a panel (still Windows forms control) by DirectX. Buttons and other interface controls should be over the panel (just over the panel, not a children of it). But after rendering, when I run my app, will I see created interface If DirectX context is rendered firstly, will the the created interface be over the panel If not, what are the other ways to create GUI with Windows Forms and a ...Show All

  • Visual Basic Printing Large windows form in VB.net

    I have a problem in printing large windows form. I have used following code to print the form. still it's printing like print screen, not complete form. Form is larger than the Screen and Scrollable. Private Const SRCCOPY As Integer = &HCC0020 ' create a printing component Private WithEvents pd As Printing.PrintDocument ' storage for form image Dim formImage As Bitmap ' create API prototype Private Declare Function BitBlt Lib "gdi32.dll" Alias _ "BitBlt" (ByVal hdcDest As IntPtr, _ ByVal nXDest As Integer, ByVal nYDest As _ Integer, ByVal nWidth As Integer, _ ByVal nHeight As Integer, ByVal _ hdcSrc As IntPtr, ByVal nXSrc As Integer, _ ByVal nYSrc As Integer, _ ByVal dwRop As ...Show All

  • Smart Device Development Getting Focus Handle after lost

    Hello, i need help related to getting focus. when it loss focus through any reason (i.e any phone) because i loss the focus my application is still running it draw white images inside of actuall images. i want some event or API that will remind my application that focus is back to the application so i will redraw the content (photo). any code sample or resourses is highly appreciated. Thanks in advance Regards Salman So it wants to know when it is the window that is currently being shown I've never done anything like this, but a quick look at the Window API shows that WM_ACTIVATEAPP is send as a message when the window is about to be activated by another process. So in your WndP ...Show All

  • .NET Development Can I use ASP.NET Web Services with MySql DB?

    Hi, Can I use ASP.NET Web Services with MySql DB and how to connect ...Show All

  • SQL Server Export format - restrict list

    Hi! How I can restrict list of export formats for custom reports E.g. "Production report" requires only XLS and PDF formats in the list. Is it possible You can modify your ReportServer/rsreportserver.config file on the server. Find the Render section and comment out any Extension entries you don't want available. Thanks, Donovan. ...Show All

©2008 Software Development Network