Software Development Network Logo
  • SharePoint Products
  • Game Technologies
  • Visual C++
  • Windows Forms
  • Visual Studio
  • .NET Development
  • SQL Server
  • IE Development
  • Smart Devicet
  • Visual Basic
  • Visual FoxPro
  • Windows Vista
  • VS Team System
  • Visual C#
  • Audio and Video

Software Development Network >> Peter Peng's Q&A profile

Peter Peng

Member List

Synced
gregaug
dimitrod
netmeister343943
Manivannan.D.Sekaran
K.Kong
prasad_8104
amirkanan
musafir-a Voyager
Praveen Dayanithi
PaulHeloskie
Gunnar Adler
perstam
rahsoftware
gafrank
Seth Livingston
doener
tasleemarif
smilyan
Gunston
Only Title

Peter Peng's Q&A profile

  • Visual Studio Team System TF14087: Cannot undelete...because not all of the deletion is being undeleted.

    Hi folks, I am seeing the following error when attempting a merge: TF14087: Cannot undelete '$/Ammado/trunk/Source/Ammado.Web.UI/Controls/LoginPanelControl.ascx.cs' because not all of the deletion is being undeleted . I'd like to get to the bottom of it. Basically, our setup is that all developers work on a branch, and when they have changes to commit to the trunk, they - first merge TO their branch from the trunk, - resolve, test and checkin, - merge FROM their branch TO the trunk - run the automated build and check that the trunk still builds I attempt a merge from the trunk to my branch, and Source Control Explorer says that there are no changes to merge I then attempt to merge from my branch to the trunk and I see the error above. $/ ...Show All

  • Visual Basic Can I deploy VB2005 similar to VB6?

    My background is more business development than software develpoment. However, I do develop bespoke software using VB6/SQL Server and have recently purchased Visual Studio 2005. I tend to evolve the information system gradually by upgrading the bespoke software on a regular basis as it is less disruptive for staff. All necessary components are registered on the PCs and all I need to do is compile the VB6 project and copy the exe file onto the server at night were a shortcut to the exe file is linked on people's desktops. The question is, will I still be able to do this with VB2005 Thank you Laurie Thompson (Mr.) That said, I think your scenario is exactly what click once was meant to do :) ...Show All

  • SQL Server Create a calculated member on one measure.

    I have a Version dimension which is used to break out the Net measure by 'Actual' or 'Budget'. Net is the only measure I'm using. By not using the Version dimsion. The net is incorrectly totaled by both values. Both are not used together. 'Actual' and 'Budget' are the only two members of the Version dimension. I want to add a third member which subtracts 'Budget' Net measure from the 'Actual' Net measure and call it variance. A caculated measure isn't working for me because obviously subtracting Actual - Budget doesn't work so well. Can anyone help me with that First - please remove NON_EMPTY_BEHAVIOR - it is defined absolutely wrong. Second, how exactly it doesn't show up If you connect with SSMS to the cube and browse the ...Show All

  • Windows Forms set a Datagridview datasource to datareader

    How can I set a Datagridview datasource to datareader My code appears below... //Build the connection and open it System.Data.OleDb.OleDbConnection con = new System.Data.OleDb.OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + @"\MyDb.mdb;User Id=admin;Password=;"); con.Open(); //Create SQL statement string sql = "SELECT * FROM Log"; //Open a command object using the connection and prepare the sql statement. System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(sql, con); //Run the command System.Data.OleDb.OleDbDataReader reader = cmd.ExecuteReader(); //Loop though and display the first col ...Show All

  • Visual Studio Tools for Office Infopath 2007 - Odd Problem with Decimal seperator

    Hello... I am currently having an odd problem with infopath 2007... Setup: 1. German Server Now I am creating a simple Form with a tablerepeater control. Inside the table I define 3 Fields (all fields are double)... and the footer contains a sum of the 3rd fields. When a user enters something into field1 it is multiplied by field 2 and stored in field 3... Now the odd thing that happens is the parsing of the data. The Values for Field1 & 2 are stored correctly, but the calculated field gets messed up. Inside the XML the 3rd field will be stored with a german decimal seperator(,), but the other 2 are stored with an english one (.). Infopath also complains that field 3 should contain a number, even though i ...Show All

  • .NET Development How come deleting a file doesn't really work

    I have a snippet of code below where I delete a file and then immediately afterward, create a new file of the same name in the same path. Well, when you look at the file in File Explorer and you see the Created Date and the Modified Date, the Created Date does not change, only the Modified Date. (assuming you have started with a file already there and you're attempting to delete and recreate it) Why is this Why doesn't the file get deleted If I pause the debugger at this point , then go look for the file, it IS deleted, but if I let it run normally, it won't be deleted as confirmed by the Created Date and Modified Date not being equal. This is annoying as hale. Any ideas Dim soap As SoapFormatter = New SoapForma ...Show All

  • Visual Studio 2008 (Pre-release) Avoid UserControl Initialization

    Hi I'm writing an application with a rule based view. For a admin-user 2 UserControl's will be shown, for a non-privileged user only 1 UserControl. Both of them will open the same Page / Window, which imports these 2 UserControl's. My question is: How could I avoid an initialization of the hidden / not shown UserControl directely in XAML without any "code behind" This is nessecary because these UserControl's will read data over the network during the initialization process. Thank you for reading my problem. Manuel you can try placing a contentcontrol on the window and do something like this <Window.Resources> <DataTemplate x:Key="dt1"> <local:UserControl1></local:UserContro ...Show All

  • Visual C++ No symbols found for msvcrtd.dll !

    Hi Im trying to debug my application with umdh which was working up until recently. Now the stack traces are partially coming back with the <no module information> in them. To get arount this I have tried to download new symbol information but when I try and get smbol information I get these errors SYMCHK: MFC42D.DLL FAILED - MFC42D.pdb mismatched or not found SYMCHK: MSVCRTD.DLL FAILED - msvcrtd.pdb mismatched or not found SYMCHK: MFCO42D.DLL FAILED - MFCO42D.pdb mismatched or not found Im using XP sp2 and VC6 sp6 and debugging was working up until recently and I dont think Ive installed any patchs that would upset this!. Can anybody help on this or do I have to ask to get them put up again T ...Show All

  • Windows Forms Is there any Window Control to hold avi files other than window media player

    Hi, I want to display avi files on some window control that i can put on my window form. Is there any such window control that support such property other than window media player itself. I am looking for like we have picture box for images (ex. with no borders or other ui like in window media player). Regards Chips. Here's a custom control that plays .avi files with the old Multimedia API. Add a new class to your project and paste this code: using System; using System.Drawing; using System.Windows.Forms; public class AviPanel : Panel { private bool mPlaying; private int mError; [System.Runtime.InteropServices.DllImport("winmm.dll")] private static extern int mciSendString(strin ...Show All

  • SQL Server FlatTextFile Licence Limitation with SQL 2005 Standard

    I have developped a package that loads a flat text file into DB. Runs OK from SQL BI Studio. When I run it from SQL IIS, I have the following error message "Erreur, le niveau de produit est insuffisant pour composant <<file IN>>" that let me think this FLATTEXT ConnectionManager is only in SQL 2005 Enterprise version Can you help Please check out the following thread -- I don't think it's just the flat file connection that will give you trouble: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=806065&SiteID=1 Hope that helps you! - Mike ...Show All

  • .NET Development schemaLocation woes...

    Hi, I have a .NET class that is returned as XMl in a webservice. I need to specify the xsi:schemaLocation but I cant. Googling shows that I should create a property and declare the attribute as follows: [System.Xml.Serialization. XmlAttributeAttribute ( "schemaLocation" , Namespace = System.Xml.Schema. XmlSchema .InstanceNamespace)] public string schemaLocation = "<someSchemaLocationHere>" ; But this fails with this message: The target namespace of an attribute declaration, whether local or global, must not match http://www.w3.org/2001/XMLSchema-instance . What to do I have tried almost every constellation of attributes, schemas and what not. It either does not show or fails like the above. Fr ...Show All

  • Visual Studio Express Editions Favorites in webbrowser help!!???

    ok im making a internet browser and i added the addtofavorites option and a favorites drop downlist these are the codes im useing Private Sub Favorites_DropDownItemClicked( ByVal sender As Object , ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles Favorites.DropDownItemClicked WebBrowser1.Navigate(e.ClickedItem.Text) End Sub Private Sub AddToFavorites_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToFavorites.Click Favorites.DropDownItems.Add(WebBrowser1.Url.ToString) End Sub and when i add a favorite it gos right and everything but when i close the app and reopen all my favorites are gone how do i ...Show All

  • Visual Studio Install VS2005 form HDD

    hi there i have VS 2005 in Disk1 and Disk 2 (Dont have DVD version) now as my company wants it to install form the HDD. if i copy paste Diks 1 & Disk 2 on my HDD, the installation stops(after installing disk 1 fine) by saying to insert Disk 2 on CD-ROM(no browse button for new path). How could i give the path or any other method to so(like copy all the file into one folder, or to create the DVD for the same or likewise...) The same Problem for the MSDN too(Having disk 1, disk 2 & disk 3) Regards, Thanks. Gurpreet S. Gill ahmedilyas -- Thanks The problem is solved, with Virtual CD (it really very nice & small). now i can Add Drive & mount the image, its really easy. Its ...Show All

  • SQL Server General Network Error Check network documentation

    Hi I get a "General Network Error Check network documentation" error sometimes, but its only while insert or update statements are fired while selects keep working perfectly. The Error details are as follows: General network error. Check your network documentation. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: General network error. Check your network documentation. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the orig ...Show All

  • Visual Studio Express Editions Average value to be plotted on real time graph

    Question: Assuming that buffer contains a list of value read from serial port. Now that i want to use the values stored in the list to plot a real time graph. I want it to store 60 values n take the total average to plot a point on graph, and this process goes on until there's no more data in the list. I tried this but end up wif errors. buffer is the list contains data read. Average is list contains average of 60 data to be plotted. Error msg shows that total &= buffer(counter) is wrong. COuldnt figure out whats wrong wif it... [VBCODE]Private counter, total, ans As Integer Private average As New List(Of Integer) Private buffer As New List(Of Integer) Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As ...Show All

©2008 Software Development Network