Tobias Boehler's Q&A profile
Visual Studio Express Editions Database problems: Save data, Change table definition
Although a problem was recognized months ago regarding saving data, I'm disappointed that the Start Page "How Do I... (Database updating) still has a serious error and several suggestions are still floating around to resolve. Forum messages show this is causing a great loss of productivity with programmers and companies. See below for another problem. My past experience is with VBA and 2003 Net, using Excel as a database. Basics: 1. There are two separate items utilized by computer applications: -Definitions (object names, properties, methods etc.) -Data (actual information entered by user in various ways) 2. There are two per ...Show All
Visual Studio 2008 (Pre-release) COM interop and WPF?
I tried to use the SolidColorBrush class from COM as a test of some interop code I am working on. I was able to create an instance, but it only supported IUnknown not IDispatch, while a class I wrote myself does support IDispatch. The defailt for ComVisible is True, and the documentation shows no change in this for the whole hierarchy of this class. Is there something I am missing on this Would you expect to be able to get an IDispatch for an instance of SolidColorBrush Using WPF from COM isn't a scenario we've tried to enable (or plan to); as far as I know we don't have any code that tries to either enable or disable it. I'm ...Show All
Windows Forms Seelcting more than one row in a DataGrid
Hi We should be able to select more than one row in a datagrid and then ask the user for confirmation on if they want to delete these rows. Is there any sample code which does this or can any one give me pointers on how to do this Thxs, MGal. BTW this is for .net framework v1.1. We do not have the option of going to 2.0 right now. Thxs, Mgal. ...Show All
Windows Forms Treeview Bug
It is not possible to make a single node bold without the end of the node text being clipped. The work around this problem, I tried setting all nodes to bold and then setting all but one to regular. The problem now is that the selection box when selecting a non-bold node is too big! This is quite a major problem as it means . ...Show All
Visual C# Nice Threads!
I could really use some help here... I am using C# 2005 and have created a splash screen that runs on a seperate thread. I can invoke the splash screen in the Main() method, but then I can't get rid of it! I am attempting to put a line in the Form1_Load (or maybe Form1_Shown) that calls a static method in the splash screen to close that form. But, when I do so, it complains about an invalid cross-thread operation. How can I get this screen to close Here are the relevant parts to my splash screen: // Static Public Method to launch Splash Screen static public void ShowSplash() { if (ms_frmSplash != null) return; ms_Thread = new Thread ...Show All
SQL Server Like parameters
The following query is from the SQL 2005 documentation: SELECT ProductNumber , wholesalePrice , Vendors . VendorID , VendName FROM Product_Vendors JOIN Vendors ON ( Product_Vendors . VendorID = Vendors . VendorID ) WHERE WholesalePrice > $100 AND VendName LIKE N 'L%' GO Can anyone enlighten me on the N in front of the 'L%' TIA nickedw "N" stands for "National", and indicates that the string is a Unicode literal. -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- &l ...Show All
Visual Studio VS 2k5 Cleanup Errors
Hi, How can I remove the some VS tools from the Add/Remove window without the change/remove buttons . Any ideas please I have used all the available cleanup tools but I cannot seem to get rid of these tools. I have also removed the entries in the registry related to some of these tools. I cannot install SQL Server Express because of these uninstalled tools. I get error 1305 when I try installing the SQL Server express, even when running the computer in safe mode. Thanks try this: Run msiinv.exe. You can get a copy from the link below or the windows sdk: https://blogs.msdn.com/quanto/archi ...Show All
Windows Forms .net Remoting events.
Hi all, When using .net remoting, is it possible for .net remoting clients to listen for events that occur on the .net remoting server side, for example a DataTable defined at the server side, is it possible for the clients connected to the server to listen for ColumnChanged event of the server DataTable. Many Thanks Hi KraGiE, I need to develo ...Show All
Windows Forms The Treeview Drag&Drop AND using custom TreeNode !
Here is the code that I use to carry out a drag & drop on my TreeView, it goes very well ! but when I use my own custom TreeNode (named : 'UsrTreeNode' and have some properties added) instead of the original 'System.Windows.Forms.TreeNode' , the drag & drop do not have any effect. I tried doing something like : 1) My own custom Tree ...Show All
Visual Basic TcpListener Object
I am writing an application that uses the TcpListener object from the System.Net.Sockets namespace and had no trouble in .NET 1.1, but am getting a message now complaining that my constructor has been depreciated. Here's a code snippet: Try m_Listener = New TcpListener(5000) m_Listener.Start() Do Dim x As New Cli ...Show All
Visual C# Looking for the equivalent of C++ MyClass::MyMethod ?
Hi, Here is my problem: I've 3 classes using this hierarchy: ClassA <= ClassB <= ClassC ClassB has a method T which is overriden by the ClassC . With a ClassC object : I need, from the ClassB , to call the method implemented in ClassB and not the one implemented in ClassC . Actually, if I wrote, from ClassB : this.T( ) then the implementation of ClassC is called because of the virtual / override mechanism. If I call base.T( ) it try to call T( ) from ClassA . So, how can I call the ClassB's T method In C++ we can write ClassB::T( ) ... so perhaps there is an equivalent in C# Thanks in advance, Nicolas M. ...Show All
Windows Forms Shell Extension Context Menu in C# strange error.
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer. Here is the problem. If i select one file and use the standard OPEN context menu all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code for MY created menu. Here is the code in question: int IContextMenu.QueryContextMenu(uint hmenu,uint iMenu, int idCmdFirst,int idCmdLast,uint uFlags) { // The first id to use (should be 1) int id = 1; if ((uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0) { // Create a new Menu Item to add to ...Show All
Visual Studio Express Editions Any way to simulate a key being pressed?
I'm wondering if there is a way to simulate a key being pressed, such as ENTER. I need to do this without targetting a specific window, just simulate as if somebody hit enter on the keyboard. I cannot target the window (or more like I don't know how) because I'm not creating the window. It's a print dialog that is created by the FaxServer object. Any ideas I know that simulating enter would certainly not be the best answer (without targetting), because any number of things could happen to screw it up, but it's my last resort. Thanks. What about SendKeys.Send( "{ENTER}" ) ...Show All
Visual Studio Team System Unshelving error
When I try to unshelve one of my shelvesets I get: "Error - No changes unshelved." Any ideas what might cause this First, if I wanted to update my older unshelved file set with what is currently checked into the repository without having to check the files in, how do I do that from VS >> Unshelve your changes, do a get (this will cause a merge), then reshelve your changes. From the pending checkins tool window (which is my current homebase for VCS) I didn't see a way to do that. I had to go to source control explorer to undo pending changes. It might be nice to be able to do that fr ...Show All
SQL Server Installing SQL 2005 Express via InstallShield
Is it possible to install SQL2005 Express via InstallShield Has anyone had any experience doing this Any suggestions or recommendations Thanks have a look at the following MSDN Article it might help.. Embedding SQL Server Express into Custom Applications ...Show All
