Christian38's Q&A profile
Windows Forms How to identify the particular item in a ListBox right-clicked
I want to be able to identify the item in a ListBox a User right-clicks (in order to enable the user to change the name of the item listed). I added a ContextMenu control to the Windows Form, associated the ListBox with it, and have a (stil empty) event handler activated when the User right-clicks in the ListBox, but the problem I have is identifying the particular item righ-clicked. How is this done Thanks in advanc ...Show All
Windows Forms DataGridView with dynamically filled ComboBox
I use a datagridview that is databound to a table. There is a DataGridViewComboBox column. I am dynamically adding items to the combobox if a user types a new value. The problem is that the grid does not come out of the editing mode (the pencil is still shown) if the user types a new text and presses the enter key. Thanks for help Peter Here is the code I use: Private Sub DGVkey_EditingControlShow ...Show All
SQL Server how to convert rows to columns
hi i have a sample data like patientno visit experimentdate 101 1 23-Dec-2004 101 2 23-Mar-2005 101 3 23-Jul-2005 102 1 23-Dec-2004 102 2 23-Mar-2005 102 3 23-Jul-2005 i want it to display like this patientno visit1 visit1date visit2 visit2date visit3 visit3date 101 1 23-dec-2004 2 23- ...Show All
Visual C# Multiple references
project1.dll has several public methods (COM visible). project2.dll has a reference to project1.dll and can access project1 methods (COM visible). project3.exe has a reference to project2.dll (I can't add reference to project1) How to access project1 methods from project3 How about an Interface DLL that exposes the interface to the businessobjects.dll. Then all project3 has to reference is the interface DLL ...Show All
Windows Forms Button Image Layout
I am trying to put an image into a button and have some text below it, and I can get close, but not quite there. If I set the background image, then the Layout is available and I can set it to Zoom. The problem is getting the text to properly appear below it. If I set the image, then Layout is not available and I cannot Zoom it. Ideally, it would be nice if the Image had a Layout property that would allow for Zoom. If anyone has any ...Show All
Visual Studio Team System Check private fields aren't accessed
Hi I'm using Microsoft.CCI.dll to try to check if a method is accessing private fields of another instance. I do some code generation to make proxys for a framework of mine, and there's this constraint. Can somebody help me I can get all the ldfld opcodes, but how can I check if the fields they apply aren't "this" Best regards, Gustavo Guerra Ah. Sorry, there currently isn't a good way to do this. Our bas ...Show All
Windows Forms Building a DataRelation dynamically?
How do I build a DataRelation dynamically The two tables in question are in memory and untyped. The tables and primary keys are built on the fly. The tables are populated using sqlreader Now I want to buld a DataRelation between these two tables. My&nb ...Show All
Visual C# Very Flaky IDE problems
Whenever I provide a DialogResult MessageBox....YesNo... Whatever the result, Yes or No....my form will close. If result is Yes...the code IS executed...then the form will close. DialogResult = MessageBox .Show( "Are you sure you want to stop the engine " , "Stop" , MessageBoxButtons .YesNo, MessageBoxIcon .Warning); if (DialogResult == DialogResult .Yes) { } note* It appears this will only happen when th ...Show All
.NET Development How to Host a Web Service
I am facing problem in hosting .NET Web Service on windows 2000 Advance Server with port other than (80) . Can some one tell me the procedure of hosting web service. So that by doing this people can add reference of my web service. Thanks, Saeed Nawaz all you have to do is to setup IIS. you can create website (with differetn port than 80) or create virtual folder for Web service. once you have done this people can reach you servic ...Show All
.NET Development Remoting event
One of the form of client side registers for an event which is exposed by the server object (Singleton). Client can attach and detach to this event. Everything works fine. When the form is disposed the event is detached by the client. But ServerIdentity object keeps the reference of the disposed form and never releases it. This causes the memory leak on client. What could be the problem and how to force ServerIdentity object to release client fo ...Show All
Windows Forms Bad opinion about .NET framework
Dear Friends, I am using Visual Studio.NET 2005 (Whidbey) to do my developing and designing work. I have developed windows application.I copied the EXE which I have developed,to some other machine (Machine which doesn't has .NET framework 2.0). While running the EXE,I have an error that "you should have .NET framework version 2.0.5314.0 ..." This is really bad. How do they expect that all sys have the framework Then what is the purpose of EX ...Show All
Visual Studio Team System Error: Build machine is not reachable
Hi, I've defined a team build, but attempting to build results in a messagebox with the text "Build machine is not reachable". I’ve tried all the steps at http://forums.microsoft.com/msdn/ShowPost.aspx PostID=3310 , but doesn’t work.. Someone have another information for me Thanks Thank You People, thank you Omar. It was the Team Build installation the missing thing here.. Now I will proceed with th ...Show All
Visual Studio 2008 (Pre-release) Message not being processed
I had this porblem crop up yesterday when I tried to move my application off of my development machine and onto test servers. However I now have the problem everywhere including my machine. When I call an operation my code never gets executed. There is no error or exception or anything. It simply never runs. I created another method called Ping that returns a string and that works fine. In addition the debugger is never able to cross over int ...Show All
Visual Studio Express Editions Upgrade to 2005, keep Version 7?
If I purchase and install the 2005 edition of Visual Studio, will I still be able to keep and use my current Visual Studio Version 7 ...Show All
Visual Studio Why does Visual Studio Ignore/Overwite the Working Directory in VSS For Projects
Using VS 2005 If you have a VSS structure like $ root / (working dir c:\work) solutions/ solution1 websites/ &nbs ...Show All
