Kevin Peter's Q&A profile
Windows Forms Terrarium .NET 2.0
Hi! Does anyone know, if there will be a Terrarium 2.0 when Microsoft ships .NET 2.0 Maybe some events at TechEd Greetings Martin ...Show All
Visual C# Windows forms component
Hi All, I have developed a Windows form component as an Assembly(DLL) which contains many Windows form controls. I want use this with a Web application to display on the web page. Please suggest the procedure. Thanks. you cant use Windows.Forms controls in a web application without downloading to the client. If thats what you want to do, you need to use the <object> tag much like an embedded activex control. ...Show All
Visual Studio Team System HTTP Status 401: Unauthorized - when trying to publish or view a test result
Hi there, I currently have the Team Foundation Server running on a VPC on machine A. When I connect to the server on another machine B, I cannot publish test results or view test results from Work Items. I can do all other things (create a new project, new work item, add attachments, view Project portal, etc.). Machine B is on a different domain, so I just connect to the TFS using its local credentials. Is this the pr ...Show All
Windows Forms Problem With KeyPress in DataGrid
Hello, How to Respond to KeyPress event of DataGrid when Enter/Tab is pressed. Hi Mark Can you show me how to override the DataGrid::ProcessDialogKey method, please Thanks and best regards AC ...Show All
SQL Server MSSQL 2005/Native Client problem with IColumnsInfo->GetColumnInfo()
When connecting using Native Client, preparing and execing a statment with multiple columns in the select list, the GetColumnsInfo() call returns zero for the number of columns. When connecting through normal OLE, it works correctly (returning "2" in this code sample). This program will connect using normal OLE, and succeed, but if the environment variable NATIVE_CLIENT is set to "1", it will connect with Native Client, and f ...Show All
Visual Studio Team System Ensuring that an object passed as a parameter to a method is the same as a direct reference
Hi there, I have written an FxCop rule that checks our code base to ensure that objects that a requested from the framework of our system are correctly released when they are no longer used. My rule uses the BaseControlFlowRule and uses the VisitCall method to capture the objects passed to methods that obtain objects from the framework, it also captures calls that release the object. It tracks the request and releases to ensure that the o ...Show All
Visual C++ Executing an unmanaged exe from memory?
I know it is certainly possible to embed a managed exe as a resource into an executable, and then use Assembly.Load(byte[]) to load it, and then invoke it's EntryPoint to execute it. However, I have yet to find a way to imbed an unmanaged exe as a resource in an executable and invoke it in memory in a similar fashion. Does anyone know if it is possible Thanks. No, that is not directly possible with a ...Show All
Visual C# Controls in diferents forms
hi i have this problem: private void Form5_Load(object sender, System.EventArgs e) { Form1 frm1 = new Form1(); string name = frm1.textBox1.Text; MessageBox..Show(name); } on the Form5 i wrote that code.....ill explain u what the program do: u start in Form1 and when u click in a button it ShowDialog the Form5 and in the Form5_Load it should get the text in the textBox1 of Form1 and MessageBox the text it get. the problem is that ...Show All
Visual C# Which technologies do you recommend for Client/Server Application (3 tier)
I'm going to be building a client/server type of application and would like to use .NET technology - but am a little unsure about the architecture/which technologies to use. Let me describe the application for you: The server side program must be able to parse web pages for certain data and store this data into a website. The server must do this every sunday night at 2am to archive that week's data. From what I understand, I will able ...Show All
Visual Studio 2008 (Pre-release) Device Independent Pixels
Can someone shed some light on "Device Independent Pixels" From http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/wcp_conceptual/html/6ae1063c-3358-44e0-a3a5-ab2be1840dcc.asp "Resolution and device-independent graphics . The "Avalon" graphics system uses device-independent units to enable resolution and device independence. Each device independent pixel is equal to 1/96 th of an inch, regardless of the actual screen resolu ...Show All
Visual C++ VC8, Adding __event to non-CLR code gives error C2712
In a non-CLR class I have a number of __events defined. When compiling the source code in which the corresponding header file has these __events, I receive the error: error C2712: Cannot use __try in functions that require object unwinding pointing to the last of the __event lines in my header file. When I look at the error message it says: "cannot use __try in functions that require object unwinding". Further it is mentioned that "object unwind ...Show All
Visual Studio 2008 (Pre-release) BamlParseException was unhandled
App was running fine under VS.NET 2005 B2. Clean installed VS.NET C# Express 2005 and now get to compile-run my app once, all following runs yield the enclosed error. I'm assuming such fineness has been addressed and I'm posting this for emphasis. - System.Windows.Serialization.BamlParseException was unhandled Message="Error at element 'Setter' in markup file '' : Invalid value '0,1,0,Auto' for property 'Margin'.." Source="Presen ...Show All
SQL Server Changing parameters causes refresh...
Hey Guys, I have two parameters on a report, which are independent of one another, yet when I change one, the current report refreshes, and I'm left with a blank screen. What is causing the refresh behavior on this report It appears as though it is treating them as cascading parameters, but I don’t use one to filter the other. Since the report has default values, when first navigating to the report, it displays just fine. I would like the ...Show All
SQL Server Licensing of launch SQL Server 2005 Standard Edition
Sorry, but I wasn't sure where to ask this.... Microsoft is giving out SQL Server 2005 Standard edition at the launch events. At least they gave a copy out at the Nov 7th San Francisco launch. My question is.... is this just a copy of the software, or is there some form of license that goes with it The software is nice, but I'm trying to figure out if I can legally do anything with it beyond look at it -- thus I'm trying to figure out what type ...Show All
Windows Forms Esc key stroke on a form causes debug assertion failed message
Hi, I am writing a windows forms application in C# in VS.NET2003 and I have this problem: I have an OK and a Cancel button on a modeless form and I have the associated the OKbtn_Click function with the Enter key stroke and the Cancelbtn_Click function with the Esc key. Everything is fine with the OK function, and when I click on the Cancel button, but when I press the esc key, the application passes through the Cancelbtn_Click function , through ...Show All
