Eric Litovsky's Q&A profile
Visual Studio Cannot debug a form method called from a thread
hi folks, i'm trying to break and step through a method in the main Form of a c# program. it is called by a thread created by the same form. it breakpoints fine but the cursor is dead for something like 5 to 8 seconds. after that, if i attempt to view and local variable data, it says "evaluation timed out. you must continue execution" or something close. the real problem is that when i hit F10 to step, the calling thread behaves as if terminated (i have no code that specifically aborts it); poof it seems to be gone. i could'nt swear to it but with vs2005 beta2, i had no problems; i'm now using the RC. one other thing i should mention is that ...Show All
Windows Forms Microsoft Agent in WinForm
Hi. I want to use MSAgent in my Windows Form Application, Would anyone help me Here is a little resource list: MSAGENT In C#-Part1 [Text To Speech (TTS)] Using MS Agent in C#: Part 3 Working With Speech Using the MSAgent in C# ...Show All
SQL Server Value method of xml data type not deterministic, xml column not accessible in 'deleted' table
I am presently taking my first, tremling and insecure steps in Sql Server as a whole - specifically Sql Server 2005. I am involved in a proposal for a huge data convserion project (banking) here in Denmark and presently trying to present small mockups to illustrate the potential of XML in general and specifically promote Sql Server 2005. I have studied tons of documents on msdn including 'XML best practices ...' and found them very helpful. Stumbling along I have come to a complete stop ion the following 2 issues: -------------------------- Issue 1. I the mockup I am doing now, I have cloned the scenario for promoting an xml property to a co ...Show All
Visual C# BSTR type in vc#
I received a DLL which uses BSTR as string type: example : given in the include file DLLEXPORT BSTR WINAPI I2cGetInterfaceTypeStr (BSTR Interface); how do i access this function in vc#. This doesn't work. [DllImport("I2CAPI32.dll")] public static extern string I2cGetInterfaceTypeStr ( string Interface); Other functions of the DLL which don't use BSTR are working ok. Can anyone help me. Thanks, Jan Hello Kenny The VC++ example was included with the DLL. and to summarize. [DllImport("I2CAPI32.dll", CharSet=CharSet.Ansi)] works [DllImport("I2CAPI32.dll", CharSet=CharSet.Unicode)] doesn't ...Show All
Visual C++ Header file Hell
Alright, I was on of the lucky few that couldn't get windows.h at all. So downloaded the img and then copied the files over completly. Now when compling my project I get the following mess: c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include\WinNT.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' Needless to this error comes up at least a few more times as PVOID get references through the WinNT.h file. I'm not really worried about why the file is being included at this point. I just want to know how to fix it. The line it references in the header is this: typedef ...Show All
Windows Forms Another newbie question
Hi, I have a treeview control and when user select a supplier or order from treeview, application will display supplier or order details depending upon user selection. My question is that is it better to open a new form or use panels to display supplier or order info Thanks Well... better... that's more of a design issue. Most of the GUI designs will indeed use use a vertical splitcontainer, with the treeview on the left panel (docked to full) and the data (textboxes, comboboxes, textboxes etc.) on the right panel. Instead of using a panel with dedicated controls on the right panel, you may also want to ...Show All
Windows Forms Double Click between Datagrid Columns to Expand Column
How does the datagrid know to expand the width of the column to the length of the content (text) in the column. I would like to programmatically mimic this behavior. My app allows the user to select the column that they would like to see and save the names of the columns as a custom view. I use the column list to hide a ...Show All
Visual Studio Tools for Office Combobox into perticular cell
Hi, I am using following code to bind the ListObject: DataSet dsTrims = new DataSet (); string strWhere="select col1, col2, col3, col4 from tableTrims"; dsTrims = MyProvider .ExecuteDataSet(System.Data. CommandType .Text, strWhere); this .bindingdataSource1.DataSource = dsTrims.Tables[0]; myListObject.AutoSetDataBoundColumnHeaders = true; myListObject.SetDataBinding(bindingdataSource1); Now as per my requirement l want that all cells corresponding to "col3" column i.e. all the cells below to the col3 that has all data for col3 should be appeared as/in combobox/dropdownlist. And com ...Show All
Visual Basic Migrating from Ms Access to SQL Server 2000
Hi, Is there many changes need t o be done in order to change my DBMS. Currently, i'm using Microsoft Access in my VB.net program. however, i need to change the DBMS to SQL Server. So what should i do can i still use back the same coding what namespace should i include Hi there, Firstly, I would consider using the Access Upsizing Wizard to migrate your database from MS Access to SQL Server if you have not done so already. If you've migrated via a different means, then a good start would be having the database schemas for the two databases almost identical (you won't get an exact match because SQL Server 2000 has a couple of differe ...Show All
SQL Server same visual studio standard 2005 product key from the "ready to launch" dvd set
Hi, I attended the Technet Ready to Launch event and obtained the dvd set, but when I tried to install the sql product, the software won't take the product key (the key is the same as the studio product). Anyone experience the same Peter, We've had some other reports of similar challenges from other customers. The team is looking into this more deeply and we should have an answer soon. Thanks< MJ ...Show All
Visual Basic VB Dummy
I have inherited a vacation request form. In the start and stop dates there is a macro. Right now when somebody tabs onto the start or stop date a calendar comes up for the year 2000. You can change it and select any other date you wish but I would like the calendar to pop up with the current date. I am enclosing the macro below. Is there any entry I can insert or deltete to make this happen Thank you for any assistance with this. Option Explicit Public sDate As String 'used to write value from calendar form to form field Public fFlag As Boolean 'did they c ...Show All
Visual Studio Express Editions how to add flash content
hi can anybody tell me how to add a flash content to a visualbasic form If you have installed a Shockewave plug-in or the Flash Player then you should have the Shockwave Flash ActiveX control installed on your machine. Add it to your Toolbox then add an instance to your form. Voila. ...Show All
Windows Forms Porting ActiveX Event interfaces into C# Controls
I am working with the Profibus Guideling: FDT interface Specification. This spec. defines several COM interfaces, some of which are event interfaces. I would like to implement these interfaces using C# and decorating the C# interfaces with the appropriate COM attributes so when I register the assembly using Regasm a COM client make instantiate my assembly as the&nbs ...Show All
Windows Forms Regional settings and date conversion
This can't be right but apparently is: I'm writing an application that needs to convert a string to a date. Sounds simple, right My system's Regional settings are set to English Canada. The short date format is dd/mm/yyyy. VB.Net is returning dates in the format mm/dd/yyyy (US English). This code fails every time: Personal.EffectiveDate = GridRow2.Cells("New Value").Value.ToString.Trim Error: Cast from string "8/23/2005" to type 'Date' is not valid. If my regional settings are set to English Canada, and regional settings says the short date is in the format 'dd/mm/yyyy' then why is VB.Net returning dates in the wrong ...Show All
Visual Studio problem deploying a new project type
I've created a new project type for the Pascal language. I have deployed and registered the VSPackage in the target computer, along with the project files, but, when trying to create a new Pascal project, I get the following error in a popup dialog: value cannot be null parameter name: type In my development machine, which contains VS SDK, the error doesn't occur... Can anyone help me please Thanks, -- AFurtado Do you have a PLK A PLK is required to load on machines that dont have the SDK, as in a real deployment scenario. This is covered in the SDK docs. ...Show All
