Franco Finstad's Q&A profile
.NET Development ANNOUNCING: XML Notepad 2007
Upgrade your XML Notpead 2006 from here: XML Notepad 2007 New features included in this version: Added keyboard accelerators for find again (F3) and reverse find (SHIFT+F3). Added support for loading IXmlBuilder and IXmlEditor implementations from different assemblies using new vs:assembly attribute. Made source code localizable by moving all error messages and dialog strings to .resx files. Added a default XSL transform. New icons, a play on the Vista "Notepad" icons. Bug Fixes included in this version: Fixed install on Windows Vista machines using Windows Installer XML 3.0. Performance of expand node when validating. Fixed bug where changed schemas and transforms were not being re-loaded. ...Show All
Visual Studio Express Editions Drag and drop folders
Hi I've been trying to figure out how to drag a folder onto a textbox and then have that textbox display the path of the folder. So say I drag the windows folder onto the textbox, that textbox would then display c:/windows. If you need anymore info let me know. Any help would be brilliant, I've been searching for a hours now and haven't really gotten anywhere with it. Thanks b0bd0gz Thanks Tall Dude it works like a charm now ...Show All
Windows Forms Common Tasks
How do I add the cool 'Common Tasks' section to my user controls Awesome! Thanks, nobugz, that'll come in handy, but it's still not what I was looking for! Do this and see what I mean: Make a new project Drag a panel onto the main form A small arrow in a box appears at the top-right of the panel, which contains 'Panel Tasks'. How can I acheive this when I make my own user control ...Show All
Visual Studio Team System Custom rules on member variables
Hello, I'm having troubles to add a custom rule in order to check member variables names. (they must start with m_) Sample : public class test{ int m_myVar; } It's nearly working except that it's also checking the name of the events into my application So my question is, how to build variable members list Thanks for your help Stephane Sample code : public override ProblemCollection Check(Member member) { Field l_field = member as Field; if ((l_field != null) ) { if ((l_field.IsLiteral == false)) { if (memberVariableNameValid(member.Name.Name) == false) { base.Problems.Add(new Problem(base.GetResolution(member.Name.Name), member.Name.Name)); ...Show All
Windows Forms Multiple controls bound to one datasource
I have a winform with two comboBoxes. I have a DataTable populated by a list of Employees. I've made a SelectedIndex change event for both comboBoxes with different functionality. But for some reason, whenever I change the selection in one combo, the second is combo is somehow synchronized with the other and that too points to the same selection then. Is this something to do with how dataTables work or something to do with how controls work How do I unsychronize the controls whilst keeping them bound to the same dataTable I'm not sure if I am posting in the absolutely right place but am hoping someone can redirect me incase this is the wrong place to be. http://safari.awprofessional.com/0321268 ...Show All
SQL Server Metadata cleanup has deleted metadata at the Subscriber incorrectly?
Hi, We have Microsoft SQL Server 2005 SP1 based merge replication application. This system consist of 1 publisher/distributor and about 700 subscribers. Publisher is MS SQL Server 2005 standard SP1 and subscribers are mostly MS SQL Server Express SP1s. We started this system in September last year with migrating data as region based with one area at time. Everything went well until January 2007 when over 500 users were using new system. What is even strange that most errors comes on areas which were moved to new system on week number 2 on 2007 (8.1.2007->) I have double and cross checked that these publications have exact the same parameteters as working publications. The error message which comes on subscriber is fol ...Show All
Visual Basic Error in DataTable
Dear All, I get error msg "Object is not an ADODB.Recordset or an ADODB.Record.Parameter name: adodb" when I use following code. If I declare the function and calling sub as DataSet it works fine, but it makes error with DataTable. Public Function GetProductDetail(ByVal ProductID As String) As DataTable Dim techConnection As OleDbConnection = New OleDbConnection(strConn) Dim techDataAdapter As OleDbDataAdapter Dim dtProductDetail As DataTable Try Dim strSQL As String = _ "SELECT * FROM Products WHERE ProductID = @ProductID" Dim techCommand As New OleDbCommand(strSQL, techConnection) techCommand.Parameters.Add("@ProductID", OleDbType.VarChar, 20, "ProductID").Value = ProductID techDataAdapter = N ...Show All
Visual FoxPro software problem.
Hi there. I have question regarding one software that is builded on Visual Foxpro 7. I have a company and i have 4 computers in my office, i have a software for my company installed only in my computer... The problem is that i dont have the cd from my software and i have tried to copy all files from one computer to run that software in other pc`s. I have installed foxpro in other pc, i build the files from begining but isn`t working... When i click on the software it opens but after 1-2 seconds the program is closed automaticly, cannot run.. What can be the problem can anyone tell me any solution about this I will wait further for your message Thanks and best regards, armandino >That code you ...Show All
Visual C# Trouble with a BackgroundWorker
Hello everyone, having a little trouble with threading and I hoped someone would be so kind as to point me in the correct direction. I am attempting to create a multi threaded application in which each thread can spit output to a single TextBox. I understand that the BackgroundWorker is the preferred method to use when multiple threads are trying to access the same UI elements (Controls). Here is my problem: I have attempted to follow instructions and use the RunWorkerCompleted event handler to update the contents of the text box, but for some reason it appears that that event handler is not being run by the thread that controls (created) the UI. I'm confused here becuase I thought the whole point was that this event handler was called by ...Show All
Visual Studio Express Editions mscoree.dll
Hello, I would like to install Visual Web Developer Express. I get errors saying that the mscoree.dll file has a problem. I still try installing, but the install fails. I tried renaming the dll to another name and it still doesn't work because now it's looking for it and can't find it. The installation fails with an error '2908'. What should my next step be thank you very much. I'm using Windows XP ME - maybe it doesn't work because it's the Media Edition Is there something I can do to make it work thanks- ...Show All
SQL Server Error when deploying forms authentication sample
Hello I'm trying to get the forms authentication sample working - I have followed the instructions given in the ReadMe that came with the samples. When I try to browse to localhost/reportserver (on the server), instead of seeing the logon page as expected, I get the following error message: An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ...Show All
Windows Forms Dropdownlist checkbox or multiselect
Can anyone point me in the direction of a control that uses checkboxes within a dropdownlist or one where I can somehow select multiple items I'm using VB.Ne 2003 and there is a Checked Listbox in the toolbox that may be what you are looking for. Hope this helps.. ...Show All
Software Development for Windows Vista How to get menu's theme data?
I have been trying to get menu's theme data via OpenThemeData(hwnd, L"Menu"). If I pass menu's handle(get it by FindWindow) as hwnd, the API function returns NULL; If I pass main frame's handle as hwnd, the fuction returns a non-zero hTheme. But GetThemeColor and GetThemeSysColor calls all fail. In fact, I wonder menu's normal color and highlight color of Aero theme or other themes. Does anyone know the problem Thanks! Check out MenuStyle in AeroStyle.xml in the SDK, it includes a few color hints that you can retrieve by GetThemeColor(TMT_FILLCOLORHINT). MenuStyle is the base class for Menu. Unfortunately, there is no color hint for PopupItem, so the only things you can do w ...Show All
SQL Server Dynamic Query Problem in Reporting Services 2005. Help!!!
Hello to everyone, Right now i am working on a reporting project. I am using SQL server 2005 Reporting services for this project. In my project I want to pass table name as a parameter to report. I tried but i cant get result. In other words, i want to generate a dynamic query in which i want to pass table name as parameter. This table name and other parameters are passed to report from .aspx page. I use @financialyear as my table name parameter in sql query of report, but it give me error that " @financialyear variable must be declared ." If anybody know answer pls reply me fast my deadline for project is near. ...Show All
Visual C++ scope problem
hey all have a scope problem, simple example is here: #include <iostream> #include <windows.h> namespace { class test_2 { public: char external_1[30]; test_2() { ::SecureZeroMemory(&external_1, sizeof external_1); }; }; }; namespace { class test_1 { public: void assign(test_2 object) { char internal_1[100] = {"asdfghjkl"}; ::strcpy_s(object.external_1, internal_1); std :: cout << object.external_1 << std :: endl; }; }; }; int main() { test_1 object_1; test_2 object_2; object_1.assign(object_2); std :: cout << object_2.external_1 << std :: endl; }; i need to ...Show All
