Harald Kjersen's Q&A profile
Windows Forms Setting DatagridView column type as Combo after databind
Hi, We’re using a datagridview in our winforms prj .. Problem is this .. We have a grid say with 10 columns .. 3 columns are combo’s. ways to go about it are .. 1. set the column heading and column type at design time .. retrieve the records then databind. But in this case .. a new set of columns will be created. In this scenario, is there a way where I can set the column type of the datagrid view to a datagridviewcombobox column after I do the databind 2. Have a blank Gridview.Retrieve the records and bind the table to the gridview. Here again I face the same problem. In this scenario, is there a way where I can set t ...Show All
.NET Development ADODB.DLL Command Output Parameters
Hi, Having probs with ADODB.DLL (C:\Program Files\Microsoft.NET\Primary Interop Assemblies\adodb.dll) Here's one issues I'm seeing with the following VB code if you use CreateObject calls it works and I get a return parameter back. If you use the ADODB.dll (Replace the createobject lines with the commented out Dim x As New ADODB.xxx) then I can't get back output params. NOTE: To replicate this create a console app, replace module1 with following and add a reference to adodb.dll. Then Make a DB add the sproc below and put your DB and user in the connect string. Thanks in advance for any help. Is anyone actually using ADOD ...Show All
Visual Basic Access Form in Code from a User Control
I have created a UserControl1 that inherits from the Visual Basic.Net 2005 TextBox Control. A Windows Application Project is then created (named WindowsApplication1) and the UserControl1 is dragged onto Form1 of WindowsApplication1. Question: In the code of User Control how is Form1 accessed In particular, it is desired to place some graphics on Form1 from code in UserControl1. Thanks for any response... Forgive me if I am telling you something that you already know, but I believe that the proper technique is to access UserControl1 from Form1, instead of the other way around as you are sug ...Show All
Visual Studio Team System Testing for Exceptions in Unit Tests
I can't figure out how to test for an exception in a unit test. Is there an Assert. comand or something else to test for an expected exception Thanks! Cindy Hello, I just saw this as well. Dhopton, you are correct in stating that you shouldn't throw a generic exception. But I think a lot of folks think that if you give throw with a new message string in the exception, that will make the exception different enough. So, did this feature get into the final release It doesn't look like it. I am useing the VS demo build, 50727.42 and I am seeing the same error message from the unit test, " has ...Show All
Visual Studio 2008 (Pre-release) WPF calling WCF with Partial Trust (Internet)
Well, conform early comments, such http://www.douglasp.com/blog/PermaLink.aspx guid=12a6b6d1-fc37-484b-b52e-92051a309b89 I used basicHttpBinding, created a proxy using WSDL.exe tool and WPF continues throw an exception when I try to access WCF WebServices: SecurityException: Request for the permission of type 'System.Net.WebPermission The same code on an ASP.NET web site calling WCF works properly. How I proceed Thanks I tried, but WebPermission doesn't work with Partial Trust (internet); occurs a deployment error. I don't want a installable application. Thanks, Vitor. ...Show All
SQL Server Linked Server and Distributed Query
I have a linked SQL Server on another machine which is created using a stored procedure that executes the following: EXEC sp_addlinkedserver @server = 'Achilles\Mixed' , @srvproduct = ' ' , @provider = 'SQLNCLI' , @datasrc = 'Archilles\Mixed', @catalog = 'DB_INTRANET' The stored procedure executes successfully and I can also succesfully DROP the linked server. H owever when I try to query tables in linked databases using: SELECT * FROM DB_INTRANET ... Employees I get the following error: OLE DB provider "SQLNCLI" for linked server "DB_Intranet" returned message "Comm ...Show All
SQL Server Unable to read local eventlog (the parameter is incorrect)
In trying to setup alerts and activating them, an error occurs in the sql agent log of Unable to read local eventlog (the parameter is incorrect) The full messages from the Windows NT Logs shows: Event Type: Error Event Source: SQLSERVERAGENT Event Category: Alert Engine Event ID: 318 Date: 03.11.2005 Time: 17:14:47 User: N/A Computer: RESYSHADOW Description: Unable to read local eventlog (reason: The parameter is incorrect) Does anyone know what could be causing this. I have tried it on Windows XP SP2 with local Admin account and on Windows Server 2003 with Domain Ad ...Show All
SQL Server Upgrade to Advanced Services; full-text indexing not working
I upgraded to Sql Server Express 2005 w/Advanced Services, chose to install full-text indexing, rebooted, but appear to be unable to set up full-text indexing for a column. After attaching the old mdf file and opening any table in either Management Studio Express or Visual C# Express, I don't get anything but a disabled (Is Full-text Indexed) property for the fields I want to set up. I have verified that FullText Search service is running, and have tried restarting the service. I have also checked that full-text indexing is enabled on the database. I just feel like I am missing some simple step. Any info would ...Show All
Visual Studio Team System none of the reports working in new server
Hi there, i have Installed VSTS in new server following all the installation instructions. There are 2 team projects that I have created. For one of the Team Projects, there are lots of bugs that has been opened. None of the reports are working for any project. The event log is full of the below log entries. Please let me know how do i fix this. in other server at least some of the reports used to work. Thanks, Anu Event Type: Information Event Source: ASP.NET 2.0.50215.0 Event Category: Web Event Event ID: 1309 Date: 8/31/2005 Time: 4:05:52 PM User: N/A Computer:& ...Show All
Visual Studio Tools for Office Visio Enterprise 2000
Visio experts out there, I have an abstract base class and an implemented derived class. How do make the a virtual method in the abstract class appears in the implemented class I have tried the generalization as well as the realization link but when I viewed the code, I can't see the method in the derived class. public abstract baseclass { public virtual bool Query(string A, string B) } public class derived class : baseclass { override public bool Query(string A, string B, string C) } For Visio develpement related issues, please post your question on the Visio Develo ...Show All
Windows Forms Still no luck
My application works fine on my development machines which already have the Framework installed, but trusting the prequestite feature to install the framework or Windows Installer on machines which need the pre-req. install fails. The browser reports CGI Error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: (...with no more info...) I've had no look in searching the solution that applies to my situation. A feature of possible interest is that each time I publish a new version of the application the host server reports an unhandled exception. System.Argument ...Show All
.NET Development send byte[] and recive byte[] System.IO;
ok,, i have the next problem... i am creating a client server program ,,, i allready know how to send text trough tcp with a networkstream.. then a streamreader and a streamwriter... it works good with text... but the problem is when i try to send a byte [] ,,, i have a image and i use a memorystream to convert it to a byte [] and i want to create the image in the server when i got he image,, i allready know how to do that... what i dont know to do,, is how can i send a byte [] im trying to send the image this way,, when i allready have the byte [] i do this: //here i call a function that returns me a byte[] of the image byte[] con ...Show All
Visual Studio 2008 (Pre-release) could not find svcutil.exe in September CTP
I installed September CTP but could not find svcutil.exe or svcconfig.exe. Have their names changed What are the utils using to generate client proxy Plus, which directory is WCF installed under in September CTP Thanks. hyan I have installed the Windows SDK (may 29, 2006) but could not find this utility. I could not find WinFX SDK could you help me to provide me the correct link. Regards Andy Tan ...Show All
Visual Studio IDE facility to suppress some debug notification messages missing in B2?
I felt sure that B1 had options to suppress some of the notification messages (such as loading DLLs, thread exit status, etc) that you often see in the Output pane when debugging. I can't find these options in B2. Did they ever exist (do they now ) or have I imagined them We moved these options to a different location. In Beta 1, they were in Tools->Options->Debugging->General. In B2, we moved these to the context menu of the Output window. In order to suppress any of these messages, right-click the Output window and uncheck any of the options. The main reason for moving these options was to i) red ...Show All
Windows Forms coloring row in datagrid
how do i color the whole row of a datagrid in windows form. i have seen in net, i didnot get any help. if some one could help me ..pls.. Please reserve this forum for C# related questions. Questions related to Windows Forms are better suited for the Windows Forms forum. You should get a faster, more accurate answer from the folks over there. I'm moving the thread to that forum. Thanks. Michael Taylor - 5/22/06 ...Show All
