TylerSchlegel's Q&A profile
.NET Development Automation Error Raised by VB6 App on a .NET component ever since installing .NET 2.0 Framework
I noticed that a VB 6 app is no longer able to properly call a .NET component exposed with a COM interface that was compile via Visual Studio 2005, it raises an Automation error . Setting the application configuration file to point to the .NET framework v2.0.50727 does not help the situation. However, when the .NET component is compiled via Visual Studio 2003 it works provided I have the infamous application configuration for the VB6 app set to: < xml version ="1.0" > <configuration> <startup> <requiredRuntime version="v1.1 ...Show All
Windows Forms Binding to a collection class
I have read Rockford Lhotka's excellent article on binding to obejects - http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnadvnet/html/vbnet02252003.asp But Searching was specifically not supported in the example. Nor is it in the Microsoft IBindingList example. Does anyone know of a sample where searching and sorting are supported I think that you are looking for the&n ...Show All
Smart Device Development FillMethod Problems With SQL Mobile
Hey Everyone, I'm having some major issues with a FillMethod I am using. I have a VB2005 project with a SQL Mobile datasource. I am trying to fill a grid with a list of customers by last name. There is a button on the form for each letter of the alphabet. The click event code is below: ********************************************************************************************* Private Sub btnA_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnA.Click Try Dim CustName As String CustName = "A%" Me .TblCustomersTableAdapter.FillCustomers( Me .WorkOrdersDataSet.tblCustome ...Show All
Visual Basic Xml representation of Typed DataSet.
How can I see the xml representation of myDataSet.xsd file Thanks Of course you can. Visual Studio supports XSD format and there is also a XSD Designer included in Visual Studio. Regards, Vikram ...Show All
.NET Development MSDiscoCodeGenerator Failed?
Suddenly, I'm unable to create web references. I get the following error: The custom tool 'MSDiscoCodeGenerator' failed. Unable to import binding 'MyServiceSoap' from namespace 'http://tempuri.org/'. Both web service and C# winforms client were created in VS.NET 2005. The web service is the default, wizard generated service. Interestingly, I create apps that did hook up to web services nicely earlier and, if I run those apps now, they work fine...until I attempt to refresh the web reference, in which case I get the error above. I'm sure there are a variety of possible reasons this would be occurring, but I'm wondering if anyone has any quick ...Show All
Visual FoxPro MSComctlLib.TreeCtrl.2 BackColor ???
MSComctlLib.TreeCtrl.2 does not have BackColor property. Is it possible to define one (it is of course possible) and actually make it functionable Thanks. DECLARE LONG SendMessage IN User32 LONG nhWnd, INTEGER Msg, LONG wParam, LONG LPARAM SendMessage( THISFORM .TreeView1. HWND , 4381, 0, RGB (255,255,192)) ...Show All
Visual C# VS 2005 RTM crashes A LOT when using refactoring
Hi, Currently I am pretty annoyed... Every second or third time I am using the refactoring-option in the IDE, the IDE crashes. For example, I have a C#-class with some members. I rename one member hit Alt+Shift+F10 and then Enter. After starting the IDE, it works one, two or maybe three times if I am lucky. But then when using it, the IDE will crash. Either a real crash or the Window is just gone as well as the process. REALLY annoying, when it happens 5 times in 7 minutes. The refactoring-module would better have been left out of the product... No problem, I am glad that your problem got resolved. Ju ...Show All
SQL Server SQL 2005 - SAP
Hi I understand that SQL 2005 and SAP are compatible....although SAP have not fully certified the solution.. Does anyone have any further installation guides etc for performing this as we have come across some issues already Jai I am not an expert on SAP performance but on the MS web Site you can find the latest benchmark results. http://www.microsoft.com/sql/prodinfo/compare/benchmarks.mspx Thanks Michelle ...Show All
Windows Forms How to create a popup conatiner control like the vs2005 smart tag window
Hi everyone Does anyone know how to create a popup control that can contain other controls which looks and behaves much like the smart tag window for controls in the vs2005 designer. I found an article on vb accelerator http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/Popup_Windows/article.asp which seems to work quite well. Is there a better way to do this now Any help would be much appreciated. Thanks in advance. Dan Thanks Jessica that works well. So would I be right in thinking that the controls that appear when you hover over an object instance whilst debugging work in a similar w ...Show All
.NET Development Printing/Print Preview Problems
I need to be able to print a report from report server on my own terms, so I have written some code to retrieve the report rendered as EMF and preview it, and then print it. The problem is that the PrintPage event of the printdocument fires too many times and causes an exception in the collection I am using to store the streams that each page is in. When I use an if-conditional to keep the code from executing, I only get the second and third pages and not the first. If I do some fiddling in the debugger I can get it to print the first page if I remove the second and third page from the collection and only let it hit the first. (Does that ...Show All
Visual C++ How to store CObArray object arrays in file (Serialize problem)
i want to store recode in file. It is a simple file-based database, with the records sequentially appended to the end of the previous record. So firstly i made Recde Class , this class object store recode and every recode add in CObArray object arrays .... but problem ocurse when i want store in file bcoz CObArray object arrays not store in file i am using Serialize but get error when stroring in file... CArchive ar(&file, CArchive::store); UpdateData(TRUE); Recode->SetName(m_Name); // Recode of one person Recode->SetValue(m_value); // Recode of one person m_oaPeople.Add(Recode); //Recode store in COb ...Show All
SQL Server Execution of Package failed
I am trying to design package which would copy all tables and stored procedures from one server to another. It used to be simple task in SQL 2000, there was wizard. However the new wizard does not work... I wrote SSIS package, but when I execute I get the following error: "Can not apply value null to property Login..." Any idea It seems to me that this new SQl2005 is not that simple to use like 2000. 2000 was a great product. I am considering to rollback to 2000. Very frustrated with the new one... There should be more to the error message than that. Please can you copy the ...Show All
.NET Development Where do I get an accurate time from to sync two computers?
Hi there, I have an application that I want to sync on two computers down to say 50 milliseconds or so (should be possible even with the terribly inaccurate computer clocks). I tried grabbing the DateTime.Now on one adding a 3 second offset, sending that to the other, both found the difference then of startTime - DateTime.Now and then called Thread.Sleep(diff) to put them to sleep until they "should" have been at the same time. Trouble is the clocks of my two computers are 4 seconds off each other, so the startTime-DateTime.Now gives a wildly different difference and puts that computer to sleep for much longer. I don' ...Show All
Visual C# !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! Eh, the framework is for .NET; there are in my opinion no specific dll's for j#, vb.net, etc... The CLR uses IL, and C#, VB.NET, J#, and all other .NET languages are compiled to Intermediate Language. ...Show All
SQL Server Why do large 'ntext' fields show as pound signs(#)?
The data in the field is ok and can be displayed but in the management studio express tool the field show a bunch of pound signs. ...Show All
