AndrewLuiHK's Q&A profile
Visual Studio Error code 2337 in Visual SourceSafe
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2337. run first wcu\dotNetFramework\dotnetfx.exe maybe fix the problem ...Show All
Windows Forms ClickOnce Error Message
Hi, I'm getting the following error message & detailed report: 'Cannot download the application. The application is missing required files. Contact application venfor for assistance.' PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file://(PATH)/SerialSNMPWinApp.application Deployment Provider url : file://(PATH)/SerialSNMPWinApp/bin/Release/SerialSNMPWinApp.application ERROR SUMMARY Below is a summary of the errors, detai ...Show All
Visual Basic Rows count in the DataReader
Please , Can some one help me to know the code to get records(rows) count in the datareader Thanks for your help Hi, DataReader itself doesn't provide this information. The way to retrieve the row count would be scanning the returned data stream by using a counter: Dim counter As Integer = 0 While reader.Read() counter += 1 End While or executing SELECT COUNT(*) query to get the row count, before executing the reader. Andrej ...Show All
Game Technologies: DirectX, XNA, XACT, etc. main menus for newbie
ok so i have just started C# and C++ and i seam to be catching on prety quickly. I have been able to get many custom modles to move with sound and effects. But today i wanted to start an entire game. so I was woundering how would i go about making a main menu/ I hae not been able to find any tutorials on it. Over @ corflower blue, Eli from Microsoft has a nice blog section on a game structure, nice class diagrams as well. Suggest you check it out - http://blogs.msdn.com/etayrien/archive/2006/12/12/game-engine-structure.aspx ...Show All
Visual C# Update with parameters works in SQL, but not in OleDb to MS Access
I've used parameterized commands in SQL successfully. I'm using parameterized commands with OleDbParameter successfully for Insert and Delete, but Update returns 0 records modified. Here's example code: string pColumn = "Name"; string pValue = "Meeting"; OleDbType pDataType = OleDbType.WChar; int pSize = 50; OleDbParameter NewParameter = new OleDbParameter ( "@" + pColumn, pDataType, pSize); NewParameter.Value = pValue; this .DataAdapter.UpdateCommand.Parameters.Add(NewParameter); string pQuery = " UPDATE MyTable SET Location = 'Here' WHERE Name = @Name" this .DataAdapter.UpdateCommand.CommandText = pQuery; this .DataAdapter.UpdateCommand.Connection.Open(); ...Show All
SQL Server How to use Alerts
I have two fields in my report(Start Date and End Date).Start Date should be earllier than End Date.Please help me how to use alerts. Frankly im lost I don't understand what is your problem right now so please clarify this a little bit Maciej ...Show All
Visual Studio Team System Re-assign removed permissions in a branched folder?
We have a problem at a client location that will potentially affect a major release scheduled for next week. The organization's (previous) TFS administrator removed permissions on various sub-folders after branching the main project. Therefore those folders in the branched project now have only read access. Perhaps because the perpetrator was logged in as TFS adminstrator, it appears that not even the TFS administrator account can restore the permissions through the GUI. As a result, we can successfully perform developer builds in TFS, but any builds performed by the TFS Build Service fail at critical points where permissions such as 'label' and so forth are required. The build logs clearly identify that permissions to the affe ...Show All
SQL Server Cannot Reference and SUM fields from Table Group in Footer Expression!
I'm gonna try this again, Microsoft, Please help! There has to be a solution for this!!!! How can I get around the limitation in SSRS 2005 of being able to SUM on a Table's Group field from my group footer expression! Keep in mind, I'm talking about a table here, not the global Report Footer, a Table object's footer! It's driving me nuts My table footer GrossGoal_gt 's field expression (non of these work and throw the error below): =SUM(Fields!GrossGoal1.Value, "CustomerNumber_Grp" ) neither does this: =RunningValue(ReportItems!ProjFee_AZ.Value, Sum , "CustomerNumber_Grp" ) neither does this: =SUM(ReportItems!GrossGoal1.Value, "CustomerNumber_Grp" ...Show All
.NET Development Path Syntax as described in documentation and samples not working
Hi, I'm having trouble getting this type of syntax to work. The following example is lifted straight out of the MSDN documentation. I just changed the object path from Win32_Processs to Win32_Directory. Anyway, neither the process nor the directory objects work. Dim o As New Management.ManagementObject o.Path = New Management.ManagementPath( _ "Win32_Directory.Name='c:\\temp'") Dim o As New Management.ManagementObject o.Path = New Management.ManagementPath( _ "Win32_Process.Name=""calc.exe""") Executing the code above returns in 'Invalid object path' or something to that effect. I have tried different variants, supplying a scope parameter, etc. but it keeps failing with an inval ...Show All
Windows Forms Rotating Pictures
I have an application written in C# with a PictureBox with an image loaded. Is there a way I can create some type of method where the image in the box can change with a mouse click Thank you! Hi, the following code will rotate the image in PictureBox on each click: private void pictureBox1_Click( object sender, EventArgs e) { pictureBox1.Image.RotateFlip( RotateFlipType .Rotate90FlipNone); pictureBox1.Refresh(); } I hope this answers your question. Andrej ...Show All
Visual Basic Null dates
I have a .NET class lib which defines a public function which takes a date parameter. Sometimes, the date is NULL (values from a database) but if I try to pass NULL into this function, obviously it will not accept it. In VB6 I would use a variant data type to get around this but how do I do it in .NET OK, maybe I didn't explain myself well enough. I have a public function that looks like this: Public Function DoSomething(ByVal MyDate AS Date) AS Int32 This function is defined in a .NET class library. I have created a type library and registered it in the GAC so that it can be called from a COM component, amongst others. When you try to assign NULL to a data type of Date, you get a type mismatch. You cannot ...Show All
Visual Basic Moving report objects
This has been plagueing me for months now. Is it possible to (either in Access Reports or Data Dynamics Active Reports) to move a control on each page independent of each other For example: Let's say I have address area. The address area is as follows: NAME ADDRESS LINE 1 ADDRESS LINE 2 CITY, STATE ZIP Address Line 2 may not always contain data, so I want to shift the City/State/Zip line up if Line 2 is blank. Is this possible I don't see any property that lets me do this--that is unless I'm blind or retarded. Any help will be greatly appreciated. I use inline if statements IIF(isnull(Address Line 2), City & " " & State & " " & Zip, Address Line 2) iif (isnull ...Show All
SQL Server Merge replication problem on Windows Mobile 5
Hi, I developed a mobile application (CF 2.0) that uses merge replication to synchronize data between SQL Server Mobile and SQL Server 2000 SP4. The application uses asynchronous synchronization (BeginSynchronize method) to initiate the replication and update the user about the progress. The application worked perfectly on PPC2003 and Windows CE .Net 4.2 platformes. The problem started when I moved it to WM5 platform. We're using Symbol MC70 devices. When I start the replication for the first time it synchronizes without a problem. If I perform additional synchronizations(updates) it synchronizes without a problem. If I exit the application and start it again the sync process hangs when I try to synchronize it(to deliver updates). ...Show All
.NET Development .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7C812A5B) (800703e9) while starting Visual Studio 2005 IDE
I am getting error .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7C812A5B) (800703e9) while starting Visual Studio 2005 IDE. It is only showing splash screen when I start the IDE and logging the error message in event log. I have reinstalled the .Net Runtime and VS 2005 but problem is still continuing. I am not able to use VS 2005. Can any one provide some help I'm getting this error too. Uninstalling and re-installing Visual Studio 2005 did not work. Repairing the .NET 2.0 framework did not work. Has there been a "live update" to the .net 2 framework in the last couple of days ...Show All
Smart Device Development "Message from Network" alert - Windows Mobile 5
I am using a Symbol MC70 running Windows Mobile 5 ( 5.1.70 ) on the O2-UK network When ever I try to use the device with a data SIM installed - so I can use GPRS networking - I keep getting "Message from network" notifications popping up all over the place, which block data enty and application navigation until you dismiss them. I think they have the mobile cells the device can currently see. How can I configure the phone application to ignore these network messages and stop all these popup notifications. I have been following another thread where there were some reg settings to turn of some of the alerting under MSN messengaer, so are there similar ( undocumneted/unsupported ) entries that can be used to supress thes ...Show All
