Andrew Law's Q&A profile
.NET Development debgugging a .net assembly that's instantiated from VB6
i have a .net assembly that i reference from VB6. The .NET assembly is a class library. How can i debug the .net assembly at runtime from VB6 Any help is appreciated. Thanks. John In order to debug a class library (of any sort) you must have the debugger run an executable. Normally people create little test apps to run their class library through. In your case you should just build your VB6 app. Then go into the project settings fo ...Show All
SQL Server How do I save a Stored Procedure in SSMSE?
Hi, I right-click on Programmability/Stored Procedures and click on New Stored Procedure. After I've created and tested the stored procedure, I try to save it, but SSMES tries to get me to save it as a file in the Projects Folder rather than in the appropriate MDF file, where I assume the existing stored procedures are stored. I've also tried executing the procedure - it executes fine - but it still doesn't appear in the Stored Pro ...Show All
.NET Development How to use Process.OnExited()
I am using processes in my code that I need to generate an event when they are finished. I am assuming it has something to do with the System . Diagnostics . Process.OnExited() method, but the documentation on it is sparse. I use code similar to the following: System . Diagnostics . Process proc = new System . Diagnostics . Process (); proc . EnableRaisingEvents = false; proc . StartInfo . FileName = "H:\pebld\wookie.bat" ; ...Show All
Software Development for Windows Vista Saving data with SqlPersistance
Is there a way to store extra data when doing SqlPersistance For example, I would like to store a cleaner name than the GUID and I would like to store who created the workflow or who has worked on the workflow. Are there any examples of this Thanks, Nichole You can download samples from WF help, if you have installed "Visual StudioR 2005 Extensions for Windows Workflow Foundation" There are a bun ...Show All
Visual Basic entering the time and date on a form
How do I put in the time and date on a form in VB.NET I did what my book has told me but all it shows up as is 01/01/2000 on the date and the time reads 12:01:01 and doesn't change. So how do I make it show the correct time and date There is another part in my book that explains how to put it in the status bar but I don't want to put them in the status bar. Please help me! I'm not sure what your book is telling you to do as you haven't expl ...Show All
.NET Development SOAP exception raw soap dump
Hi, Can anyone tell me where I can find a raw SOAP dump of what a SOAP Exception response looks like. As well for SOAP1.1 as SOAP1.2 thanks. Try this: catch (System.Web.Services.Protocols.SoapException ex) { ex.Detail.FirstChild.InnerXml - contains the xml of the message. If you use WSE3 you can WSE3 settings ->Diagnostics->Enable Message Trace, and you'll get the out put and input of your SOAP messages. ...Show All
Visual Studio 2008 (Pre-release) Is it could be used on Oracle database?
Could I use DLinq on Oracle database Thanks! Currently, DLinq only supports SQL Server (2005 or 2000 to be more specific). But the technology is NOT SQL Server-specific. Given our limited resources, we are looking into various options for supporting other databases including working with ISVs and database vendors. Thanks. Dinesh Kulkarni Program Manager - DLinq http://blogs.msdn.com/Dinesh.Kulkarni/ ...Show All
Windows Forms DataView.Find problem
I am really pulling my hair out with this! I want to find a record in DataTable dtSegDesc based on two fields, Segment_ID and Segment_Value ... private void CheckDescriptions() { //This method is called when a new account is created to see if any ...Show All
Visual Studio Express Editions Communicating to other apps...?
Hello, Is there a way to communicate to other apps It doesn't have to be communicating communicate... What I need is this. I need to fill out a from another app. Then my app has to press enter. Yes, I think it's possible by "Sending" the keys. But the problem is when I try to get the result, let's say trajectory distance, then how am I going to get that It's in the program after you press enter. It displays it for you. H ...Show All
Visual Studio Express Editions serialport component
is there any documentation on how to use the serialport component in visual basic express edition mie wrote: is there any documentation on how to use the serialport component in visual basic express edition Best I've been able to find follows. I do not still have the online URL. Ed Tenholder Documentation guide for Serial Port Class Copyright (c) Micro ...Show All
Visual Studio 2008 (Pre-release) Use of ObjectDataProvider ?
Hi, I want to use the ObjectDataProvider provider in a ListBox. I want to display informations from my C# class in a listbox. <Window x:Class="DataBindingProof.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:m="clr-namespace:DataBindingProof" Title="DataBindingProof" Height="700" Width=&qu ...Show All
Visual FoxPro delete record
this question seems to be ... but I tried many times to do it but I couldn't . I'm using VFP 6.0 . I created a form and take data from mytable . After that I created Del button and wrote a small code in Click event . This is my code : if messagebox("Do you want to del this record ",36,"Notice")=6 delete thisform.refresh and the result is 0 record deleted . I don't know why . Is this related to "primary key" from mytable . If someboby ...Show All
Visual Studio Cookies
Hi, My report needs to retrieve the value stored in a cookie and pass it to the report. All the report is going to do with it is display it as part of the report title. No data manipulation is required. Is there an easy way to do this Do I need to create a data source in order to pass the information over to the report Thx. Create a text parameter in the report. Then pass the value of the cookie to the r ...Show All
Visual Basic Compile a Visual Basic.NET Application for MAC
Hello, I would like to know I can compile a Visual Basic.NET Application in order to use this application in a MAC. What kind of compiler I can use if it's possible. Thanks in advance, Joanna. Please note the the vb compiler for mono currently only works well for windows form's application, they're still working on asp.net. The good news is that they want to 0 errors this week (see http://thespoke.net/blogs/monoman/archive/2005/10/27/ ...Show All
Visual Studio Express Editions Storing Value from SQL Queries
Hi The current project I'm working on involves me to retrive and generate new ID from my SQL tables. I have already worked out an algorithm but is having problem with the implementation. The algorithm involve me to have a custom query to retrieve the highest ID in the table and then storing it as a variable (int) in VB Express. Then using that variable, I can generate new ones by incrementing it. My question is, how do I store data from SQ ...Show All
