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

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

Jason Zhang

Member List

SOTY_Programmer
Ying06
Sadat Saeed
maverick_majnoo
elsamma
Gilles Lafreniere
LoveWinXP
Cattox
Nik Ivancic
Gagan Sharma
dmbrubac
Chris Jeff
Cosmin Nicolaescu
RafaDom
Will Merydith
anf600
Anarchy
Pilsener
Shilov
Matrixchyah
Only Title

Jason Zhang's Q&A profile

  • Internet Explorer Development IE extension trying to inject images from the local file system into the DOM: style.background works, img.src does not?

    I have an IE extension written in .NET 2.0 that manipulates the DOM in a manner very similar to the IE developer toolbar. However, I need to inject some images into the DOM as well, and our initial approach was to stuff the images into the IE temp files directory, and then retrieve them at runtime. This approach worked okay for us until we started working with the release version of Windows Vista. I can't write to the temp IE folder anymore without direct administrator access, as it is now considered a protected system folder. I've tried to stick the images into some different places, but in every case I get this strange behavior: I have two different DHTML objects I insert into the DOM. One uses a background image (using object.style.back ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. z-buffer sorting?

    In experimenting with drawing multiple objects on the screen, I've found an interesting situation. I the picture below, the larger craft is closer to the camera, the smaller craft away from the camera. But if you look at it, the larger craft cuts into the shape of the smaller one, even though it is far enough away not to do that. In my drawing code, I know I'm drawing my smaller craft after the first, so there is clearly some kind of z-buffer problem. What I don't know is how to decide which object to draw first reglardless of camera positioning, or even if XNA has any help with that. Any ideas http://www.spellflight.com/images/zbuffer.PNG It's simple, just set these two render states before you draw y ...Show All

  • Visual Studio Team System Migrating to another server : The IIS application pool user name is invalid.

    I am following the new TFS Admin guide : TFSAdmin-v61101.chm, in order to perform a test restore of our TFS installation onto a vm hosting a TFS installation with another name. i.e. TFSProd -->Move to --> TFSVM The VM is in Workgroup mode, but is a full-blown TFS (i.e. not Work Group edition) I am following the guide document entitled "How to: Restore Team Foundation Server Data" I have restored Sharepoint databases, including STS_Config I am trying to Set the Configuration Database Server in WSS, but get the following error: The IIS application pool user name is invalid In IIS I have STSAdminAppPool and STSAdminAppPool_1 - both are under the Network Service identity. In SQL Server, Network Service is mapped to th ...Show All

  • Visual Basic Using VB with a MS Access Database: back-end: configuring access levels

    Any help would be greatfully recieved here! I'll try and explain the situation here... I have a database in Access, which is in essence a booking system. I am using VB to link to this database. There are people that log onto this system. The problem / question: The people that use this database have different access levels. I have some people who I want to have "read-only" access, some people I want to give them "Read / Write" access to, and some people I want to give them "Full Control" access to. Using a security table with levels of access is the way to go, but what would this code look like How would I keep a level of security on a global variable, test the variable each time the use ...Show All

  • Visual C# Excel Automation Addin Problem

    Hi, I created a class with several User defined Functions that i use in excel, but now i needed to pass several values to the functions like this: =Function1("val1"; "val2", ...) and so on... the number of arguments are unknown and this is the big problem... How can i get an unknown number of parameters from the excel formula I'm trying to get into this for about 5 months now... I have tried the paramarray and params methods without success, i think its because in vba or normal vb the paramarray/params works by reference and in .net it would only work by value. I need one solution for this in VB.NET or C#. Best Regards, Luis Simoes I am not sure whether it is possible to get a parameter array. All my attempts to use array of paramet ...Show All

  • Visual Studio 2008 (Pre-release) Windows Media Photo image format support?

    Hi, Does (or will) .NET 3.0 support the new Windows Media Photo image format Thanks! Yes it does. Look for the WmpBitmapDecoder and WmpBitmapEncoder classes in the System.Windows.Media.Imaging namespace. Also, you can use the BitmapFrame or BitmapImage classes to decode Windows Media Photo files. ...Show All

  • Windows Forms Microsoft office Word!!

    some time i write when i am using office word capital letter only while i want it with a small one.. i remember that i changed this by pressing some keys but unfortunatly i dont remeber what it was ... anyone know these keys Regards & Thanks Hi, These forums are meant for posting threads related to programming issues in Winforms.net. Thank you, Bhanu. ...Show All

  • .NET Development TCP Listener issues .. Please help..

    I've tried to make a simple TCP Listener, but keep running into a few problems that I don't know howto resolve.. First the code: Private Sub StartListener() 'Dim ipAddress As IPAddress = Dns.GetHostEntry("localhost").AddressList(0) 'Dim ipAddress As IPAddress = Dns.GetHostEntry("localhost").AddressList(0) 'Dim myListener As New TcpListener(ipAddress, portNumber) 'myListener.Start() myListener = New TcpListener(ipAddress.Any, portNumber) myListener.Start() AddMainChat( "*** Ready for connection on Port " & portNumber & "..." ) isConnected = "yes" StartButton.Text = "Stop Server" While True Try Dim tcpClient As TcpClient = myListener.AcceptTcpClient() AddMainC ...Show All

  • .NET Development Help on regex

    I need a regex for a timespan .. from 15 min to 24 hour. input is something like 00:15 I'm not very good in building the pattern. Thanks, (Moderator: Thread move to Regular Expression forum and Title changed from "Help on regex" to "Regex and Timespan" for quicker thread understanding during a search) >> but it acceptable values should be betwee 00:15 and 23:59 IF that's exactly what you want (00:10 is bad, but 00:16 & 01:01 is good) then this would be a bit tricky from a Regex, so you may want to consider a different approach. However, This should work: "(00:1[5-9])|(00:[2-5][0-9])|(0[1-9]:[0-5][0-9])|(1[0-9]:[0-5][0-9])|(2[0-3]:[0-5][0-9])" It get the following result: ...Show All

  • Software Development for Windows Vista Organizational Certificate or 'Microsoft Authenticode' Code Signing Digital ID

    Hi, I am just wondering if the VeriSign Organizational Certificate is sufficient to pass the Certified for Windows Vista Logo Program or if we need to buy the much more expensive VeriSign 'Microsoft Authenticode' Code Signing Digital ID . Does anyone know Bye Sven Hi Oliver, that sounds interesting. Can you please explain it a little bit more BTW, this morning I got a call from a Verisign sales agent. She told me that definitely code signing is not possible with the 99$ certificate. Bye Sven ...Show All

  • .NET Development How to get data from a SqlDataSource in XML format

    Hi, How to get data from a SqlDataSource in XML format and then write the XML data into a file I appreciate if you could give a sample code for the above (I am using VB) Thank you. First of all the SqlDataSource web control is built on System.Data API's. If you have SQL Server 2005 you can use the "for xml path" query and get back the data as XML and stream it directly to disk using an XmlWriter as follows: string constr = @"Data Source=.\sqlexpress;Initial Catalog=MyMoney;Integrated Security=True"; SqlConnection con = new SqlConnection (constr ); con.Open(); using (con) { SqlCommand cmd = con.CreateCommand(); cmd.CommandText = &qu ...Show All

  • SQL Server Automating db Backups

    Is there a way to automate (schedule) backups of the databases in SQL Express Similar to Maintenance Plans in SQL2000.... I have a similar solution posted here that's not incredibly elegant but it works just fine. It goes through and backs up all databases in a given instance and there is an included batch file to schedule it. The video deployment instructions can be seen here: http://www.jumpstarttv.com/Media.aspx vid=30 or written instructions here: http://whiteknighttechnology.com/cs/blogs/brian_knight/archive/2006/08/13/215.aspx -- Brian ...Show All

  • SQL Server Error while back-up the Database

    Hi, I'm facing a problem whereby I can't back-up one of the databases on the SQL Server. I'm using the method of right clicking the database, select "All Tasks" and click on "Backup Database" to backup all my databases. Basically, I managed to back all the databases using the same method as stated above EXCEPT one of it (let says Database A). Actually, throughout the backup process of Database A NO ERROR being prompted BUT when I check for the tape contents Database A is excluded from the contents AND when I purposely back-up Database A again and check the contents of the tape, it indicates that the back-up is incomplete! So what should I do in order to back-up that particular database successfully ...Show All

  • Visual Studio Tools for Office MailMerge.CreateDataSource

    Is there anyway to get a Dataset or a DataTable as the source The header in any case would be > 255 characters. Is there another way to have <<variable>> fields populated without using MailMerge TIA Cindy, I am back trying it your way. the problem with bookmarks is that you cannot have one in mulitple places, ie empname shows up in the document 5 places, yet the bookmark named empname can only be in one place. TIA ...Show All

  • Visual Basic VB.Net String Pattern Matching

    Hi, I created a post here yesterday about copying/searching, now there's another part. I need to know when I perform a search how to invoke string pattern matching, if i was to type any specific data, i.e. A12345 or B54673 and so on. Can anyone help so you wish to do a search when the user presses the button The above code does just that. As you learn to develop more and more you will realize that having functions or sub methods of your own will be handy so you can call them from anywhere within your class instead of just a button click for example. All you need to do is place the pattern matching code in the function and that's it The function returns a boolean meaning true or false. So it d ...Show All

©2008 Software Development Network