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

Software Development Network >> Jason Zhang's Q&A profile

Jason Zhang

Member List

JohnGr
syhzaidi
mattdawg
IMBack
woodland30033
andyfraser
Flavia Lemes
ZoNeNjUnGe
Mike Chapman
espinosa
vcs1161
Peter Lillevold
Jan Byvaly
ljkyser
latinoheat1979
David Inman
comfatso
Wojtek
azcoyote
Si Keen
Only Title

Jason Zhang's Q&A profile

  • Visual Studio Express Editions "It's for the children..." drawtext erase remove

    Howdy, New program for the kiddies... This time, I'm creating a small graphics program where the alphabet letters appear, move, resize, recolor, sort, etc. I'm just getting started...I've got the first letter to move around the screen, and using the font size, color etc, I can get the "A" to move along in a path. I'm using: TextRenderer.DrawText(GraphicsFun, "A" , Me .Font, New Point(point1x, point1y), SystemColors.ControlText How is it that I can erase/remove the letter just before or after the new one appears I don't want to clear the screen/form/etc...just the last appearing letter. Thanks in advance...this site has answered what would appear to me to be hundreds of my questions for the two programs t ...Show All

  • Visual Studio 2008 (Pre-release) "Office 2007"-like window frame

    Hey! I'm trying to do a gui looking like the new office 2007 beta 2 as an WPF-experiment. I would like a big circular button in the uppmost left corner of the screen. If you have seen the beta you know what I mean. I have made the button, but I just can't figure out how to get it to be in the titlebar. How can I do this I also would like to put a similar small shortcut-icon as they have in office aswell that is just to the right of the cicular button in the window title bar. I guess that if I solve my last question this shouldn'tbe so difficult. Any ideas Mr Olle Gustafsson Stockholm, Sweden Thanks for your answer! Is there any particular reason for using the AllowsTransparancy-property Shouldn't WindowStyle=None be enough Reaso ...Show All

  • Visual C++ crypto++ compiler errors

    Trying to switch to VC++ 2005, and here is the major problem I am facing: When compiling crypto++ v 5.2.1. http://www.eskimo.com/~weidai/cryptlib.html the following error message is reported (only in Debug mode - Release builds and runs just fine): c:\program files\microsoft visual studio 8\vc\include\xutility(292) : error C2664: 'bool CryptoPP::CodeLessThan::operator ()(const CryptoPP::HuffmanDecoder::code_t,const CryptoPP::HuffmanDecoder::CodeInfo &)' : cannot convert parameter 1 from 'const CryptoPP::HuffmanDecoder::CodeInfo' to 'const CryptoPP::HuffmanDecoder::code_t' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called c:\program files\microsoft visual studio 8 ...Show All

  • Visual Studio 2008 (Pre-release) FlowDocumentReader ContextMenu

    Hello, I'm trying to implement a FlowDocumentReader Context Menu, but haven't a little bit of a problem. I have it so it can display the context menu when you right click on the menu by the page numbers and layout and it works fine however when I right click on the page itself I just get copy and paste but I want the same as whats set as my context menu. What am I missing Thanks Ben ...Show All

  • SQL Server Getting AutoNumber values after INSERT

    Simple question, I hope. How can I retrieve the AutoNumber generated by INSERTing a row using SqlCommand This would be the unique ID of the record and I need to perform other operations with it. Any help would be great. Thanks in advance I've have a brief look around, but I couldn't find any simple examples of this (it is a relatively simple system) but with little success. It is just a matter of doing something like; // Create the command string cmdStr = "INSERT [name] VALUES ('Test') INTO employees OUTPUT [employeeId]"; SqlCommand sqlCmd = new SqlCommand(cmdStr, connection); // Execute the command SqlDataReader result = sqlCmd.ExecuteReader(); After which the AutoNumber ...Show All

  • SQL Server Sql server install problem

    I am planning to work with replication topic and i have a problem with it. I have installed a SQL server 2005 standard edition.When i try creating a new publication it comes out with this error "Microsoft SQL Server Management Studio is unable to access replication components because replication is not installed on this instance of sql server. for information about installing replication,see installing replication in sql server books online Additional information: Execute permission denied on object 'sp_MS_replication_installed",database'master',owner'dbo'. (Microsoft SQL server ,Error:229) I have tried inserting the CD and reinstalling it.but didnt work. When i tried to Remove sql server from control panel ...Show All

  • Visual Basic .EXE Application on other PC

    After i Build my project in VB.net(2005 expres Edition), can this be Run in other PCs with no VB.net and SQL instaled if not what should i do Check out www.microsoft.com/net You can get v2.0 of the Runtime from http://www.microsoft.com/downloads/details.aspx familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en ...Show All

  • SQL Server For XML Path problems

    Can anyone tell me how to add multiple columns with the same name Here is an example of the XML format I'm trying to create using For XML Path <TABLETYPE TYPEABBRV=“IDEADISAB” TOTALINDICATOR=“N”> <CATEGORY TYPE=“DISABCATIDEA” VALUE=“AUT”/> <CATEGORY TYPE=“AGESA” VALUE=“6”/> <CATEGORY TYPE=“EDENVIRIDEASA” VALUE=“RC80”/> <AMOUNT>10</AMOUNT> </TABLETYPE> Here is the query I was trying to use SELECT 'IDEADISAB' AS '@TYPEABBRV' , 'N' AS '@TOTALINDICATOR' , 'DISABCATIDEA' AS 'CATEGORY/@TYPE' , IdeaCategory AS 'CATEGORY/@VALUE' , 'AGESA' AS 'CATEGORY/@TYPE' , AGE AS 'CATEGORY/@VALUE' , 'EDENVIRIDESAS' AS 'CATEGORY/@TYPE' , EEC ...Show All

  • Internet Explorer Development Favicon in IE7

    Hi My site uses a FAVICON, which works well in IE7. However, I've noticed that if you create a shortcut to a webpage on your XP desktop, the FAVICON is used as the desktop icon. My favicon.ico file has 2 res images of the file, 16x16 and 32x32. However, the desktop icon picks up the 16x16 version and uses that. Is there a way to make it use the 32x32 version. Or can I get windows to use a default icon. Thanks I have the same problem! Even worse. All the other icons of different webpages work on my Internet Explorer, only mine does not. I can copy and paste the line of other webpages in my html code and still no luck. My icon works well with Mozilla though. Does anyone know the reason ...Show All

  • Visual Studio Express Editions Counting pixels in a region

    Yet another question.... I have a region that's made up of several shapes; some connected, some not. Is there an easy way to determine how many pixels that region is occupying I was hoping I'd find a solution in one of its methods but that doesn't seem to be the case. All of the shape information is stored in the region, you'd think it would be easy to count all the pixels in a given region. I will need to count/recount the number of pixels often so I'm hoping there is an easy/non-expensive (CPU/time wise) method for this. Because the region will contain non-connected shapes, and because the region is a solid color, would it be best to convert it to a 1-byte bitmap, then count that way Looking for any advice ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Help!! With Id3dxFragment linker

    Question for the Black belts out there: I am writing a material editor application where i would like to let the user select different pre-written pixel and vertex fragments to work with to create a combined "effect". The interface finds all of the constants and displays the allowing the user to change things like material diffuse, specular power etc. I am familiar with how to use the fragment linker but I think i am missing something conceptually whenusing with with pixel fragments. In the dx samples they make it look like the fragment linker may be used to cascade outputs of fragments, i.e. linking a fragment for diffuse or ambient lighting followed by fragment for animation or not (as per the samples) How can i do this wit ...Show All

  • Windows Forms Formatting the caption of a group box

    Guys, Is there a way to only format the caption of a group box I want to change the color, font etc for just the caption but cant do it thru the property pages. Setting anything in the property page applies it to all the controls in that group box. Help please... ...Show All

  • Visual Studio Tools for Office Outlook property page does not show correct

    Hi all, i added a new property page to Outlook (developed with VSTO in C#). This page shows up, but it has a little bug. There is a small part which is not shown correct. I’ve added a picture which shows the problem. http://img.langalaxy.de/ppage.png What can I do, that the property page looks like "Outlook" property page Thanks Hi, you see the small bar at the bottom in standard control color. This belongs not to my user control. My control is actually bigger than the displayed part, but only the part with the "light color" is shown. For any reason my control is cut off at the bottom. thanks for helping ...Show All

  • Visual FoxPro Calling .NET from Foxpro

    Hi, I have a .NET dll that I need to call repeatedly from within a Foxpro app. In effect, I'd like to instantiate a class in a .NET assembly and call its methods just like any other Foxpro object. I've never done this in Foxpro before. Is there someplace where MS has some relevent documentation that can shorten my learning curve Thanks Here's a good article on COM Interop by Rick Strahl [MVP]. It might clarify things for you: http://www.west-wind.com/presentations/VFPDOTNETiNTEROP/VFPDOTNETINTEROP.HTM   ...Show All

  • Silverlight (formerly WPF/E) Image formats?

    What image formats are supported Is there a reason GIF is not supported Again I've run into a situation where nothing would render and yet no error handler was called. This time apparently it's because there was an <Image> element with a "Source" attribute referring to a GIF file. It's very frustrating to try to work with WPF/E when it doesn't provide feedback for cases it knows it can't handle. In this case I rather doubt it's an XML validation error. So why isn't the error handler being called I can understand if the WPF/E implementation at this stage doesn't support some image formats. And I can understand that the documentation isn't complete. But I'm surprised that GIF files appear not to be supported, given ...Show All

©2008 Software Development Network