Cos's Q&A profile
Visual Studio Tools for Office VSTO project does not appear in "VSTOprojects" CAS list
Hiya, I am going thru the VSTO articles, trying to build a VSTO app in whidbey. When I run the app, I get an error < error > The current .net security policy does not permit the customization to run. <\ error > So, I follow the advice on how to assign a strongName to the assembly: http://msdn2.microsoft.com/library/0c0116yz(en-us,vs.80).aspx However, when i navigate to the "VSTOProjects" folder, the project that I have created isn't present. (there are other, previous projects though) I can confirm that: 1) I have successfully built the project (as I only get the error atruntime) 2) I am log ...Show All
Smart Device Development Listen to messages sent by OS
Hi, In .NET framework desktop version If I need to filter the events sent by windows to my application's windows, then i can override the WndProc method of the System.Windows.Forms.Form class, Do I have a similar way on compact framwork According to MSDN, CE.NET don't let the programmer override WndProc of the Form class but provides an alternative MessageWindow class. <Quote FromLink= http://samples.gotdotnet.com/quickstart/CompactFramework/doc/messagewindow.aspx > You can receive only the messages that you generate. You cannot use this class to listen for Windows messages. </Quote> I need a point of control ...Show All
Visual Studio Express Editions Uninstalling VS2005 Express editions
How do you remove the Visual Studio 2005 Express editions There are not the beta's, but the final releases. I tried removing them through control panel-add/remove programs, but then I get error reports... for Visual Basic ENU: The windows Installer package c:\apps\visual studio\microsoft visual basic 2005 express edition - enu\vs_setup.msi could not be opened... for Visual J#: setup does start up here, but half way during uninstall I get an error report: Error signature: EventType: visualstudio8setup; P1: 10862; P2: 8.0.50727.42_rtm_x86_ixp; P3: msi; P4: uinst; P5: f; P6: -; P7: -; P8: 1618; P9:-; P10: - it has the following files: SDB149.tm ...Show All
Visual Studio Express Editions Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.
hi , I have a datagirdview control which has datasource as datatable the user can edit, delete or add a row(has just one column) When i click on a cell( but do not edit) and click Close(x) button ... and reopen the form...the application exits givin the message( Operation is not valid because it results in a reentrant call to the SetCurrentCellAddressCore function.) ...Show All
Visual Studio Express Editions Create a new database programatically?
Is it possible to create a new SQL Express database progamatically from VB Express It is easy enough from the IDE, but I want to determine the schema dynamically based on user input. I have not found this discussed in Help or other articles. Can anyone point me in the right direction Thanks, --Mable Couldn't you just send DDL, i.e. Create Table xxxx   ...Show All
Windows Forms ViewState
I have a windows form where I'm trying to use ViewState but it's not working properly. do you have to enable ViewState in a config file or in the properties of the form Any examples would be great. thanks I'm surprised it's working at all. Viewstate is part of ASP.Net, not Windows Forms. ...Show All
Windows Forms Problems with stdole.dll
Hi, I made an application and use the MapPoint ActiveX Control. When I start the app I check for the presence of MapPoint and if it is there it shows a map. This all works fine. But now I tried to deplay the app to a clean machine. XP SP2 / .NET CF 2.0 (downloaded dotnetfx.exe) are on the machine. The app deployed fine on the machin until I added tha ActiveX Control. Now after some installation work it brings a MessageBox: System Update Required Unable to install or run this application This application requires your system to be updated to stdole Version 7.0.3300.0 I tried to include the dll in the project - that does not help. Is there a w ...Show All
Visual Studio Team System Web tests resulting in Internal Server error due to Invalid ViewState
I am seeing an odd problem when testing our web site. I have no problems navigating through our website manually from a web browser and experience no problems when creating a web test that navigates through our web site. But, when I run the web test I created, then I keep getting an "Internal Server Error" on the first server page transfer. When I look at our server logs it indicates that the problem is caused by an invalid ViewState. But, this problem only occurs when playing back (running) one of my web tests. The ViewState appears to be formatted correctly (it can be parsed) but the error message gives no further indic ...Show All
SQL Server .Net CF 2.0 Error , "Can't find PInvoke DLL 'dbnetlib.dll'."
Hi All, I'm developing Pocket Pc application, In that i have set of statement, which establishes connection with sql Server 2000 Database. When ever I try to open SqlConnection, I’m getting error "Can't find PInvoke DLL 'dbnetlib.dll'.". Right now i am working in .Net Compact Framework 2.0 , But previously i worked in .Net CF 1.1 i didn’t face problem while doing that. Can any one help me to solve this issue My code exactly look like : Private SqlCmd As New SqlCommand Private SqlTrans As SqlTransaction Private SqlConn As SqlClient.SqlConnection Private SqlCmdBuilder As SqlCommandB ...Show All
SQL Server Higher Level Edition Error Message
Hello all, I just installed the June CTP Client Tools on a fresh hard drive (no previous CTPs installed). I am trying to run a package that was written in the April CTP and runs successfully on other computers with the June CTP installed. When I run the package, it fails on an 'Execute Package Task', and I get the error message: "The task cannot run on this edition of Integration Services. It requires a higher level edition." I know the package is okay because it runs on other June CTP computers. Did I miss something in my install Any suggestions Thanks for your time, Jessica ...Show All
Windows Forms Treeview AfterSelect does not fire when node deleted in VS2005 Beta2
VS2005 Beta 2.0 C# : Treeview control. If a node has a number of child nodes, one of which is deleted, the parent node of the deleted child automatically becomes the selected node. However, the treeview does not fire the AfterSelect event after it internally selects the parent node. I can probably work round this by performing my own node select in the delete process, or passing on the current node by calling my WUC delegate for the node changed event with the current selected node. It works for me. The following code assumes there is a label called statusLabel on the form, and a contex ...Show All
Visual Basic Changing screen resolution with VB 2005
I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same error. Which is "An invalid parameter was passed in. This can include an invalid flag or combination of flags." I'm trying to use exactly the same parameters, but somewhere in the conversion ...Show All
Visual C# Using fields as parameters in a method
I have a requirement in a project to build a history. No biggie, but there are dozens of bool fields and processing each one is very time consuming. My approach is to add a field name to an arraylist when the property is changed. OnSave() or Dispose() I look into the object and check to see if the field list is empty or not. If not, I process the list looking at each item comparing it to a clone of the original object so that only true changes are written to the child history collection: internal void WriteHistory(){ string changedValue = string.Empty; originalValue=string.Empty; &n ...Show All
Software Development for Windows Vista Designer wish list?
I have been playing around, and making some presentations to some people in our group on WF, and the way that can be used not only for programming purposes, but also for designin and presenting business processes. Here is a couple of questions (should I call it wish-list ) on the designer. If someone in the team could give some feedback on this I would appreciate it: 1. Ability to drag-and-drop "comment" activities (like the 'annotation' shape in Visio) that can be visually associated with an activity, but do not have relevance during runtime. 2. The ability to change the size of the activities in the designer so that the text in t ...Show All
Microsoft ISV Community Center Forums Program code fro sorting coloumns in a listbox VB Excel
Hi I have in my UserForm a listbox, where I capture the A2:G10 in Spreadsheet1 And my problem is that I want to manage to click on the column header (in the listbox of the userform) to sort the coloumns. I hope that someone pls can help me sort this out! tullaolsen;) Hi tullaolsen, I don't think you'll be able to do it. The reason why is there isn't a OnColumn_Click event for a list box. There's only a click and that will be raised even when the user selects the items in the list, unfortunately it isn't raised when the column is clicked. The only way I can see to do this is to have a item in the list that alway ...Show All
