Pierre Christophe's Q&A profile
Windows Forms DataGridView: Get row at point
Hi, I would like to have a row selected when i right click on a control. However, i cannot find how to get the row based on the point of the mouse_up event. I searched the docs, but could not find any member of datagridview that could help me with that. I think i'm overlooking something. Ward The same (from the docs): System.Windows.Forms.DataGrid.HitTestInfo myHitTest; // Use the DataGrid control's HitTest method with the x and y properties. myHitTest = dataGrid1.HitTest(e.X,e.Y); Console.WriteLine(myHitTest); Console.WriteLine("Column ...Show All
Visual Studio Tools for Office Adobe not playing nice with VSTO
greetings, When adobe professional is installed, it seems to cause a bunch of weirdness with my menu items in my vsto solution. On some machines they are shown for a sec and then hidden, on other machines it takes over my menu items and shows adobe items underneath my top level item. this is a show stopper for my vsto solution as these products are often gonna be found on word. any suggetions. Mary, I found the following link which seems to at least partially address the problems you've been having/ I think this is essentially a Word/Adobe conflict. http://www.gmayor.com/lose_that_adobe_acrobat_toolbar.htm Ade ...Show All
Visual Studio 2008 (Pre-release) Adding query results to a List, can it be done?
I've been testing linq and I'm wondering if this can be done. The code compiles fine but crashes when run. I'm trying to get LINQ to create a new instance of my class for each result set that I then add to a typed list using foreach. Now, is it not working because my class does not implement IEnumerable or is it some other reason Here's the code snip I'm trying to get to work. using System; using System.Collections.Generic; using System.Text; using System.Query; using System.Xml.XLinq; using System.Data.DLinq; using nwind; namespace linq2 { public class Product {   ...Show All
Visual Studio Team System Default implementation language for distributed system designers
Is there any option to change the default implementation language for the distributed system designers Related question: will supoport for C++/CLI implementation be included in RTM Hi Carl, Visual Basic is the default if all languages are installed. In you uninstalled VB, Visual C# would become the default language. Unfortunately, C++ support will not be enabled. This was something we wanted to enable, but were not able to in the time available. Another option for creating a C#-based app is to make an application prototype with the correct language and add it to the Toolbox. To do this for an ASP.NET Web Application, you would d ...Show All
Windows Forms Need Help about user control
Hi all, I make a user control that need validation. So before one control is validated another control cannot focus. but when iam trying to check/uncheck checkbox and radiobutton, click button with different usercontrol, these controls can focus and executed. it makes me very confuse. Need help from all of you guys, how to solve this problem. I have uploaded my simple program at this link below http://rapidshare.de/files/13003561/WindowsApplication2.rar.html try to click control in yellow area, compare with control color are. Thanks in advance Wirawan ...Show All
.NET Development Writing to Eventlog(remote) from a webservice
Hi, I'm trying to write to the Eventlog in a remote PC from a web service but I get the following error: System.UnauthorizedAccessException: Attempted to perform an unauthorized operation. at Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode, String str) at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName) at System.Diagnostics.EventLog.GetEventLogRegKey(String machine, Boolean writable) at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly) at System.Diagnostics.EventLog.SourceExists(String source, String machineName) at System. ...Show All
SQL Server SSIS Custom Component DerivedColumn programmatically problems
dear experts, i'm trying to build a package programmatically from client c# application. I'm working to create three dataflow components: - OleDB Source - Derived Column Transformations - OleDb Destination. My package works good, but i have several problems when insert an expression as Value of an IDTSCustomPropriety90 object, like this one: [LEN](#firsname.lineageID) > 5 <<if true>> : <<if false>> Simple expressions like concatenate strings, for example "#firstname.lineageID" + "#lastname.lineageID" seem to work good. Thanks a lot in advanced. Paganelli Francesco ...Show All
Windows Forms Scrolling smears controls
In my MDI app, when the user shrinks an MDI child form so scroll bars appear, then the uesr then drags the vertical scroll bar down, the contents of the form seem to get partially redrawn so they appear to stretch or smear at the bottom edge of the form. When the user stops the drag of the scrollbar, then the form draws itself and&n ...Show All
Visual Studio Tools for Office Getting even weirder...
Hi; I built a VS 2005 simple Add-In, tested it, and it worked and I could break into it in the debugger. I then did the same in VS 2003 and it also would run and I could set breaks in the debugger, but it required winword.exe.config set to .net 1.1 I then went back to the VS 2005 one (deleted winword.exe.config). Now when I try to run it, breakpoints I set in the 2005 Connect.cs (the projects & dlls have different names) break in the 2003 connect.cs. And the 2005 AddIn gives me the message that it was built without debug information (it IS the debug build) and therefore breakpoints won't work. If I go in the registry and remove the 2003 ...Show All
.NET Development Installing the test certificates on windows 2000
Hi everyone Please can someone help I'm tearing my hair out! I am trying to import the test certificates from wse 3.0 onto a windows 2000 server. I have no 'other people' store but I have read that this doesn't have to be a problem, I have set the certificates up exactly the same way as I have them on our windows 2003 box, which by the way everything works perfectly on, but I just can not get the app to run when talking to the win 2k box. I keep getting the following error: WSE910: An error happened during the processing of a response message, and you can find the error in the inner exception. You can also find the response message in t ...Show All
Visual Basic Newbie Database Question
This is a very basic question, but I've wasted a few hours trying to figure it out already, so I'm groveling for help. I'm looking for basic code to help me open a database, read some of the contents into variables, and that's it for now (close the database). The database in question is a flat table in mdb format; 8 columns, 15 rows - each row is a record with a name (p01, p02, etc) and seven associated strings - pretty primitive. The 1st column is the record name. I've gotten as far as associating the file with my project, but can't find the trick on how to open it and read what's in it. The code should: 1) Open the file ("CCUG PreOp.mdb") ...Show All
Windows Forms Combobox event usercontrol
Hello, I am sure y'all have answered this before, but I am having a rough time finding the answer. I will blame my cold instead of my laziness. I have created a user control to hold a bunch of panels. I created a collection class to hold the panels and that works great. Now I am trying to add a combobox on the UC so that at design time It list all the panels that I have added and be able to navigate between panels using the combobox selectedindexchange event. I understand I need to create a custom designer, but after that I am lost. Any Idea Thank you, Matt It seems that you are tring t ...Show All
Windows Forms Getting the reference to the containing Form for a component
I am working with a user control based on the ToolTip component. From inside the component, I need to get a reference back to the form on which the component resides, but cannot find it. Does anyone know how to get a reference to the containing form from a component Yes, this is easy with contols. But when the custom control inherits from ComponentModel, there is no parent property. There is a container for components, but I cannot find a way to get from the container back to the form is is on. ...Show All
Software Development for Windows Vista Vista December CTP Install Problem in Microsoft VPC
I am trying to install the latest Vista December CTP build on a Microsoft VPC. I have the latest version of VPC with the latest SP. The Vista product key from MSDN works fine. The problem that I am experiencing is that I can not get past the "Where do you want to install Windows " screen where you must specify the hard drive and partition to install Windows. After selecting the unallocated virtual hard drive space, creating a new partition, and formatting the virtual drive, the following message is displayed on the bottom of the screen: "The partition you selected is not ready for installation. Please restart the computer and verify th ...Show All
Software Development for Windows Vista cpu constantly running at 100%!!! and Vista running EXTREMELY slow please help
i have no idea what to do, when i go to task manager and click performance it says my cpu is running at 100%, and its doing that 100% of the time, im afraid it may overheat. I am running a Sony Vaio laptop, 3.2 Gz, 1Gig RAM, 64MB video card. vista is also running slow, very very slow... it lags and it doesnt alow me to move large files. (says that i do not have permission) HELP! Thanks for your ADVISE, I don't understand why however it works great with me, I simply opened my notebook lid (normally in use on dock with lid closed and seperate monitor) and the CPU dropped from 100% to 4%. Never ...Show All
