SSSchultz's Q&A profile
Windows Forms How to disable select all (corner-button) DataGridView?
When I am inside virtual mode this "button" should be disabled... How can I do it "double click on top left area" leads to select all and therefore load all Thanks Peter Thank You - this helps much! Can I ask you for a recommeded derived class that should be used to use virtual mode as suggested in the documentation i.e. try to use a many unshared rows as possible ... => don't iterate over the rows Regards Peter ...Show All
Software Development for Windows Vista How to Obtain Fault from child activity in FaultHandler?
How does a child activity obtain access to the Fault captured by a FaultHandler I have a code activity as a child of the FaultHandler. I simply want to spit out the message from the exception that was caught. I tried using the Parent property, expecting that to give me back a reference to the containing FaultHandler, but it was null. The only way I can figure is to add a property to the workflow to store the Fault in through a binding so that it is still accessible to the child code activity. This seems like a really kludgy/indirect way of handling things though. Is there some way more direct, for this specific situation, and hopefu ...Show All
Windows Forms Adding Data with ADO.NET 2.0
Hi folks, I just want to add some data to some tables (it is a Access Database), but I don't know how to do it. With Visual Studio 2003 I would know how to do it and know it seams that there is a very big difference between ADO.NET 2 and 1.1. Is there are some samples out there I didn't find it. Thank you very much for any inf ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin I am having the same problem... I even uninstalled it.. and it didnt show a problem then I reinstalled the update and it showed up as a problem in the Windoctor again... any ideas as to what is wrong with this update Im sure its a simpl ...Show All
Visual Basic Questions?
HELLO! I AM NITESH MENON AND I HAVE SOME QUESTIONS. I HAVE BEEN USING VB FOR 3 DAYS AND NEED HELP. QUESTION 1- When using a web browser is there a way to go back to the previous page in VB (like back in internet explorer) QUESTION 2- When using a web browser is there a way to go back to the next page in VB (like forward in internet explorer) QUESTION 3- How can I display another form other than the main one. QUESTION 4- How do I save a configuration so when a user uses the program again he has the same settings. QUESTION 5- How do I make a web browser the default one QUESTION 6- How do I make an option menu. QUESTION 7- How ...Show All
Visual Studio Express Editions Package and Deployment problem
Dear Guys, I am a new VB Programmer. I have developed a saimple database application using some activeX controls. Now I want to distribute my application to some of clients or friends who don't have Visual Basic or other activeX control files are not installed. So I went through Package and Deployment tool and Build a setup file for installation. I am using Windows Xp platform to package the application. Now when I run the setup file on my friends computer on which windows 98 is installed it doesn't. I says "Some of the files on your system are outdated. You need to restart to update the files. Do you want to restart the c ...Show All
Visual Studio Express Editions Creating a task manager application
I'm wanting to create a sort of task manager type application where the software displays the running processes, associated program and the amount of time the program has been running for. I ahve managed to get code working that will retrieve the names of all process being run, however I am not sure how to retrieve the time for the process. The code I'm using for retrieving the process list it: ' Start with an empty ListBox. lstProcessList.Items.Clear() ' Display ProcessName property in the list area. lstProcessList.DisplayMember = "ProcessName" ' Load info on all running processes in the ListBox control. Dim p ...Show All
.NET Development Ink support in VS C# 2005 with Windows XP Professional x64
Is Ink (Tablet PC) supported in Visual Studio C# 2005 under Windows XP Professional x64 A call to new InkEdit or any Ink class causes a Win32 exception. private void InitializeComponent() { this .inkEdit1 = new Microsoft.Ink. InkEdit (); System.ComponentModel.Win32.Exception {"An error occurred when loading the InkEdit control."} {System.Collections.ListDictionaryInternal} ErrorCode: -2147467259 In the project properties -> compile press the advanced compile options. Set the target cpu to x86. There are not any 64 bit version of the ink controls. This forces it to us ...Show All
Visual Studio 2008 (Pre-release) How do I Progmatically Select an Item in a TreeView?
Seems simple, but somehow I got stuck on this one. I've got a TreeView bound to some Hierarchical Data. I want to progmatically set the TreeView to have an item initially selected after I populate the Hierarchical data. SelectedItem and SelectedValue are read only, so that's a no go. I figured I need to get the TreeViewItem hosting my object and set it's IsSelected to true in a SubClass like this: public void SelectFirstNode() { if ( this .Items.Count > 0) { TreeViewItem treeViewItem = GetContainerForItemOverride(Items[0]) as TreeViewItem ; if (treeViewItem != null ) { ...Show All
Visual Basic Finding the internal Event IDs of a COM wrapped Custom Control?
Hi all! I have written a simple COM wrapper for the standard textbox control in .NET 2003 and exported it as a DLL. I have then embeded the component as an ActiveX control into another application (SAP ABAP) but this application (as do others ) requires the event IDs to be registered before they can be captured. The control loads and displays correctly - but just does not trigger any events. My problem is that I do not know how to find internal event ids of the events exposed by my custom DLL Do I have to explicitly declare or create the events to expose them to the calling application If I load the TypeLib file in the OLE/COM ob ...Show All
Visual Studio Team System Setup of AT fails with "Setup did not find VS 2005 TF databases..."
I just performed a new installation - I think I followed the install guide to the letter. But, I'm getting this error when trying to install the Application Tier in a two server configuration. Does anyone have an idea of what would cause this Hi Tim, Here are a few things you could check: 1. Have you completed the data tier setup Did it complete successfully 2. Are you using the correct Datatier name in the app tier setup Is the SQL Server service up and running on your data tier 3. Does the account you are running setup under have access to the data tier Team Foundation setup has lots of different components so it w ...Show All
.NET Development Application level Dataset and the form designer
What is the best way to do an application level dataset that all forms can share and at and not break the form designer Using the DataSource to drag controls on really works nice but the dataset is local to the form. However if you point the dataset of the form to point to a Global/Application dataset the form designer does not work. I have used conditional compilation which seems like work around but you have to add and remove the conditional flag, kind of a pain. private void InitializeComponent() { ... #if Designer &nb ...Show All
SQL Server update first row of a group of record
I have a table as shows here: col1 col2 1 rec1 * 2 rec1 3 rec1 4 rec2 * 5 rec2 6 rec2 and now I need to update the field col1 of the first records with different col2 value. that means I need to update the col1 filed of the * marked record. any suggestion about how to do it with SQL server 2000 thanks a lot. You need a unique column to order by, or this gets really ugly. I will use col1, since it seems unique and an order. If you can use a single column to order by, this is pretty easy: USE tempdb GO CREATE TABLE test ( col1 i ...Show All
SQL Server Could not load file or assembly 'System.Data.SqlServerCe'...
I am trying to use SQL Mobile 2005 with Visual Studio 2005. I have a simple sql mobile db i created and am trying to test connectivity to the DB in a simple app. I added the reference to the SqlServerCE and the verison # that is shown in properties is 3.0.3600.0, but when i look at the physical DLL in explorer (found at C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0) the version # is 3.0.5206.0, so when i compile and run the test, I get : System.IO.FileLoadException: Could not load file or assembly 'System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 ...Show All
SQL Server Replication sample program
Hello i am new to SQL Replication. I have a application in which Publisher node insert/update/delete in a SQL server data base on it's own node. I have 3-4 different nodes which has SQL servers. My reqirement is that when ever i insert/update/delete on the sql server in the publisher node, all the subscriber should insert/update/delete the same data in their respective data base. so in short, all the publishers and subscribers should have same set of data. note that the subscribers are not doing any additional changes in their databases. Also , at some point of time (when there is a fail over in the subscriber database), whi ...Show All
