Software Development Network Logo
  • Architecture
  • Game Technologies
  • Microsoft ISV
  • VS Team System
  • Windows Vista
  • Visual C#
  • SQL Server
  • .NET Development
  • Windows Forms
  • Visual FoxPro
  • VS Express Editions
  • Windows Live
  • Smart Device
  • Visual J#
  • Visual Studio

Software Development Network >> yang.zhang's Q&A profile

yang.zhang

Member List

RamanaR
Mohit Gupta - MSFT
G S
rupa
Rahul Kulshreshtha MscIT
rossmac
IT-Beratung
Dave Jacobi
Marco Rucci
John Turley
Brandan C
Manolis P
EJP001
protools
Kirk Brote
ErnieBilling
Ripster
Testking
André Arruda
JimKillian
Only Title

yang.zhang's Q&A profile

  • Windows Forms Form.Focus() and Textbox Enter event not working

    Hi everybody,   I am trying to put focus on the second form called from the first form. I am not using MDIForms. How exactly to fixed this Focus() and Activate() does not work. Also, the enter event of Textbox is not working as it should, when you pressed enter it should execute the codes inside it. This works in C# fine. Thanks in advance. This code below place on Load event or constructor has the same effect [code]     Me.EnableMenuItems(False)      '   Me.Hide()         ''Calls Login Form first       &nb ...Show All

  • SQL Server DBCC SHRINKDATABASE

    Has anyone used the "DBCC SHRINKDATABASE " in a VB.NET project to shrink a DB. If YES, Please, if you dont mind, paste the code in this forum. Tnx Just call it from a command object and it will work. This is from memory so double check the syntax, you will need to add exception handling. Imports System.Data.SqlClient Dim conn as New SqlConnection(<connection string goes here>) Dim cmd as New SqlCommand cmd.connection = conn cmd.commandtext = "use master" cmd.executenonquery cmd.commandtext = "shrink database northwind" cmd.executenonquery conn.close( ...Show All

  • Windows Forms Event firing in DataGridView DataGridViewComboBoxCells

    I have a DataViewGrid (virtual) to which I have added a row of DataGridViewComboBoxCells. My problem is that when one of the DataGridViewComboBoxCells is dropped downand you click on any of the other DataGridViewComboBoxCells in the same row then no event appears to fire. The drop down closes but the edit does not move to the combobox you clicked on. This problem only occurs if the first combobox is dropped down and you try to navigate with a mouse click. If the current box is not dropped down then the click navigates to the correct box. Navigating with the tab works whether the first box is dropped down or not. Can someone tell me what e ...Show All

  • Visual Studio Express Editions Capture active form and save as image to text file?

    Dear Sirs, How do I capture my active form on the screen and save it as an image to a text file Best Regards Cathrine Check out the first post in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=206866&SiteID=1 There is a routine that is used that you can adapt to capture the screen. But, you don't save images to text file format. You save to jpg, ( Jpeg) bmp, (bitmap) and other formats. james aka:Trucker ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Setting up a D3D app in Visual C++ .NET 2003

    I have a small 3D app I am coding as I am learning. I am trying to implement some DirectX fonts to display stats to the screen but am having trouble at compile time. c:\dxsdk\include\dinput.h: DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800 c:\Documents and Settings\Joe\My Documents\Visual Studio Projects\Designer\D3DGame.h(48) : error C2146: syntax error : missing ';' before identifier 'FontDesc' c:\Documents and Settings\Joe\My Documents\Visual Studio Projects\Designer\D3DGame.h(48) : error C2501: 'D3DGame::D3DXFONT_DESC' : missing storage- class or type specifiers c:\Documents and Settings\Joe\My Documents\Visual Studio ...Show All

  • Visual Studio Team System How to refresh VS2005 workitem cache?

    When I have already opened a WorkItem and somebody has altered it I get an error when trying to save. But closing and reopening doesn't cut it. It has cached the workitem. After a few minutes it seems to refresh the cache, but it is annoying to wait. Are there any ways to manually refresh the cache ( without restarting VS ) Thanks borge3000 My VS2005 (Team Suite Trial ed.) does not contain any Edit->Refresh workitem items, nor does pressing F5 refresh the workitem. I do have the Beta3 refresh Team Explorer... does that matter Borge3000 ...Show All

  • Visual Studio Express Editions Compiling 64bit with VC++ 2005 Express using PSDK

    This little guide I made is to make the VC++ 2005 Express compile 64bit using the latest PSDK (altough I'm not sure how good it works) I'll assume you already have VC++ 2005 Express and the PSDK installed, and activated the Win32 application building in VC++ and running 64bit Windows (well it maybe works in 32bit windows too but the exe will not run in that enviroment) 1) Start -> All Programs -> Microsoft Platform SDK for Windows Server 2003 SP1 -> Windows XP 64-bit Build Environment -> Set Windows XP x64 Build Environment (Debug/Retail) <- doesn't mather which one at this moment 2) start the VC++ 2005 Express IDE run the ...Show All

  • Windows Forms best practice advice for secure socket comms ..

    hi guys ... Im developing a Client-Server system which will be used through regular internet. My development environment would be VB.NET 2003 & 2005. I would be communicating using regular Sockets & TCP. The client would be running on Windows Pocket PC 2003/Mobile Edition PDA's & connecting to the server through GPRS. The server would be a running on regular Windows 2k or 2k3. I want to secure my communication from prying eyes & at the same time protect my server. All this should be cost effective including time spent on development. At the moment Im not sending Credit Card information on this - so that level of secure com ...Show All

  • Visual Studio Express Editions Learning VB and .NET

    Hello... I've invested in Books 24/7 to have access to a lot of IT books to learn various things. I really want to get a good grasp on VB.NET 2005 and ASP.NET 2.0. I have VB.NET 2005 Express and VWD Express and I know enough to be dangerous. But I feel that without practical examples, I am spinning my wheels. Also, the books that I try to use to learn the languages. They end up going off on tangents that I don't want to go on. I like the format of Wrox books but they end up making you play around with examples already coded and I feel that I don't learn anything. Their VB 2005 Pro book has no structure of learning it. So it is either using e ...Show All

  • SQL Server database maintenance plan - reorganize data pages and indexes

    I've set up a monthly maint. plan that will re-org the db. I'm hoping that since this is a very high tran vol that I'm being proactive. But, when I do this against a matching test db (exact same one but the name) I get a SET QUOTED IDENTIFIER incorrect on the optimization step. I've checked the properties of the DB and the 'Use quoted identifiers' box is checked and needs to be. I created the maint plan using the wizard and the option I've tried it with the option of reorg to orig amt of free space and change free space selected. Help!!!! Oh, this is a PeopleSoft DB, so I can't change the prop of the DB.. Try putting the followin ...Show All

  • Windows Forms What's the difference between bin and obj?

    always wondered that, they seem to be the same I find the files in the bin and obj quite different, the program in the obj doesn't run while the program in the bin does run. My impression therefore is that the obj is the compilers working area, while it finalises the compilation in the bin. (I could find nothing about this  ...Show All

  • .NET Development Missing Files in Microsoft.Net\Framework\v2.050727

    When I run Norton Win Doctor it shows 10 errors all related to Microsoft.Net Framework.  When I click on "Repair All" it does not do anything.  When I click on "Advanced" and Highlight 1 problem after another, clicking on "repair" on each individual error, the repair box comes up.  In the repair box it gives possible solutions and normally you can click on the repair botton that is in the solution box and it will repair the problem.  You cannot press on that botton in this error solution box.   The possible solution box said," MSVCR 80.dll might be located on a removable drive, a no v ...Show All

  • Visual Studio Team System Upgrade Beta 3 to Beta 3 refresh

    What will be involved in an upgrade from VSTF beta 3 to the beta 3 refresh According to Jeff Beehler in this blog post: http://blogs.msdn.com/jeffbe/archive/2005/10/14/481002.aspx   " Upgrading an existing Beta3 server will be a matter of uninstalling the server and reinstalling the refresh release.  The data (projects, work items, source code) will remain in place and be available once the refresh is successfully installed.  We’ve undergone a similar reinstallation procedure here with our own servers and we were only offline for under 3 hours.  As such, I would encourage you to get started using Beta3 now and plan ...Show All

  • Windows Live Developer Forums Activities Menu Unavailable

    I've noticed a number of instances with users not being able to access our P4 application because the Activities menu is consistently unavailable.  I have witnessed this situation myself over several  home broadband connections and the Activity list comes up with the following message: "List of games or activities is temporarily unavailable. Please close and try again later." I initially thought this was due to a restriction on the client machine's network, but this has happened to me in my own home after a recent move.  I've changed nothing...even my provider is the same, but the Activities menu is inaccessible from home. ...Show All

  • Visual FoxPro Excel to VFP

    Dear Experts How to import data from Excel to Dbf. Excel sheet columns heading will be DBF column names Please help Use the IMPORT command: IMPORT FROM MySheet TYPE XL8 Tamar ...Show All

©2008 Software Development Network