Rei Miyasaka's Q&A profile
Visual Studio 2008 (Pre-release) WPF demos
hi i was trying to get my hands for any of the wpf demos available on msdn but all the links wasn't working i want demos for the last build of this month thanks in advance Which demos are you looking for. There are many samples available in the SDK. There are many samples available on http://wpf.netfx3.net as well. ...Show All
Windows Forms ClearType Winforms controls
Hello I am interested in using ClearType with my Winforms controls. I know windows XP allows using ClearType as a default, but I want to use ClearType even if the windows definition is not set. What is the best way to acomplish this I can change the appearance of each control by subclassing it, but is there a way to change it globaly for the entire application Ran. ...Show All
Visual Studio Team System Office integration throws Assertion error when we export from TFS
For some unknown reason we are now getting an" Assertion Failed" error when we attempt to export our tasks from a specific TFS project (rt+click on work items and choose "Add work items with Microsoft Excel" or project) or connect to TFS from our existing MS Project that used to previously synchronize with this project. The error says "Rule 6824 refers to a non-existing field." at WitExporter.FindaddTargetElement(PSRuleMetadataRecord* pRule) .... etc(more not listed here)... Anybody ever seen this before As far as I know my colleague and I have done nothing to the schema or rules for this project. (He had updated some rules on a different project.) I'm looking in the obvious places of the task and b ...Show All
Microsoft ISV Community Center Forums Inserting rows and columns in protected sheet.
I have got a protected sheet in which some of the columns and rows are locked. Hence the user will not be able to edit these cells. But they can edit the unlocked cells. i have set the lock property of all the cells in the sheet to unlock. Then i locked only the requried cells manually. But when i am trying to create a new column next to locked column or new row next to the locked row, the newly created column or row is also getting locked which is not the desired output for me. ie.if i am creating a new column (eg: after column A), then newly generated column (column B) is having the same format of Column A and hence the cells adjacent to locked cells(of column A) in column B is also getting locked. i want the column B to be not ...Show All
Visual Studio Little trick: Run solution in Exp hive via 'Send To' menu
Hi, Maybe this trick will help you to save time... Create a shortcut in C:\Documents and Settings\<your_account>\SendTo\ directory and set "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /rootsuffix Exp as a location of item. That's all - now you can Send any .sln file To be opened with devenv in Exp hive! Thank you, Carl! But your reply is not an answer because there is no question posted... So I 've unmarked it. ...Show All
Visual Studio Express Editions a small help please
Hi, I have a problem in doing a simple program.I want to load the text of a notepad into the text box of visual basic.can any one help Thank You in advance. Are you saying that the filename is contained in the textbox You should do this: dim filename as string = TextBox1.Text dim filecontent as string = System.IO.File.ReadAllText ( filename ) 'Do something with the filecontent later on Hope that helps ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I got the true video memory information
I use two fuctions to get video memory information.One is the getcaps in Directdraw. The other is getavailabletexturemem in directx9. But the two fuctions just return the video memory changes when I play a movie by realplayer. When I just show a picture in Mspaint, the video memory information doesn't change at all. To confirm my video memory information, I use the caps viewer which ship with directx9. But no different result was found out. So is there any other function to get video memory information Why the video memory doesn't change at all when show a picture thanks. No it doesn't. It's not a memory "move". It's a copy of the bits from one place to another. Both memory areas are preallocated: your BMP in syst ...Show All
.NET Development DataSet binary serialization or DataSetSurrogate
Hi! I'm serializing and remoting a DataSet to put it in a webservice in IIS, but use XML formater and is too slowly (becase are big DataSets). I want use binary formating to serializing these DataSets. I read about DataSetSurrogate , but i don't find it in the Object Inspector of Visual Studio :( Where it is I put the DataSet in a webservice in IIS because there is a lot of pocket pcs that must read this DataSet ... can i use DataSetSurrogate in pocket pc This DataSets are dowloaded via GPRS and if it is BIG DataSet ... then takes a long time, besides the pocketpc also takes a long time to parse this large XML file. If i can't use DataSetSurrogate .... what thing can i use to improve the DataSet performance How serializing a remoting a Da ...Show All
.NET Development Failed to update database because the database is read-only.
I am building a Windows Forms application in VS 2005, using C# and SQL Server 2005 Express as the backend. When I try to accessd data from the db, it works with no problems. When I try to insert/update/delete, I get the following error message Failed to update database "DBNAME" because the database is read-only. I am using a connection string with the following syntax: "Data Source=.\SQLEXPRESS;AttachDbFilename=c:\PATH_TO_DB\db.mdf;Database=MyDB;Integrated Security=False;User Instance=False;User ID=USR;Password=PWD;" I have made sure that the permissions on the DB are set (in Windows) so that all users can modify. The user that is logging in to the DB has status set to DBOWNER. I have seen others experience the same problem - with ASP.ne ...Show All
Visual Basic VB.Net SQL Server 2005 Accessing a stored Procedure via a datagridview
Hello, I've created a datagridview from a table in SQL server 2005. In the table I have one text field and two bit fields that I'd like to be updated from the datagridview during runtime. I need to know how to do this with in line sql as well as by hitting a stored procedure. Dim cmd As New SqlClient.SqlCommand() Dim param As SqlClient.SqlParameter Dim dr As SqlClient.SqlDataReader Dim conn As New SqlConnection() conn.ConnectionString = "Data Source=xxxx;Initial Catalog=xxx;Persist Security Info=True;User ID=xx;Password=xxx" cmd.Connection = conn cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "makeuncallable" param = New SqlClient.SqlParamet ...Show All
Visual Studio Team System 64 bit support?
Can i install Team Foundation Server on Windows 2003 Enterprise x64 Edition I havent seen it listed as a supported OS. If not will 64bit be supported any time soon Hi, At the moment you can only install the TFS data tier on a 64bit OS when using a dual-server configuration. Check the section on "64-Bit Operating System Support" in the TFS installation guide for more information. I don't expect to see 64-bit support until the next release of TFS. Regards Anthony ...Show All
SQL Server Using Multiple Versions of SQL Server in a Replication Topology
Hi there, I have one publicacion on ms sql 2005 Enterprise w.sp1/MS Windows 2003 Enterprise w.sp2 and one subscriber on MS sql 2005 Enterprise w.sp1/MS Windows 2003 w.sp2, but I have also 3 subscriber on MS SQL 2000 w.sp3/MS Windows 2000 advanced server w.sp4. They replicate the same database with a publication compatible with 80RTM, All works fine with data replication, but I can't replicate DDL to MS sql 2005 suscriber, I don't care that don't replicate DDL, but I want manually alter triggers at MS sql 2005 suscriber, but I get this error at the subscriber on when I run the ALTER TRIGGER statement : Msg 21531, Level 16, State 1, Procedure sp_MSmerge_altertrigger, Line 67 The DDL statement cannot be performed at the Subscribe ...Show All
SQL Server Exception : Script failed for Server '(local)' while generation Scripts on Scripter
Hi I'm trying to generate scripts for Stored procedures as below int count = db.StoredProcedures.Count; SqlSmoObject [] smos = new SqlSmoObject [count]; for ( int i = 0; i < count; i++) { smos = db.StoredProcedures ; } SqlSmoObject[] smos = new SqlSmoObject[count]; //Generate Crates StringCollection strcol = scrp.Script(smos); writeToFile(strcol, "Create" , "SP" ); I'm getting the " Script failed for Server '(local)' " at scrp.Script(smos); Can anybody help me in this This app uses SMO to script out all objects in any 2000 or 2005 database. The source is freely available so you can easily modify it if it's not to your liking. ...Show All
.NET Development System.Nullable<DateTime> serializes without the date in .NET2
In C#, I have a Web Service that I am consuming that has an optional and nillable xs::dateTime field. Everything works fine in .Net 1.1, but when converting the project to .Net 2.0 the xs::dateTime fields are excluding the date in the serialization. If I change the WSDL file so that the xs::dateTime field is NOT nillable, then the wsdl.exe doesn't make the field a System.Nullable<DateTime>, it makes it just a DateTime and the problem goes away. I've done some research and found people with similar problems[0] on the internet, but haven't seen any answers. Please bear with me, but there are several code sniplets below. In the WSDL, the object is defined as such: <complexType name="DummyDateTime"> <sequence ...Show All
Visual C# How to Create a URL syntax checker in C#
I would like to create a URL syntax checker so that can verify a cerrtain URL not a phish site. But I am also aware that some URL have valid syntax but is still a phish site. To answer this, I am looking for some measures on how to verify a URL and its correct DNS equivalent. I am doing a project of mine as one of our requirements and I have decided to create a web browser (already done) and I have included there 3 anti-phish tools. One of the tools is to check for URL syntax error. i have searched for such but has given me no good results that can be of any help to my project. I was hoping that some of the bright minds here could help me or enlighten me in my search. Thanks. Well wat ur telling is going to server side for v ...Show All
