chinalifan's Q&A profile
Visual Basic Dataset HasChanged Property
I'm Making a database program I've noticed that the property HasChanged intented to track wether the dataset has changed does not update it's value to True in case of the user has edited the data on the screen till you move to another record can I know if the user changed the data before the user leaves the current edited record to another the purpos of this is to alert the user to save data before he mopves to another record or close the form in the simplest way It colud be done Thank You all The changes you are making will be accepted into the dataset when you move to a differe ...Show All
Visual Studio Express Editions Error referencing type library
Hello, Using VB Express 2005 I'm trying to manually add a reference to a type library (.tlb) created with MICROSOFT VISUAL C 6.0 licensed product (Microsoft IDL compiler) and receive the following error: "A reference to <path to .tlb file here> could not be added.Please make sure that the file is accessible, and that it is a valid assembly or COM component." This type library is provided by a company who makes available their OLE interface to their program, it works correctly in VB6. I'm not sure where to go from here, is there some other method I could try Thank for you help, William ...Show All
Visual Studio PrintToPrinter failed to print
Hello, I’m using VS2005 RC with the embedded Crystal Reports classes. I’m trying to print directly to printer using PrintToPrinter method from a typed dataset. I don’t know what is happening because there’s no exception thrown, the reports simply does not print, the windows printer icon appears on the taskbar for a second and then dissapears. Dim report As New rptOrders 'rptOrder is a .rpt file all configured for the dataset I want to print Try report.PrintOptions.PrinterName = My .Settings.OrdersPrinter report.PrintOptions.PaperOrientation = PaperOrientation.Portrait report.PrintOptions.PaperSize = PaperSize.PaperLett ...Show All
Visual Studio Express Editions C# Equivalency of VB function "DoEvents"
Basically the DoEvents function does something mainly used for waiting. Here's an example: Do Until Winsock1.State = 7 DoEvents Loop That example waits for the winsock control to successfully connect. So how would I perform the same task in C# Thanks in advance ...Show All
.NET Development X509Chain error
I downloaded VIsual C# Express 2005 and tried the SslStream class but i received this error declaring the CertificateValidationCallback: error CS0426: The type name 'X509Chain' does not exist in the type 'System.Security.Cryptography.X509Certificates.X509Certificate' and this is the line of code i wrote: static bool CertificateValidationCallback( object sender, X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, SslPolicyErrors sslPolicyErrors) 1) What did i do wrong 2) There's a way to connect to a ssl server without worrying about authentication I mean.... i don't need to check the cert ...Show All
Visual C++ Binary compatibility between vs2005 and vs2003 streams?
I've got a project that's a plugin to a larger program - specifically, it's a plugin to Alias Maya 7.0. For file loading, I implement a function with the signature: MStatus MPxSurfaceShape::readBinary( std::istream& in, unsigned length ) The problem is that the istream isn't working very well. Specifically, I have some code: char *buffer = new char[length]; in.read( buffer, length ); if( in.bad() ) return MS::kFailure; There are a couple of problems that happened. First, the read failed. It reads 0 bytes into buffer. Second, in.bad() returns false, even when the read doesn't happen - in.fail() returns true. If I create a st ...Show All
Windows Forms .net developed app Compatability
Hej people. I have developed a small application with visual studio based on .net and with access 2k db. I have tried it out on my own xp computer as well as w2k3 server and it runs. Does any one know how it would behave on win98/w2k clients in general Thanks It will crash and corrupt the boot partition in Win98/Win2K. The monitor will begin to melt and the mouse will turn into cotton candy. The left wheel on your chair will then break followed by your right armrest. Just kidding... :) It should work without a problem. Good luck! ...Show All
SQL Server How to get the URL to access a report?
hi, all I am just starting to use the SQL Server 2005 report service. And I also made some reports, and I am thinking how to get the URL to access the report, especially when I have some parameters need to be passed into the report. Basically it's something like this: http://servername/reportserver /Sales/YearlySalesSummary&rs:Command=Render&rs:Format=HTML4.0&Year=2002 where Year is a parameter. Check the SQl Server Books Online for URL access. ...Show All
Software Development for Windows Vista Beta 2 Debugging question for HOL 1
Hello, I'm working through the Hands on Lab (HOL) #1 for WF Beta 2, Exercise 3 and task 7. Everything's been working according to the lab instructions until I got to the debugging section. I'm seeing a couple of strange things: 1. Step 6 tells me to step into the code for the ReportSubmitted_Invoked handler. I've tried this, but the debugger doesn't go to the code level; it simply highlights the next activity in the workflow designer. I also tried explicitly setting a breakpoint in the ReportSubmitted_Invoked method of the code beside file, but it's not hit and appears disabled. The text 'ReportSubmitted_Invoked' is written to the cons ...Show All
SQL Server full text index is exist or not
Hi, How to find full text index is exist in the table or not like that how to find normal index is exist in the table or not Thanks in adv. ---> Murali <---- Hi, thaks Lefter, I found small solution to find index is exist or not using sp_helpindex 'tablename' and fulltext index is exist or not in the table using sp_help_fulltext_tables @table_name='tablename' bye --> Murali <-- ...Show All
Visual Studio Team System Upgrade to Team Foundation RTM: Reports
In http://blogs.msdn.com/team_foundation/archive/2005/11/15/493188.aspx it states (see below) that reports are going to be broken due to changes in the data warehouse. Is there any possible way to get advance notice of the details of these changes We've created several custom reports since the release of Beta 3 and we have many more scheduled. We'd like to be able to categorize these based on risk and likely change costs, but it seems that we're faced with "Things will change, but we're not telling you" for the second time. Please advise. Thank you, Eric Reports The data warehouse changed significa ...Show All
Windows Forms formatting millisecond
hi, I'm trying to format milliseconds. how to get the first digit alone . Actuall y i'm calculating timespan and formating it by , String .Format("{0:d1}.{1:d1}", ck2.Seconds, ck2.Milliseconds) millisecond is represented by 3 digits. i want to show it as one digit representation. Example: if 256 ms means, i need to show only 2. how to do it I'm using VS2003. Thank You! ...Show All
SQL Server Default values for a column - From a function
I am trying to set the Default value for a table column to a user defined function . Is this possible I have a Function that generates a RandomID as a string and returns that string. I would like that value in the Column to which I am calling the function as the default value. Thanks Jawahar I see, thanks a lot. It actually was not my question, I just found this question on another forum and then I tried to make some research. When I found this thread I decided to post this question for clarification. You're saying, that it would work, but it would be the same value for all inserted records, ...Show All
Visual Studio Express Editions Upgrading vb6 projects
I was unable to upgrade projects from vb6. I get an error when "invoking upgrade engine". Error occurs in vbu.exe. Error message: Enexpected exception ocurred during upgrade engine operation: Error in remote procedure call. (Exception from HRESULT: 0x800706BE). Using: XP Pro Spanish Version VB 2005 Express V8.0.50727.42 VB6 projects made with VB6 Enterprise Edition (SP6) Spanish Version. Hi Cristian, It sounds to me like the VB Upgrade tool did not get installed correctly. I would suggest going to Add/Remove Programs in the control pannel and doing a repair on VB Express. ...Show All
Visual Studio Can't uninstall MSDN Library for Visual Studio 2005 Beta
A while back I installed Visual Studio 2005 Team Suite Beta 2 Version on my laptop and used it. I now have the latest Visual Studio 2005 Professional and I want to install it but I can't. MSDN Library for Visual Studio 2005 Beta will not uninstall. I've tried just about everything but everytime it goes through the uninstall process at the last possible moment it "rolls-back" and dosn't perform the uninstall. I'm stuck. I read through most of the messages here to try to find a clue and I've tried several many good suggestions but still with no success. Any ideas would be greatly appreciated. Thanks. ...Show All
