Daniel Moseley's Q&A profile
Visual C# how to know when form lost its focus
Hi, Is there any way to know when Form lost its focus I have tried Deactivate event but it does not helped me. Thanks in advance One way would be to use the flash functions of the task bar and make it flash like the other apps do. Or use a Tray icon and when ever there is news have a popup rise from the bottom like the MSN Messenger does. ...Show All
Architecture Safely access file from a Web server
Hello, I work on a project where clients access to a database and a files storage system (NTFS). On a LAN, all works fine but we would like to allow user to access those data from Internet. My question is: how our Web server can safely access to the file storage Is it acceptable to access directly to the files Must we develop a kind of application server In this case, which kind of technology could be used Lastly, if my web server is running on Linux what are our options Thanks, Sebastien I don't see any reason you couldn't continue to use your files and leverage the NTFS permissi ...Show All
Visual Studio Team System Team Foundation Client for VS 2005 Release Version
I'm unable to use Team Foundation Client on my Visual Studio 2005 Release Candidate Version. Looks like Team Foundation Client would work only on Beta 2. Is there a new client download that I could use for the Release Candidate version of VS 2005 Thanks. The Beta3 version of Team Foundation is compatible with the RC version of VS 2005. http://lab.msdn.microsoft.com/vs2005/get/ ...Show All
Visual Basic I keep getting out of range exception
I have this peice of code Dim out(2, 100) As Char Dim a As Integer = 0 Dim b As Integer = 0 While a <= 100 And b <= 2 out(col, row) = val(cnt) all the variables not declared are just not in this snippit. I keep getting array outofrange exception or something on the last line ive tryed a ton of things and im really frustrated, thanks in advance note: cnt = 0, and increases each time I hope this helps. Hard to tell what the issue is with the limited code available in the post. I'm in VWD right now so the code will run in there just fine to show ...Show All
SQL Server Question about comunication issues between Principal and Mirror
Hi there. Imagine this scenario in High Availability mode : The principal sends a transaction log to the mirror, then the mirror saves the log on disk and then notify the principal. What happen if the acknowledge is lost, because a network failure(back on track in 1 or 2 seconds) and the principal dont receive it In this case an automatic failover will not occurr, and i dont really know what happen next... Will the mirror resend the ack The heartbeat mechanism plays an important role in solving this scenario The principal must receive the ack to commit the transaction, and i’m no ...Show All
Visual Studio Optimization joint between 2 tables
Hi, I have a report (Crystal 10.2.36 from VS2005) with 2 data tables in which I push the data. There is a join (=) link between the 2 tables on the primary keys of the tables (same PK on the 2 tables, first table is data of year 2004 and the second of year 2005, and 400 lines in each table already aggregate in the database). That takes 14 seconds (WinXP, P4 3,2GHz, 1Go RAM) to charge the data (SQL queries are still made), whereas with one table only that counts is instantaneous. Is it possible to optimize this processing time (join in Crystal) I tested indexed PK columns but the data not being stored in the report that does not have any e ...Show All
Visual Studio Team System CMMI Poster
Will there be a CMMI poster available in August as well ...Show All
.NET Development IBM.Data.DB2.iSeries .NET Provider - Will it work with VS 2005?
I'm using Visual Studio 2005 Beta 2 (Visual Basic) along with IBM Client Access V5R3. I can't seem to get VB to recognize the native IBM .Net provider. I'm very new to DotNet so that's certainly part of my problem but I'm just wondering if anybody has used the native DB2 provider in VS2005. I know IBM says they haven't tested it in VS2005 but I'm wondering if it works at all. The IBM .Net provider definately works with VS2005. Load the IBM.Data.DB2.iSeries (10.0.0.0) assembly from the Choose Toolbox Items dialog in VS2005 Toolbox. Same syntax as VS2003 to add connection, command and dataadapter ob ...Show All
.NET Development Refrerenced memory at 0x0000000c could not be "read"?
Hello all you nice people out there in 'Sanity' land, First - a message from my sponsor: 'For the record, I'm no computer wiz. And, I also do not know all-a-da proper terminologies either. This is stated before someone ups and decides to send any defamatory e-mail my way. Thank you.' You may now return to your regularly non-scheduled e-mails. Ah, hello again. Now, sledge-in-hand, let's have it. I had installed the VisualBasic Express, oh, about 2wks ago. A very short time thereafter I got an error message. It read, reads, as follows: aspnet_state.exe. Application Error. The instructi ...Show All
Visual Basic What's wrong with this code?
I had this code that i am supposed to use for my current project...Using Crystal Report, I want to sort the record by entering the two dates (dtpFrom, dtpTo), the name of the company(FINAL2.COMPANY), the description(FINAL2.Description) Private Sub ConfigureCrystalReports() Dim mySelectFormula As String = "{FINAL2.Order_Date} >= #"" & dtpFrom & "#" & " and {FINAL2.Order_Date} <= #"" & dtpTo & "#"" & " {FINAL2.COMPANY} > Maxicare " _ & "AND Mid({FINAL2.Description}, 1, 1) = ""C"" " myCry ...Show All
Visual Studio Tools for Office Display Alerts?
I am copying large amounts of data from one book to another and then closing the one I copied from when Im done. However I get the message for a large amounht of data on the clipboard in the one excel book. I know in earlier vb versions you could do this: excel.displayalerts=false But in VS2005 B2 it throws an error. Any ideas Thanks, Tom ...Show All
SQL Server Derived Column task and GETDATE()
I am using a "Derived Column" task as below: Derived column name: update_timestamp Derived Column : <add as new column> Expression: GETDATE() Data Type : database timestamp[DT_DBTIMESTAMP] When I try to use an Ole DB Destination after this task, and map this derived column to columnX (datatype: timestamp) of tableA, I get this error: Validation error. Data Flow Task - mytaskname: OLE DB Destination - my_oledb_destination [711]: The OLE DB provider used by the OLE DB adapter cannot convert between types "DT_DBTIMESTAMP" and "DT_BYTES" for "update_timestamp". MyPackage.dtsx 0 0 In the advanced editor for th ...Show All
Visual Studio Express Editions Registering Visual C++ Express Ed
How do I register the Express Edition of Visual C++ After you’ve got it installed and running, from the Help menu, choose “Register Product...” and follow the on screen prompts to complete it after that. ...Show All
Visual Basic Convert a long into a dword
The registry setting below hides\shows the my document's icon on the desktop. I'm having a problem entering the appropriate values. Both methods below give aconversion error at runtime. If I don't specify the value type, a reg string value is created, but the value needs to be a dword. Private Sub HideShow( ByVal iconvisible As Boolean ) If iconvisible = True Then My .Computer.Registry.SetValue( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\ShellFolder" , "Attributes" , Hex(4030726516), Microsoft.Win32.RegistryValueKind.DWord) Else My .Computer.Regi ...Show All
.NET Development .NET SQL Client and T-SQL "PRINT" Commands
Is there any way to retrieve the output of T-SQL "PRINT" commands from .NET -Ryan This works fine, but in my case, not only I need to get the print outputs, but the rows affected by SQL commands too... I can get the number of rows returned by parsing the resultsets from an ExecuteReader, but if the batch also contains UPDATE or DELETE commands, I'd like to get the number of rows affected by these commands too, like SQL Server Management Studio does. Thanks in advance for your help. ...Show All
