ChapiNaples's Q&A profile
.NET Development Connection to Sybase
Hi, I'm having problems creating a connection string to connect to a Sybase db. I have tried both of these methods... ODBC: CONN_STRING = "driver=Adaptive Server Anywhere 9.0;server=XXX;Database=XXX;uid=xxx;pwd=xxx" Dim xConn As New odbcConnection(CONN_STRING) xConn.Open() and the error I get is "ERROR [08001] [Sybase][ODBC Driver][Adaptive Server Anywhere]Database server not found" OLEDB CONN_STRING = "driver=Adaptive Server Anywhere 9.0;server=XXX;Database=XXX;uid=xxx;pwd=xxx" Dim xConn As New oledbConnection(CONN_STRING) xConn.Open() error=No error message available, result code: E_FAIL(0x80004005). Q1. Should I be using Oledb or ...Show All
Visual Studio Tools for Office XMLNode, AfterInsert not fired
Hi, I have a vsto 2005 word template project, I added a simple XML Schema to it with Word 2003 Gui in Visual Studio. Then I added some nodes to the document in Visual Studio designer. Visual Studio added some XMLNode internal properties to my document class: public sealed partial class ThisDocument : Microsoft.Office.Tools.Word. Document , Microsoft.VisualStudio.Tools.Applications.Runtime. IStartup { internal Microsoft.Office.Tools. ActionsPane ActionsPane; internal Microsoft.Office.Tools.Word. XMLNode SampleNode; Then I added events handler for the AfterInsert through the Gui and Visual Studio added ...Show All
Visual Basic dll needed
I need a net dll to transform wgs84 geographic coordinates to ED50 UTM coordinates. Any help or direction . I need only this and not a full .dll that load a lot of bytes into memory at runtime and they are costly. With the amount of ram most computers have now, the basic memory needs of a dll is minimal. If you really want to have low memory cost, then make a c or c++ program to do it. ...Show All
Visual Studio Team System Can not run tests on build server
I get this error on the build server: MSBUILD : warning : Failed to instantiate type 'Microsoft.VisualStudio.TestTools.WebStress.WebTestRunConfig, Microsoft.VisualStudio.QualityTools.LoadTest, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a': Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.LoadTest' or one of its dependencies. The system cannot find the file specified. Whats missing /Chris You need to install VS 2005 Testing Tools on the server. That is you need Team Suite, Tester edition, and run the installation on the server. But you only need to select tes ...Show All
Software Development for Windows Vista Custom ActivityValidator crashes VS.NET
Hello, I have Jan CTP and I am building a new activity validator for my custom activity. According to several articles I write the following code: public override ValidationErrorCollection ValidateProperties(ValidationManager manager, object obj) { MyActivity activity = obj as MyActivity; if (activity == null) { throw new InvalidOperationException("the parameter obj is not of type MyActivity"); } ValidationErrorCollection errors = base.Validate(manager, obj); // ... check all parameters return errors; } Whe I build the solution the editor crashes. I have to change the line ValidationErrorCo ...Show All
Windows Forms dataGridView; changes by the end user
I have a dataGridView with many records. How can I change those cell values to red color that has been either added or edited by the end user This is to get the user a summary of changs made to the grid prior to saving the grid. This is when the Value of the cell is null. just add a checker: object cellValue = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value; if(cellValue != null) { _oldValue = cellValue.ToString(); } else { _oldValue = string.empty; } same thing on the other method. ...Show All
Visual Basic $1 Million dollars to whoever can figure this one out....
This problem's stumped me completely...take a look: I defined the following function to create a ComboBox and add it to an arraylist: Public Function addComboBox( ByVal Text As String , ByVal Ops As ArrayList, ByVal parent As Object , ByVal enabled As Boolean , ByVal x As Integer , ByVal y As Integer ) As ComboBox Dim newCbo As New ComboBox newCbo.Text = Text newCbo.AutoSize = True newCbo.Parent = parent newCbo.Left = x newCbo.Top = y newCbo.AutoCompleteMode = AutoCompleteMode.SuggestAppend &nbs ...Show All
Visual Studio GetService gives null for my DTE request
I'm using following code within my Initialize function on my package. DTE dte = GetService(typeof(DTE)) But dte is allways null. What's wrong with my code Also i should note that my package is loaded at startup that is I've used [ProvideAutoLoad(UIContextGuids.NoSolution)] attribute on my package The reason for not being able to retrieve the DTE at this point is that the shell is not fully loaded - it has zombie state. The good thing is that you can get notified when the shell has finished loading. I have added sample code that demonstrates how to set an event listener for shell property changes. In short, you should implemen ...Show All
.NET Development Enterprise Library and BLOB/Image field
Greetings, Firstly let me apologise for cross posting. I am desperate for help. I am using Visual C# 2005 Express and the Enterprise Library for version 2.0 of the .NET framework. I am having tremendous problems trying to store data into an "Image" field in a SQL Server database. I am using the AddInParameter method but can find no way of adding this field type. When I use the DbType.Object type I get an exception thrown as the data I am trying to store is larger than 8000 bytes. Please can someone out there help me Sample code would be an absolute bonus. Thanks in advance and desperation, Robert Lancaster ...Show All
Visual Basic How can I get the text in a particular textbox NOT to clear when I click on the AddNewItem button?
I have a form with a text box for a purchase order number. I want the number the user inputs to stay in the text box when the user clicks on the AddNewItem button on the BindingNavigator. Right now every time I click the button, everything is cleared out to start anew. I would like the user te enter the PO number once and it will stay there as each new item is added until the text is manually cleared. Thanks Store the contents prior of the textbox at the start of the AddnewButton click event and then after you have executed the addnewitem method set the text property of the control.... Example Dim StrContents as string = Textb ...Show All
SQL Server SQL Server Reporting Services - data extension 'XML'
The reports based on XML is perfectly displayed in development Environment. But than uploaded to Server, the following occurs: An error has occurred during report processing. An attempt has been made to use a data extension 'XML' that is not registered for this report server. Help needed, thank you. By default, the RSReportServer.config file of RS 2005 should contain the registration for the Xml data extension in the <Data> section: <Extension Name="XML" Type="Microsoft.ReportingServices.DataExtensions.XmlDPConnection,Microsoft.ReportingServices. ...Show All
SQL Server SQL Server 2000 sign-on to 2005
Good morning, I'm wondering if it's possible to connect to SQL Server 2005 from 2000 I'm having no trouble going from 2005 to 2000 but I can't seem to connect the other way. Any help would be apprciated. Thanks, Yes, it is certainly possible to create a linked server from a 2005 server to a 2000 server. I have one set up on this end, with no problems. What issue are you having -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- <Bill Fuller@discussions.microsoft. ...Show All
Windows Forms Assembly.LoadFrom
Hi, I have a Windows Application. When user clicks some button, I call Dim asmApp As [Assembly] = Nothing asmApp = Assembly.LoadFrom(filePath & ".dll" ) This assembly is output of a "Class Library Project" which contains Forms. After loading the assembly, I create some Forms from this assembly and show them. When an unhandled exception occurs in the loaded assembly's code, the MyApplication_UnhandledException event in the Windows Application is not triggered. I need to catch unhandled exceptions from the loaded assmebly. Any ideas. Thanks. ueo wrote: Hi, I have a Wi ...Show All
Smart Device Development Connection Manager vs RAS for GPRS
All, I'm pretty new to the cf world and have been forced here due to some inadequecies with the Appforge language we were previously using for Handheld App Development. Our group are expert VB6 Developers, Intermediate VB.net developers, and fairly ignorant with the netCF. I'm working in the VS2005 Beta 2 right now trying to rewrite a logistics tracking application. Looked through helpfiles and forums, but haven't found any clear direction yet. Here's what I need: a truly reliable way to maintain a reasonably constant internet connection via a GPRS modem integrated into a Handheld computer (HHP 9500). I've seen information ...Show All
Visual Basic Listview Listitems not drawing their backcolors ??????
Hi, I have filled my listview with items, most of which have different backcolors, now this worked fine with .Net 1.1 with VS 2003 but now I have "upgraded" to VS 2005 and .Net 2.0 they are no longer being drawn with there backcolor at run time (both in debug and release)... However, I have a function that will export any listview into excel and this keeps the column widths, row colours and row fonts all in tact, and low and behold the colours are correct in excel, so why are the colours not being draw on the control Oh, and I have just noticed…. Literally while writing this post, if I resize the window (which forces the l ...Show All
