p.leone's Q&A profile
Windows Forms How do I catch SelectionChangeCommitted event of a combobox in a datagrid?
I have a standard combo box in a datagrid (DataGridEnableComboBoxColumn) and I want to catch the SelectionChangeCommitted event. Does anyone know how to do this Blue & white hooped blood runs through my veins Hi Supa Is there any chance you could post the code up. I am having huge problems in this area... Thanks Touraj tourajv at hotmail dot com ...Show All
Visual C# Unable to load class library
I wrote a managed wrapper in C++/CLI and compiled it under AMD64. Now I wrote a client in C++/CLI too and this works well. Trying to do the same in C# I got everything to compile but when I run it it says: Unhandled Exception: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) at MyClass.Main() This is weird though. I compiled the C# file for 'anycpu' but trying to set the platform to x64 did not do any difference. The class library is even located in the same directory. It was compiled using the RC: csc /out:test_cs.exe tes ...Show All
Visual Studio Team System Unexpected Erro Opening Project Portal
I had some issues creating a new project, but this was solved by following the suggestions of another post and changing all web sites in IIS to use ASPv2. This is the only change I have made following an error free install. Everything looks good except I cannot view the project portal. I get simply 'An unexpected error has occurred. ' when I connect to sharepoint root or to a Test project under http://teamserver/sites/test Thanks, Nick Yes, that was the problem. I missed that setp during setup. Thanks again Dave & Buck for your help, Nick ...Show All
Visual Basic terminate vb.net console application
Environment: Running this code on my PC via VS 2005 .Net version 2.0.50727 on the server (shown in IIS) Code is in ASP.NET 2.0 and is a VB.NET console application Problem & Info: Application.Exit() is throwing an error in VS 2005 when I debug Error: Name 'Application' is not declared The code: Imports System.IO Imports System Imports System.Configuration Imports System.Data Imports System.Data.SqlClient Imports System.Net.Mail …some code, then &n ...Show All
Visual Studio Team System .Net Runtime 2.0 Error
Hi all, I keep receiving these errors, approximately once an hour, on our Team Foundation Server machine. We have a clean build of Team Foundation Server and SQL running a single-server installation of Team Foundation. Ever since we installed it we have been getting the following error: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 12/12/2005 Time: 10:31:57 AM User: N/A Computer: DEV-TF Description: Faulting application w3wp.exe, version 6.0.3790.1830, stamp 42435be1, faulting module webengine.dll, version 2.0.50 ...Show All
Visual C# Dynamically moving controls
I have six panels, each panel contains a textbox and its label. Each panel has a checkbox associated with it on the form, but outside of its respective panel. I only want the panels whos checkboxes are checked to be visible. If another checkbox is checked, I want that respective panel to be displayed directly under the last panel displayed. Once that checkbox is unchecked, I want the panel to disapear, and all the other panels that come after, to move up. I am going crazy trying to get the code right, and I thought maybe someone has already done this as could give me an idea on how to get all these panels to apear and dissapear, and repositi ...Show All
Visual Basic Weird Change in Form's Height
Hello ... I've a Project where all my forms are set to 1024*768 (FormBorderStyle= 0-None) when i run the program I see that it doesn't cover all the screen when i check the height i see that it's 753 even when i end the Program and get back to the visual basic i findout that it had been resetted to 753 ! Now I've searched the Web if there is a Limit to the height when using 1024 as an example ... but i didn't find any clue I can fix this by setting it at runtime but the Problem is that some controls MOVE when i change the height... so that's not the Optimal way the right way is to know the cause of this. Thanx in Advance ! ...Show All
Visual J# I need System.setProperty(String, String)
Hi; I need to be able to set some system properties (for some unit tests). How do I do this In java it's System.setProperty("key", "value"); thanks - dave Hi David Thanks for the feedback. Your request for this JDK 1.2 level method in the future releases has been noted. Like all other requests from our customers about what they would like in our future releases, this request also would go through our planning/investigation process. With regards Ashwin Raja ...Show All
Visual Studio Tools for Office Call VSTO Addin functions from external application?
Hi all, Please pardon me if this is not the right place. I'm looking for a way to call functions in a VSTO Addin from an external application. In VS2003 and Shared Addins, I used to be able to do this using this code in the external app: lole_object = iole_outlook.COMAddIns.Item("OutlookIntegrator.Connect").Object -- synchroniseAppointments() is a publically declared function in the Addin lole_object.synchroniseAppointments(ls_diarynoteIDs) However, when trying this using a VSTO addin, it did not work. From what I can gather after some research, this seems to be just the way VSTO addins are s ...Show All
Smart Device Development ListView problem
Hi, i have tabcontrol containing two tabPages. One of the tabPage contains a ListView with dock property set to FILL. if i leave the default view for the ListView.view property alone, i see the items i added (though not the way i want them to appear), but if i change the view to DETAIL, i see nothing. Anyone have any idea why this is happening so if i have: this .ctlLv.View = View.Details; ListViewItem lvi = new ListViewItem( "Dell" ); ListViewSubItem lvs = new ListViewSubItem( ); lvs.Text = "Dell Corp"; lvi.SubItems.Add( lvs ); ctlLv.Items.Add( lvi ); i do not see anything in ...Show All
SQL Server Configuration File Locations - Likes to say it can't load them in designer
I have a package and added a configuration file to it to hold settings such as connection strings etc. When I open the package up in the designer and check where the configuration file is from, it likes to specify it with a full path like this: \\myserver\projects\packages\blah.xml Where blah.xml is the configuration file and the package file is in the same exact directory. This creates an issue when I use build and then try to install the package on a server. When installing, the server tries to read the config from \\myserver\projects\packages\blah.xml which it can not. Conversely I've tried editing the location in the desig ...Show All
SQL Server SSIS - XML config file
Hi All, I am looking for help trying to configure an XML dtsconfig file, I am using different connection managers for my Source and Destination Databases, I am also using an XML dtsconfig file to set these parameters dynamically, however I dont want to use userid/password to connect to my source/destination databases and instead use trusted connection or windows authentication, I remember we had an option in earlier DTS where we could set it up as 0 or 1and use windows authentication, I cannot find this in the new SSIS package properties. Appreciate your help in advance. The only property for ...Show All
SQL Server Creating an update trigger for a multi-table view
I have a trigger on a view defined as follows: CREATE TRIGGER MyTrigger ON MyView INSTEAD OF UPDATE AS UPDATE MyTable SET field1 = inserted.field1, field2 = inserted.field2, ... FROM inserted INNER JOIN MyTable ON inserted.key = MyTable.key This is copied pretty much verbatim from various examples I've seen around (see Figure 2 on this page: http://msdn.microsoft.com/msdnmag/issues/04/01/DataPoints/ ), but it doesn't work. When I try to do an update, I get the message "The value(s) updated or deleted either do not make the row unique or they alter multiple rows (2 rows)." I'm using the table viewer in Visual ...Show All
.NET Development How to get the value of: MyObject.Property1 by name. Use reflection?
Hi all, I don't know the name of my property until runtime so I want to get the value by the property's name. Psuedo Ex. Return MyObject."Property Name Goes Here" -Andy Reflection is what you want, but is a bit more involved than your code... The documentation is pretty good on this, as are articles on codeProject or other sites. /* assume obj is an object of type MyClass */ Type type = Type .GetType( "MyClass" ); PropertyInfo property = type.GetProperty( "FontType" ); property.SetValue( obj, 10, null ); Int32 value = ( Int32 )property.GetValue( obj, null ); Debug .Asser ...Show All
Visual Studio How to create a new Code Generator in VS 2005?
Here's what I want to do: I have a parser generator that I want to use in my project, and what I want is to be able to edit the grammar file and have a custom tool generate the code for me automatically (similar to web references and the MSDiscoCodeGenerator). Could anyone point me to how to some document that explains how to do this in VS2005: * Which tools/sdk's do I need * How do I create the new file type in VS2005 (do I have to ) * How do I create the custom tool for VS2005 I've seen some articles on how to do this stuff for VS2003, but I am not sure I should do the same for VS2005. Thanks in advance, Rubens ...Show All
