markm75's Q&A profile
.NET Development Concurrency Violation
Whenever I update or delete records using sqldataadapter update method I get an error message saying: concurrency violation:the update command affected 0 of the expected 1 records. I am using master-detail records and this error only occurs when I delete or update records of the child table through datagridview control. There is no problem while updating records of the parent table. Please help. 1. Are you updating the primary key(s) 2. Are you trying to update a joined table 3. Is the table you're trying to update or delete from locked My guess is #3. Be sure to use (NOLOCK) on all queries to the table if there's a chance multiple users will be accessing it. Adamus ...Show All
SQL Server SELECT permission denied on object...
I am using VB 2005 express edition with sql express 2005. I did it this little application that select data from a table. Everything Ok on local but if I use it over lan (it is a workgroup) I obtain this error: SELECT permission denied on object 'Consensi' on database 'C:\dbmarco\plate_dati.mdf' with schema 'dbo' I used SQL Server Management Studio Express to give all permissions to the user for the Plate_Dati database but nothing changed this is the program: Imports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Stringa As String = "Data Source=TAPFW\SQLEXPRESS;Initial Catalog= ...Show All
Visual C# How to check a data stream every 5 seconds
I have a program that checks a streaming data feed every 5 seconds, then makes some calculations and then fires some events, then back to checking data. What is the best way(most efficient) way to do this. Here is my basic structure, however my program freezes after running for more than a few hours(I want to run it 24 hrs a day) I know that multithreading is needed but not sure how to do this. Basic structure: Main program Get Data Calculations Do events loop back to Get Data Thanks in advance. you would be advised to use a Timer and set the interval to every 5 seconds (timer interval is measured in ms) and then do your data checking there and raise events or whatever. depending on what you are doing ...Show All
Visual C++ Function Timing
I was able to enable function timing very easy in VC++6 just a linker option and slecting profiling... Now it seems imposible to do such thing in VC++2005!! How can I do that [edit] Its professional version. 1) I don't know - is it up to the product team to decide what components are in what "box". 2) Yep: deep down in the internals of cl.exe, c1.dll, and c1xx.dll are were I spending most of my time. ...Show All
Visual Basic How to change the font of specific items in a ListBox
Hi, Some help please. I have this code to add the font names to a listbox Dim FontCollection As System.Drawing.Text.InstalledFontCollection = New System.Drawing.Text.InstalledFontCollection Dim Font As FontFamily For Each Font In FontCollection.Families ListBox1.Items.Add(Font.Name) Next It adds the font names only. I want to show the style too. How can I do that. Like this: ListBox Items Arial Arial Black Times New Roman Courier New Algerian Broadway getting there...getting there..... try this, replace the code in the DrawItem event: e.D ...Show All
Smart Device Development How to create trial version, the solution
hello everybody i have found a class library that lets you create trial version for Compact framework.net applications. Check it out http://www.awady.net/products/easytrial.html OR http://www.handango.com/PlatformProductDetail.jsp siteId=1&jid=49AA1A999D7A79AE2ED595XDA41CA994&platformId=2&N=96806&Ntt=awady&productId=187123&R=187123 ...Show All
Visual C# Text Box Display (Without building public interface)
Hi I have 2 window forms. First form has a text box and a CmdButton. My second form has one text box. Both the text boxes are in Public modifier. My first form will show as default. My goal is whenever I type anything on Textbox1 (form1) and press command button, my first form should be closed and second form should be on visible, on that time, the contents which I typed on the First form’s text box will appear on the text box of my second form. Like this public void BtnSend_Click( object sender, EventArgs e) { SecondForm SF = new SecondForm(); SF.AllowDrop=true; SF.TextBox1.Text = This.TextBox1.Text; This.close(); SF.show(); SF.TextBox1.Focus(); ...Show All
Visual Studio Visual Studio Compile Slow on Network
Hi, My compile times have increased by 500% when i connect to network. The output window in visual studio shows that class libraries just take 1-2 seconds to compile. But my control library and Winforms project take about 7 minutes to compile. If i disconnect from the network the compile time is normal just 3-4 seconds for each project. I need to access the network because the database is on a domain server . SQL Server 2005 express edition. The only thing I can think of is that visual studio may be checking a network share for some reason. Do any of your projects have hintpaths or references to a network share / drive. ...Show All
Visual Studio 2008 (Pre-release) where the XamlPad is?
i have just my WPF&WF Extensions for Visual Studio 2005 installed, but unfortunately no XamlPad found in my program list! Why XamlPad is not installed by default if you dont want to install the sdk you could use XamlPadX which is an extension of Xamlpad. http://blogs.msdn.com/llobo/archive/2006/12/30/xamlpadx-v2.aspx ...Show All
SQL Server Significant bug in SSIS import function
I have encountered what I consider to be a significant bug when importing Excel spreadsheets using SSIS. If in the first data row a particular column does not contain a value (i.e. it is null) then SSIS assumes that every row has a null value in that column. This disfunctional beahaviour has cost me hours and hours of wasted time loading and debugging data. Hopefully someone from the appropriate area within Microsoft will read this post and get this bug fixed. Gee - I am sorry to have offended you with my post! I am aware that it is a community forum and my hope was to get constructive response from anyone participating in the forum and also hopefully to hear from Microsoft. I believe that they monitor these forums and fro ...Show All
Community Chat Opensource C# BitTorrent library
Hi there everyone, I've written an open source bittorrent client library which runs on Windows/MacOS and nearly all flavours of Linux which is pretty much at Beta 2 status, i.e. most of the really big bugs are gone. The source is available at the public SVN for mono under the Bitsharp folder (details can be found at www.mono-project.com). There is also a TorrentCreator and BitTorrent Tracker library available at the same place, both written in C# aswell. Those are also needing developers should anyone be interested in pitching in. Example code and a more detailed blurb is at www.mono-project.com/Bitsharp. Basically, i'm doing a call to developers to: 1) Try and find a few people who wish to help with further developing the library. 2) Try ...Show All
Visual Studio Controlling and detecting what elements are droppable on the diagram and other elements
Hi, I've created my first DSL which can accept DSRef items from the server explorer. To implement I followed some samples which are already described on the forum. In an overriden OnAssociated I bind the DragOver and DragDrop events and check for a CF_DSREF type. This is all working OK and I'm creating business objects, attributes and relations fromt the database metadata. My issue is that I managed to change something in the DSL which prevents business objects being dropped from the toolbox onto the diagram. So I'm looking for leads on which properties control this behaviour and where in the underlying DSL tools framework sources I can debug to get more knowledge of how this is implemented. Grtz, Harry ...Show All
Visual Studio Team System Can we do Load Testing with Team Foundation Server ?
Hi, I am new to Team System. I have installed Team Foundation Server. Can we use Team Foundation for Load Testing If Yes How to use Team Foundation Server for load testing If No Which other tool in Team System can be used for Load Testing and from which site we can dowlload that tool. hi answers for each line VSTT is Visual Studio Team Test edition or Microsoft Visual Studio 2005 Team Edition for Software Testers. yes. correct no. in addition to VSTFS (you have probably the VS 2005 professional edition), you need, VSTT or VSTS. -sachin ...Show All
Visual Studio Express Editions Planning a project
I have an Excel system that does the in-store accounting for 15 gas stations\convience stores. I call it a system because I did not know very much at all about programming or visual basic to start with when I put it together back in '01. There are buttons on a screen that invoke code for forms that accept input which is placed in cells on the spreadsheet. Other cells have formulas. Basically, in a nut shell, I made the spread sheets do the work that the managers used to do by hand. Some things I just do not understand. I am a "picture" thinker, so often "word discriptions" just do not sink in. 1. Class If I want to have a class that has properties and methods for Fuel grades, do I write a stand alone class ...Show All
Visual C# XML newbie
I am trying to read all the values under Genre_Country and Genre_Funk. To loop thru each genre...and get the Title and url. Driving me nuts.... < Radio > < Genre_Country > Country </ Genre_Country > < Title > .977 The Kickin' Country Channel </ Title > < url > http://64.236.34.4:80/stream/1075 </ url > < Title > 1.FM - Country </ Title > < url > http://64.62.194.11:8020 </ url > < Title > .977 The Kickin' Country Channel </ Title > < url > http://205.188.215.230:8000 </ url > < ...Show All
