johnko's Q&A profile
Windows Forms Added unbound grid rows are blank
Added unbound grid rows are blank I have a master-child relationship. The master are unbound controls, and the two children are grids. The column names and types I created in the columncollection. When I save the master, values automatically go into the grid columns and saved. They appear in the grid and are updated correctly to the database. If I add another row, it's values appear in the second row. However, the first row ...Show All
.NET Development Help getting started on serial comms
Hello All I need help in starting to experiment with serial port comms. I have a device ( a gas analyser ) that I would like to read the output from via the serial port. I dont know what data it sends so my attempts to read text and byte data have not been succesfull. It has a row of LEDs showing ppm ( part per million) . What I would like to do is emulate those LEDs on the PC monitor. Where do I start Thanks ...Show All
.NET Development Diff Bet VS .net and VS
Hello I have read many documentation, but cannot really get this figured. In the old world(with out the .NET) a visual basic program in VStudio created .exe, which could be executed in Windows. In the .NET world, using the VB .NET the documentation says that it would create a (Intermediatary Language) IL. This then becomes native language and then native language gets executed on the CRL. Can some explain what this is all about, ...Show All
SQL Server T Cannot connect to MSSAS 2005 Standard on local machine
I have installed SQL2005 completely, including Service Pack 1. Using Mgt Studio, I can connect to the relational db. I am not able to connect to analysis services though! The error message I receive is :"A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.AdomdClient". The additional information says: "Unable to read data from the transport connection: An existing connection was forcibly clo ...Show All
Visual Studio ActiveX print control will not install from ReportViewer in web app
We've created a web app that includes a ReportViewer control. The reports are generated fine, but when the print button is clicked, we get the following error: "Unable to load client print control". It works fine if I manually install the ActiveX control, but from what I've read, the first time you click on the print button it is supposed to install the ActiveX control. I've double-checked the browser settings so they're ok. Also, the ...Show All
Visual Studio Team System Unexpected Exception from the Server
I'm getting this message (Unexpected Exception from the Server) when I try to import a modified version of a workitem using witimport.exe. It was working well, but I made some modifications (changed a state) and then came this message. This is what I got from event viewer: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technic ...Show All
.NET Development Missing MSVCR80D.DLL needed to run a.NET application?
I have developed a .NET application using Visual C++ .NET 2005 Express Edition. I have several users doing Beta testing for me. I included the latest dotnetfx.exe redistributable runtime on my distribution CD-ROM and instructed my testers to install it first, before attempting to run the app. One user, on Windows XP Home, SP2, says that even after installing the .NET Framework 2.0 from dotnetfx.exe, the application fails to launch with the ...Show All
Windows Forms TreeView Drag N Drop
Hi, I’m looking for a way to drag a node from a tree view and drop it anywhere in the screen to remove the dragged node from the tree view. I hope I don’t have to handle DragEnter and DragDrop on every control in my form. The user could also be dropping the node on his desktop. My other option would be to create a “Delete Selected Node” button but I rather have it with the drag n drop. Any idea The following code is used for dragging and ...Show All
Visual C++ increment in C++
#include<iostream.h> void main(){ int a=5; cout<<++a<<a; cout<<"\n"; cout<<a; cout<<"\n"; } the above code generates the following output: 65 6 but as per me the output should be as follows: 66 6 why does the incement doen't show up the second time In C++ the order of evaluation of sub-expressions like in your code above is implementation de ...Show All
.NET Development License of the code that disassembled from .Net framework?
Hi all, After disassembling the code of .Net framework using Reflector , I found out some useful classes that I want to use in my own project. Because most of those classes are "Internal" or "Sealed" that I can't inherite directly. So, may I do that Do I break some laws Or what should I do After that I can put those source code in my application. Thank you very much. Regards, Bill ...Show All
Visual Studio Tools for Office A very technical (I think) VSTO startup question
What is different on a system before VSTO customized document is loaded and after Let me explain. We've got a Word customization that takes 58 seconds to load the first time after a reboot, but only 18 seconds thereafter. Our customization is installed in the GAC, is NGEN'd, and rather large. We have a shimmed managed Word addin that starts .NET CLR with the STARTUP_LOADER_OPTIMIZATION_MULTI_DOMAIN flag so that multiple documents don't requ ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- ...Show All
SQL Server DISTINCT Conflicting with my query
I need p.phonenumber in there but then it messes up my DISTINCT ON m.number because I end up with dup m.numbers if I run just the inner select statement during testing. But then I need the phonenumber in that subquery so that I can do list.phonenumber ahh! UPDATE Master SET master . homephone = list . phonenumber FROM MASTER m INNER JOIN ( SELECT DISTINCT p . nu ...Show All
Visual Studio Tools for Office Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Runtime'
When I try to run an Office 2003 add-in from Visual Studio.NET 2005, I get this error. I've verified that a reference exists to this DLL and that the DLL file does exist. Any suggestions The "GenerateAndPersistAppInfoTask" task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' o ...Show All
SQL Server SSIS/SQL 2005 x64 making connection to SQL 2000 errors out
I have a few SSIS packages on a box with Win2K3(64 bit) (x64) running SQL2005 (64). The packages pull data from other servers that are 32 bit (running SQL 2000 32 bit). Every one of those fails with the following error when executed. When I run the statements from the SQL management studio as a distributed query (not within a package), then they successfully pull the data and put it into my destination tables. I have tried 2 ways: ...Show All
