Burrough's Q&A profile
Software Development for Windows Vista SqlDatabaseActivity can't handle output parameters when calling a stored procedure
Dear all, I have just run into a problem with SqlDatabaseActivity which I downloaded from Microsoft. It doesn't understand output parameters in stored procedures, so it never returns any values for them. It assumes that all parameters are input only. I had previously discovered that it didn't handle @RETURN_VALUE, but fixed it myself. The failure to handle output parameters looks more fundamental, so I am reluctant to embark on trying to fix it. Is there a version of the activity which resolves this issue I do not yet have a blog appropriate for this, but am working on setting one up. Meanwhile, am I missing something Is there a place to upload things to this technical forum I have asked this before, but never go ...Show All
.NET Development sequence do not increment
how can i increment a sequence if a data is already in a database. Whats wrong with my code When a new book is added it doesnt give error BUT the sequence is not incremented if a same booktitle is entered. I have three columns(author, booktitle, sequence). Sequence should increment if book with same title is added. But with my codes it doesnt. Protected Sub save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles save.Click Dim DBConn As New Data.SqlClient.SqlConnection("DATA SOURCE = xxx;Initial Catalog= xxx;Integrated Security=True") Dim myDataAdapter As New Data.SqlClient.SqlDataAdapter myDataAdapter.SelectCommand = New Data.SqlClient.SqlCommand("Select * from books", DBConn ...Show All
.NET Development DataTables and SQLDataAdapter events can trigger eachother causing additional hits to the Database
I've noticed when doing inserts and updates to a SQL database from a DataTable, the SQLDataAdapter will AcceptChangesDuringUpdate and AcceptChangesDuringFill. This is a great feature, except when the data values come from the database such as a Primary key for a new row or default values when no value was specified by the end user, then this causes another RowChanged event to fire and the Update back to the database is called because the RowState is set to Modified when the DataTable Row is updated with the new values from SQL. I'd like to be able to halt notifications on a DataTable under certain circumstances such as while I'm executing an SQLDataAdapter.Fill(dt) or on some other unknown occasion... Is this currently possible or wi ...Show All
Windows Forms Link from 1 Form to another.
Hi, i new to Visual Studio, basically I have 2 forms in my project, "Form1 & Form2". I want to know how to link from Form1 to Form2 at runtime. I need it to work as follows, Form1 has a button which when clicked closes Form1 & opens Form2, I tried googling it but cant find what Im looking for, any help would be much appreciated!!! Rgds David I would use a delegate to marshal information you need to and from the forms your using. Its a much cleaner way to ensure forms can communicate. The example below sends a string from one form to another, but you could send any object and any number of them. public delegate void FormUpdate(String message); Add the following property ...Show All
Visual C++ Link Step Always Generates Different .exe Checksum. Why? How to disable?
I'm using Visual Studio 2005. I created a simple helloWorld console application. Each time I link, helloWorld.exe has a different checksum. Only 1-3 bytes typically differ. If I set my clock back, and I can time it so that my link step occurs on the same second as it did last time, then the checksum remains constant. I'm not using any __TIME__ or __DATE__ directives. It's important for my company's revision control system that binaries with no changes in the source code always are the same, so that only "true" changes get checked in. Does anybody know why this is happening, or how to make the binaries not depend on the time of the link step, so they'll be consistent In Visual Studio's help pages, ...Show All
.NET Development How to send a msg on connect (vb.net)
Hey guys, I'm trying to send a message as soon as a connection is made but can figure out how to do that .. so need your help :) Code: Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click If Listening = False Then Dim T As New Thread(AddressOf Listen) T.IsBackground = True T.Start() Me.Text = "Listening" btnStart.Text = "Stop Server" Else Listening = False Me.Text = "Not Listening" btnStart.Text = "Start Server" End If End Sub Private Sub Listen() Dim Listener As New TcpListener(IPAddress.Any, txtPort.Text.ToString) Listening = True Listener.Start() Do Until Listening = False Dim sb As ...Show All
Windows Forms Working with TreeView and ListView
Hi @ all ;) i have a tool, where is (like the Windows Explorer) on the left side a TreeView and on the right side a Listview. Now, when i click on a node the ListView shows correctly the right path of the Node. Eg.: C:\windows. Thats ok ;) But now my Problem: How do i open the right path in the TreeView, when i click an Item in the Listview I think it goes with ListView1.SelectedIndexChanged, but i don't how. I searched for it mor than 3 month *smile*, and no body can help me ! cu Alex hi ;) something is going: My Prog starts with the Letter C: . Thats fine, but it don't goe's deeper. E.G. : MyDokuments is at : C:\Lokale Einstellungen\User \....\ MyDokuments. The Recursion don't works . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VB 2005 Game Programming: Where to start
Topic says it all. Were can I get Basic to Intermediate help/tutorials/guide with DirectX and VB. I am looking to make a 2D game but need a starting point. John XNA examples will all be in C#, but there's nothing stopping you from programming with it using VB.NET. I did hear a rumor that if you wanted to make XBox360 games using the XNA framework that you would have to use C#, but that made no sense to me since they are all .NET languages and if the Xbox360 is fine with C#, there's no reason it wouldn't handle games written in VB.NET either. But for the PC, yep, you can definitely use VB.NET to program games using the XNA framework. Thank goodness for .NET. Oh, and for 2D development, definitely check out ...Show All
Windows Search Technologies Windows Desktop (Searching...) - but no results?
Hi, I posted a thread re: issues I've been experiencing with 2.6.5 of WDS in the help forum but just upgraded to 3.0 beta 2 and am experiencing similar issues. I try to input searches in the search box but get a blank pop up stating simply "Windows Desktop (Searching...)" - and no results displayed. The WDS Search options box displays indexing as complete. Am using Windows XP with the latest service packs. Let me know if I need to provide more information. Thanks, Jack Jack, Could you please do the following: Go to Start:All Programs: Windows Desktop Search. Next, type a search term in the search box and press Enter. Do you receive search results Also, you should ...Show All
.NET Development writing to XML and VSTO in windows mobile 2005.
hey there... I am new to visual studio and programming in general and was wondering how i might accomplish these tasks. any help is greatly appreciated... 1. How do I make a button that when pressed writes its value to an xml or excel xls file 2. How do I make a button that when pressed runs another program 3. Does VSTO work on "windows mobile 2005" and "pocket excel" Also, does anybody know any good beginner tutorials that could help me o ...Show All
Windows Forms where can I find out about the combo autocomplete
not much detail on how to use. I want my custom datasource to be the same as what filled the combo box I have a data reader to fill a combobox, my user wants to just start typing a name and have it auto fill as they type. So the info i read about the combobox autocomplete says to use the custom but no details on how to use ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content Access
How will we be able to access content when apps are running on the XBox using XNA Specifically I can access the System.IO namespace on the Windows platform to load content ( meshes, textures, sounds, etc ). What is going to be available the XNA framework for the Xbox I would imagine that it would be a modified System.IO namespace though as they're not going to allow haphazard access to the drive, probably just to files in the game's folder or something similar. ...Show All
Software Development for Windows Vista XA MSDTC
Hi, I'm writing an app that must support both MySql and SqlServer back-ends. I've created a provider based model for this, and this side of things is fine. However, clearing up unit-tests is a pain, especially when the majority of my business objects do not, and should not, implement delete functionality. As such, I want to run the unit tests using a COM+ 1.5 transaction (thanks for the help article on this btw), each unit test, should it require rollback, will create a transaction, and call ContextUtil.SetAbort() once the test has finished. However, MySql does not rollback the transactions. MySql 5.* supports XA transactions. My knowledge of the underlying workings of this model is slight at best (any links where I can read up fully on th ...Show All
Software Development for Windows Vista Can someone explain DependencyProperty ?
Is there some significance to why the SimpleReplicator SDK sample uses a DependencyProperty in the SampleReplicatorChildActivity I'm looking at using replicator, but having difficulty understanding how to access instance state within a composite child activity. For example, if my replicator contains a sequence activity (like the sample), which contains a Policy activity, the only way I can see to get use properties in my policy rules is to access the containing sequence. Is there any way the standard policy activity can just "inherit" the properties of the sequence that contains it I thought maybe thats what dependency properties were for. DependencyProperty allow you to bind to other properties u ...Show All
Microsoft ISV Community Center Forums last Modified date in Excel spreadsheet
Hello Can anyone help me read details about a current workbook. Bascally everytime an excel spreadsheet is opened I want to saved the last modified date to say Sheet1.range("A1") Thank you in advance. can this be done with a UDF instead i've this so far: Function FileSavedTime(w As Workbook) As Date FileSavedTime = w.BuiltinDocumentProperties("Last Save Time") End Function ...Show All
