VistaMann's Q&A profile
.NET Development Implementing an IDictionary class
I am working on a class, that implements IDictionary, and the problem is, IDicitionary requires one type of GetEnumerator, and it implements ICollection, requireing a different type of enumerator. I have three options, each generates it's own little error: The most obvious implementation (it gives an error complaining about two implementations of GetEnumerator differing only by return type) public class Configuration : IDictionary { &nb ...Show All
Smart Device Development Remote Spy suddenly stops reporting window messages
Hi, Has anyone else had problems using Remote Spy provided with Visual Studio 2005's Smart Devices functionality I have been seeing an issue which pretty much makes it unusable in my scenario. What happens is I can connect to a Windows Mobile 2005 device via ActiveSync (or an emulator via DMA) and obtain a list of windows. However if I select a given window and attempt to view the window messages being sent to it the log suddenly stops ...Show All
Visual Basic get the current word under the cursor/caret in richtextbox using api
hi, pls give me a solution to find/get a word under the curosr/caret in richtextnox (vb.net). (means when I type a word in richtextbox , the current word(the word under the cursor) should be always displayed in another textbox) Regards, Shajahan K you are going to have to create a routine to get the word... Using rtf.selection.Start will return the starting character position of the cursor Using rtf.Find(" ", St ...Show All
.NET Development VB: Regexp is not defined
Hi guys, I've been trying to make a program using regex work, but .net simply will not allow it! For some reason, it won't let me declare the re as New Regexp, m as Match (for some reason, it always highlites the regexp and says "Regexp is not defined". I'm importing (thank to ReneeC for helping me get my importing straightened out) system.text.regular expressions. Any help is greatly appreciated here's the code: Dim re As New RegExp , m A ...Show All
Windows Forms best way to alter the auto generated SQL (then stop code from being overwritten)
hiya, I assign a sqlServer datasource to the dtagridView..I can add and delete etc. I want modify the auto-generated SQL "DELETE" statement in the "datasetName.Designer.cs"... I know that this human modified code will overwritten if I regenerate the code. Is there any way to ensure that this particular piece of code is not overwritten during subsequent regenerations ..I think I should be able put it in a partial ...Show All
Visual Basic VB 2003 Windows Forms Exception - Dialog Box Go Away
Hi, I am getting an occasional Windows Unhandled Exception error for an invalid parameter used which throws up the dialog box with info Although I have extensive error handling throughout my application, I am unable get any error in my code as this is a Windows Forms based error I have found I can hit continue and all is fine, but this is an embedded application and has no user interface Question Is there a way to configure the Fr ...Show All
Visual Studio 2008 (Pre-release) Anybody managed to find a workaround for the "Black Window" bug in the Nov CTP?
I think I'll create this post as a checkpoint where people can post any info on this bug. For a background, some of us using the November CTP for WPF and either Visual Studio 2005 or C# Express, are experiencing a black window when running the simplest of WPF apps (i.e an app that does nothing but window.Show()). Other people experience it intermitently in XamlPad itself. A few links to the problem... [1] [2] ...Show All
Visual Basic Converting SQL 2005 to SQL2000
I have a client that asked me to write a .Net app for them using VB2005 and SQL2005. I started the project and now they have learned that their IT shop will not support SQL2005 at this point and we need to move it to SQL2000. How can I get the database files and stored procs over to 2000 Is it as easy as doing a backup in 2005 and restore under 2000 Thanks... Hi, Yup you could install both on the same machine. Th ...Show All
Visual FoxPro Trouble with update MS SQL table with an untypical column name.
I have problem with updating views of SQL server. When I have name of column for e.x. "Name_en-us" VFP translated this to "Named_en_us". Unfortunately when I try updating, ODBC returns me an error. Do you have any idea how to tackle this problem You can use angled brackets on untypical column names (and/or column names which are a keyword, contaning a space etc). ie: DBSetProp('myView.name_en_us', ' ...Show All
.NET Development XML TO MS WORD2003
Hai I will just sumarise what I am tying to do. I need to transfer the Data from XML to Ms-Word. For that I have created a Template in Word and saved it as WordML.THis templated contains a xsd associated with it. So it contains some static lines which need to be displayed in the final word document alond with some xml content which complies to the included xsd. I am converting this Word ML file in to xsl Using a Tool Called WML2XSLT . When I Try ...Show All
Software Development for Windows Vista Problem passing parameters from workflow to custom activity using dynamicly compiled xoml workflow
We have created a Win Form app that programmatically builds a workflow. It contains one sequential workflow object, and has activities implemented in a separate DLL. The generated workflow definition is then serialized out to a xaml file. We then compile the xaml definition to an assembly, and executes the workflow using dharmas compiler sample. The workflow library is a class library wrapper for the runti ...Show All
Software Development for Windows Vista TransactionScope with TableAdapters promoting to DTC transaction - why?
Why does the following promote to DTC when using SQL Server 2005 All tableadapters are using the same connection so surely the transaction can stay lightweight using ( SqlConnection conn = new SqlConnection ( ConfigurationManager .ConnectionStrings[ "DACL.Properties.Settings.CatalogueConnectionString" ].ConnectionString)) &n ...Show All
Windows Forms Scrollbars and Custom Border Painting
I've customized a panel to draw a custom border utilizing WndProc but I have a problem when the scrollbars are displayed, take a look at the lower right portion of my border. I have attached a snapshot of the problematic control and a .NET pan ...Show All
Windows Forms async sockets 2
Hi, I'm having some problems with closing sockets in a simple client/server app. Both client and server sockets are async. Right now, when the client connects to the server, server just displays "client <clientip> connected". When I try to di ...Show All
.NET Development Unloading a form
Hi, What is the syntax to unload a form in c++ .net I have login.h and mainProg.h, i want to unload login.h when mainProg.h is loaded. Thanks in advance! Hi! What do you mean "unload" If you want to free memory - it's not your task in .NET, it's GC work. If you want to close/hide form - call Close(). If you want real unload - you must create app domain and unload it, but I don't think this ...Show All
