Bill YU's Q&A profile
Visual Studio 2008 (Pre-release) Global RoutedCommand
How can I have a global RoutedCommand By global I mean that no matter which Page it's Executed from, it will be recieved in all pages. I'm not aware of any way to do this since commands bubble up, not sideways. Can you describe what it is you want to do With some more details, maybe someone will be able to recommend a good way to do it. Cheers, Drew ...Show All
SQL Server Programmatically Accessing Report Item Properties
Hello All, I have been racking my brains trying to figure out how to access the properties of the Report Items in a given report. I would appreciate any help in this direction. The task I am faced with is to break up a given string i fetch from the database and and distribute it over 3 different textboxes in a report. For this, I was thinking of creating a custom assembly with a function which takes in the string and size (width and height) of a textbox, the font information (family, size etc) to determine what substring will fit into the ...Show All
Visual Studio Express Editions VC# 2005 will not update an SQL Server Express Table
Steps: 1. Added new data source 2. Connected to Data Source. 3. Dragged table to Form. Here is the code.I will press the '+' button to add a row. I will type in the data directly into the Data Grid View . Press the save button. here is the code: private void authorISBNBindingNavigatorSaveItem_Click( object sender, EventArgs e) { this .Validate(); this .authorISBNBindingSource.EndEdit(); this .authorISBNTableAdapter.Update( this .booksDataSet.AuthorISBN); } When I go back to check the table, the new data is not there. please help! The other thing you ...Show All
.NET Development OLE Db vs. ODBC
I'm writing a component for an application to import data into a SQL Server 2005 database from existing legacy databases. These are FoxPro .dbf databases, Excel spreadsheets, and Access .mdb databases. What unable to find which one is the appropriate/preferred access method - using OLE Db or ODBC. Thanks! EDIT: I should have mentioned that the date structures from the legacy databases and SQL Server database aren't identical - the data will get loaded into an in-memory source DataSets (with the same structures as the legacy databases) , go through some transformations and put into destination DataSets with the SQL Server datastructure ...Show All
Smart Device Development Get notified when application loses focus
Hi! I'm developing a testing program for PocketPC in C#. For this project it is important that the user cannot switch to another application. Thus I have to get notified when the application loses focus. I originally wanted to do this via my main form's Deactivate event, but this also gets fired when I display a message box, which also occurs over the runtime of my program quite a few times. So how can I get notified when another application gets the focus, but not when a message box does Since message boxes are shown by you, you can easily detect it (e.g. by setting a flag) and ignore this event if it caused by message box. ...Show All
Windows Forms How can I hide from grid "(name)" property of my control?
I'm just a beginner... I tried to remove it in designer using both pre- and postfilterproperties. Failed... Please, help Conceivably, you could shadow the property and apply the Browsable attribute. ...Show All
SQL Server Problems with decrypting columns
Hi! I want to encrypt a whole column in my table and I do this with this SQL code: OPEN symmetric key Sym_Key DECRYPTION BY certificate My_Cert GO UPDATE [My_demo].[dbo].[My-DemoList] SET [Test_crypt] = encryptByKey(Key_GUID('Sym_Key'),[Test]) GO CLOSE all symmetric keys GO And this seems ok but when I want to decrypt it with the view I have created it seems that I get a "rubbish" character between each "real" character. So my questions is: What am I doing wrong Because if I do an insert like this OPEN symmetric key Sym_Key DECRYPTION BY certificate My_Cert GO INSERT INTO [My-DemoList] (Test_ ...Show All
Visual Studio Express Editions VB Express - Publishing Help Needed
Hey out there. I am an absolute beginner to VB Express and I have what may seem a rather simple question. I have managed to make a couple of simple programmes incorporating data (using Sql Express) but when I install on friends computers the programme which is relatively small wants to install hundreds of megs of additinal progs from Microsoft (SQL Server and Net.Framework) is this absolutely neccessary, can I avoid this in some way Thanks in anticipation Jim I you are developing with express and SQL Server Express, yes you will have to make sure that those programs are installed on the machine. With out the .N ...Show All
Smart Device Development getting milliseconds
hi, i'm trying to get milliseconds. but getting always zero value for milliseconds. Label2.Text = String .Format("{0:d1}.{1:d3}", ck2.Seconds, ck2.Milliseconds) where ck2 is timespan. I 've seen that CF supports this property. then how I'm using VS2003. Thank You. It all depends on how you are populating your TimeSpan structure. Keep in mind, on Windows CE.Net, DateTime.Now is limited to 1 second granularity: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatetimeclassnowtopic.asp " .NET Compact Framework Platform ...Show All
SQL Server Making our SQL Server 2000 application ready for SQL Server 2005
We have several applications that were developed using SQL Server 2000. Most of our customers run MSDE, some the full SQL Server 2000. We are in the process of making sure our applications will work properly in SQL Server 2005 / SQL Express. I have a few questions regarding this issue:- 1. Should I set the compatibility level to 80 for our databases or should I aim to make our applications work the 90 compatibility level I've run the Upgrade Advisor against our databases and this has not flagged up any issues. Does this mean the databases are compliant with the 90 compatibility level. Of course this hasn ...Show All
Windows Forms How to view XML in WebBrowser control using the DocumentText property?
Hi, (This is on .NET 2.0) The only way I managed to show XML in the webbrowser control was to write the xml contents to a file and then use "Navigate(...)" to open the file. This is a bit awkward for me because I have the XML in a string variable, and the most straightforward way to do it would be to simply assign it to the "DocumentText" property. But that did not work... (nothing is displayed, although using the context menu to view the page source shows that my xml content is there). Any tips on how to do this Thanks Rubens I want to do the exact same thing anyone know how Cheers ...Show All
Visual C++ C++ Convert
I have a project in which 99% code are written in C++ and the project is using some other 3rd party application written in C such as Codebase, Crush32, Paige32, Zinc Framework. The project is using Zinc framework for windows, buttons, text and so on. I would like to convert this project to Visual C++ that I can eliminate to use the Zinc Framwork. Is there any method that can help me to convert or I have to start a fresh project in Visual C++ Thanks Hi Micheal, I donno much more about ur code. but it is difficult realese ur code from the code. if ur code ur using a small part of the thrid party framework or library, and if it open ...Show All
Visual Studio Tools for Office VS 2005 RC1, VS Beta3
Why is there a Beta 3 if a Release candidate is already out this is rather confusing...should we be expecting any features in Beta 3 to be included in the release, or should we stick with RC1 also, i heard there is a tool to automatically uninstall previous beta version. Can someone point me to that tool thank you The only BETA 3 version I know os for Team Fundation Server, not Visual Studio 2005.... Latest version of VS 2005 is the RC1 Also, here are the instructions to uninstall previous BETA version, with link to the uninstall tool: http://lab.msdn.microsoft.com/vs2005/uninstall/ Bye. PS: I'm not sure you've po ...Show All
SQL Server Replication distribution cleanup error
I used the SQL Server 2005 publication wizard to set up transactional replication. It scheduled a job called "Distribution clean up: distribution" that calls sp_MSdistribution_cleanup. The job fails every time it runs. The xp_cmdshell is enabled and SQL Server Agent runs under an account that has sufficient privileges to execute it. The account also has full rights to the repldata subdirectories. I have applied service pack 1. I looked through the sp_MSdistribution_cleanup code and it looks like there are two stored procedures and one function missing from the SQL server databases. They are master.dbo.sp_MSunc_to_drive ...Show All
Visual Studio Express Editions Let's go to work on an FAQ for this Forum
The concerted work that goes on here in really impressive. I'm also thinking about a mass mailed note I received from S. Somesegar, corporate VP of Microsoft development. He said that MS Engineers were not alone in building VS2005. Customers had a lot to do with it to make it as neat as it is. Continuing in that vein, I though it may be a contribution to see if we can't put together an FAQ that will take care of a large number of the routine questions. If you'd like to contribute to this let's try the following: In a post to this thread, add: 1.) A Title 2.) A fully stated question in FAQ form ...Show All
