Darren Parker - MSFT's Q&A profile
Windows Forms Moving items in databound ListBox?
I have worked out how to move items in ListBox, but it doesn't seems to work when the ListBox is bound to a DataSource. How can i move items when ListBox is populated using DataSource property Maybe the better question is, ...Show All
.NET Development DataTable Rows with Conditional Query
I am using a query which is: "select * from newsletters where IsSubscriber is 1" newsletter=TABLE IsSubscriber =COLUMN NAME 1=bit value(can be 0 or 1) On getting the result from query, I am counting the number of rows returned and then putting the emailAddresses(which are returned if IsSubscriber=1) in a text file using the streamwriter class. It is very strange that the only one email address is being written to the text file. My code ...Show All
Visual Studio Express Editions What books to get
I have looked at the local book store for books on programming. There seems to be a selection of books on VB6 and also on VB.Net. Which would be a better choice for me to get in order to learn the Express edition Any major differences I should know about when reading one of those that I need to keep in mind when I'm applying it to VB Express Thanks! Whatever book(s) you get, get those that cover VB2005. The oth ...Show All
.NET Development Sockets and Serialization
Hi, I'm building a windows forms app that needs to connect to a server farm via the internet. Performance is of the essence. I'm thinking to use .NET remoting but I prefer sockets to avoid the complexity of remoting; the data I need to pass are small in size anyway. For larger data I'll use Web services. I know that sockets connection can pass array of bytes and not objects. Can I pass a serialized object from socket to socket There' ...Show All
SQL Server task reusability
I have a same sql execute task that i want to use in all my packages, all this does is track the package name and its start time into a DB. So as i understand, if i create a package call "log start time" and use it in all my packages, the package name will not be correct. Anyway i can build this simple custom task, or any other solutions will be appreciated. the bad thing is that i've already created al ...Show All
.NET Development Webmethod generating an error when return type is a dataset: .NET 2003
Hi, Please could anyone help me with this problem I have a windows application which is being written in VB.NET and through this application I making a reference to one of my web service. The web service returns a dataset object. When I make the call it causes an error: The error is as follows: An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll Additional informa ...Show All
Visual Studio Express Editions Process Image (file) Paths
Any best-practice methods for gettnig a process filename using just a process class I have been up all night looking at the win32api's,.net help and vb express inbuilt search function, but it has been to no avail. please, someone,... help! The following will list all modules (files) associated with a process. The first module should be the main executable: Dim Runnin ...Show All
Software Development for Windows Vista Mediacenter in Vista
I am building Mediacenter PCs in Denmark and Sweden. Will there be support for DVB-C, DVB-S and DVB-T with Common Interface and for example Viaacces cards in the new Vista Right now I work with Digital everyweres Fire-dtv (both DVD-B C and -S) This have been a major problem with the 2005 media center Edition. ...Show All
Software Development for Windows Vista CallExternalMethodActivity and SQLPersistence
Hello, I'm using the communcations sample of the hands on lab and this is working well. I amended it a little bit so I created a console app which accepts input to kick off workflows. This helped me to understand persistence ... so I can stop the console app re-start it and my worklow resumes as expected. But when I persist the workflow after the ballot in the communications sample was created - the wf resumes but of course the ballot will no ...Show All
Smart Device Development Hourglass
Can anyone tell me where the functions are to change the mouse cursor on a pda to the hourglass, working image and then back to the normal nothingness Thanks, Hi, You can try this... using System.Runtime.InteropServices; private int hourGlassCursorID = 32514; [DllImport("coredll.dll")] private static extern int LoadCursor(int zeroValue, int cursorID); [DllImport("coredll.dll")] private static extern i ...Show All
Visual Studio bscedt build error with VS2005 SDK Sep 05 CTP and VS2005 RC
I have installed VS2005 RC and the Sep 05 CTP SDK. Building the bscedt sample gives the following error: ..\BscEdt.idl(57) : error MIDL2025 : syntax error : expecting a type specification near "_DTE" interface IBscEditor : IDispatch { [ propget , id (1), helpstring ( "property DTE" )] HRESULT DTE([ out , retval ] _DTE* *pVal); Is this an incompatibility between VS2005 RC and the SDK Thanks, Zartaj ...Show All
Software Development for Windows Vista Beta2: String-Properties in Custom Activities; Custom themes
Hi, in Beta 1 it was possible to define 'free text'-input string properties with custom activities which enabled the workflow creator to input any text in the corresponding prop of the activity in the workflow designer. Any DependencyProperty with type(string) enabled this. In Beta2 this definition enforces a total different behaviour in the Workflow Designer - it tries to map it to a Workflow member variable ... How to create props for te ...Show All
SQL Server Installing MSDE 2000 on Server with SQL 2005 Express
Can anybody help I have a Windows XP and 2003 server; we have installed SQL 2005 Express on it but have an application that installs MSDE 2000 to connect to an application. After the MSDE 2000 is installed we can no longer see the instance across the network. If we uninstall the SQL 2005 express version we can see the Instance in MSDE 2000. Is there any compatibility issue with install MSDE 2000 after SQL 2005 has been installed. M ...Show All
Visual Studio 2008 (Pre-release) How to force the UI update in WinForm interop?
I host a UIElement in ElementHost and find the UIElement will not be updated automatically. How can I force it to update This problem does not exist in Jan CTP. Thanks! This does not repro for me using the Feb CTP bits. This was a known issue a while ago. Make sure you are using the correct version of the WindowsFormsIntegration dll. In the Feb CTP we shipped two different versions of the dll in two different places. The place where ...Show All
Visual C++ collate in C++
I am trying to generate hashes for a set of strings (that I store within a class) using the hash() method in collate class in <locale>. Suppose the class SetOfStrings has a list of strings and it has a method getNextString which returns a const char *. When I pass this to collate as follows: SetOfStrings ss; // Assuming ss is set up with all the strings const char* beg = ss.getNextString(); collate<const char *&g ...Show All
