Dillon's Q&A profile
Windows Forms ContextMenu problem...
How can I obtain the Parent of a ContextMenu I succesfully patched the problem in an "unelegant" manner (Added a Parent Property to my class and I've assigned it after the InitializeComponent...) that works... but sucks!!! Thank you! What do you mean by Parent A ContextMenu control does not belong to any particular control. ...Show All
Windows Forms Any build-in feature to memorize datagridview setting?
My winform application has a datagridview which let users to set columns' width and height freely. Is there any build-in functionality to store the setting of the datagridview(such as column's width, row's height .etc) so that the users don't need to set them everytime the application is started Thanks. Hello. There isn't anything built-in but I don't think this would be very difficult to create. You would realy just need to persist the DisplayIndex, Width, and Height of each column into something like an XML file in IsolatedStorage (so that it is per-user rather than per machine). There is a good example of this here ...Show All
Visual Studio Customizing Solution explorer context menu on web projects
What is the group id for web project context menu I want to add a command in the same group as "Add Reference..." and "Add Web Reference..." but it doesn't show up when I right-click on a web project in solution explorer. My ctc command placement is: guidSHLMainMenu:IDG_VS_CTXT_PROJECT_ADD Putting the command in this group allows it to show up in Solution Explorer and Class View project and Class View Project References context menu. However, it doesn't show up in the Solution Explorer for web projects. Am I missing something Currently the VS SDK is missing the information you need. Sorry .... The context menu for the ...Show All
.NET Development Access, ADO.NET, Memory?
I have a quick question. I have a VS2005 application which uses an Access database. The application and ADO.Net do all the work that most people would use a database engine to do. My question is about memory utilization. Suppose I had table A. It simply has pointers or references to a table of large documents stored as OLE Data objects. When JET/ADO.NET bring that table into memory does it bring the entirety of that table into memory If there are 50 MB of documents does bringing the table in to retrieve Document1 bring everything that the database has in that table with it In other words is that going to allocate 50 MB of memory ...Show All
Smart Device Development Create a Database in vs2003.net for smartphone ?
I'm fresh ,I want to create a database project ,including copy, create etc,but I didn't know how to create it ,anyone who know it can give me an example about creating a database using vc++,your kind help will be appreciated! Hi, You can use the CEDB class to create,copy and delete database. I hope the following links will help you. http://www.developer.com/net/cplus/article.php/3327171 ...Show All
Visual Studio Hiding the Navigation Bars
Hello all, I've implemented a language service using the core editor. In my LS I have added the support needed for the editor nagivation bars. The only problem I have is that when disabling the nagivation bars from the Tools > Options dialog, for my editor, they do not dissappear. Even when I restart Visual Studio .NET there are still there, even though the 'Navigation bar' is unchecked in my editor options. When implementing a language service, I do not override the default implementation of LanguageService.CreateCodeWindowManger or LanguageService.GetCodeWindowManager, so I was expecting removal of the navigation bar adornments to be ha ...Show All
Windows Forms Deploy chm file with click-once
I'd like to include a chm file with the application that I am deploying, but no matter what subdirectory of the project I put it in I can't seem to get the file to be included in the deployment. The help file does work correctly from my application on the development machine where I have it located in the project bin directory. Right now, my deployment is just to a directory from which I burn a CD. Thanks, jerryK Have you changed the BuildAction property of the file to "Content" I think that's about all I did to get it to work. ...Show All
Visual Studio 2008 (Pre-release) Lambdas in Custom Attributes
I want to pursue the concept of embedding lamdbas in custom attributes. It is not supported today to my knowledge but I believe could be very valuable for DLINQ and more. public class Customer { [Association((c, o) => c.CustomerID == o.CustomerID && o.Status == OrderStatus.Incomplete)] public Order[] IncompleteOrders; } I believe that a syntax such as this would generalize the join conditions that are supported by AssociationAttribute and allow for additional conditions. In that way, queries need not repeat those conditions. Note that regardless of whether DLINQ adopts this, there is a deeper is ...Show All
Visual FoxPro can i just use sql to get this?
date transfer 20050101 200.00 20050103 -100.00 20050530 95.30 ... SQL to get: date transfer balance 20050101 200.00 200.00 20050103 -100.00 100.00 20050530 95.30 195.30 Wrong. See my previous reply. It might work but open to errors ( ...Show All
Visual Studio Tools for Office VS2005 Beta 2 and German Excel 2003 SP1 not working ?
Hi, I've installed VS 2005 Beta2 and tried to create an Excel Workbook Project. Messagebox: --------------------------- Microsoft Visual Studio --------------------------- Microsoft Office Excel 2003 SP1 or newer is not installed on this computer. You must install a version of Microsoft Office Excel 2003 that supports Microsoft Visual Studio Tools for the Microsoft Office System projects. --------------------------- OK Hilfe --------------------------- Installed is Excel 2003 (11.6355.6408) SP1 in German (newest Version with all available Updates). What am I missing Thanks Holger Int ...Show All
Visual Studio Express Editions Uninstalling Beta 2
Hi all, I'm having trouble getting Visual Web Developer Express 2005 installed because I'm having problems uninstalling Visual Web Developer Express and SQL Server Express (both Beta 2). I can't install the full new version until I get these off my computer. I try uninstalling it by going to the Add/Remove programs in the CP, but always get a message when I try and remove SQL Express or VWD Express that says that "Setup Failed." I then click on the help button thats available and it says that the file 'setup.rll' is what is generating the message. Also the event type listed: 'sharedsetup\sharedsetupactions.cpp' I'm figuring restoring VWD ...Show All
.NET Development WSE 3 Access Web Service through DLL
Hi, I have a scenario as follow: The client application is Windows form which is using bunch of DLLs (.NET) also. One of the dll provides access to the web service. If I put WSE configuration settings in the DLL (Say MyDLL.DLL.Config) config file then the Client exe (Say MyApp.Exe) does not apply those settings. From the design point of view it becomes the responsibility of dll to apply those settings. My question is how the WSE 3.0 will find those settings in MyDLL.DLL.Config file instead of MyApp.exe.config file Do I have to do it in code Any idea Can I use webservice through DLL or not Let us say that the DLL is third part ...Show All
Windows Forms Can't load the Deer.dll to Terrarium game
I compile the Deer.cs ,and get the Deer.dll,and then I run the Terrrium game,choose the Terrarium Mode .I start a new Terrarium and then click the introduce animal button to add animal.The question appear when i choose the Deer.dll to add into,system clue the message about this:"Failes to load resources from resource file Please check your Setup".I got ...Show All
.NET Development xsd.exe generated dataset type problems
Hi, I generate a strongly typed dataset: xsd.exe ConfigExport.xsd / dataset /language:cs. It does the correct generation (my Id column is numeric as defined in the xsd): public uint Id{ get { return (( uint )( this [ this .tableFunction.IdColumn])); } set { this [ this .tableFunction.IdColumn] = value ; } } But when I run the program, it gives an exception when I try to get the property (System.InvalidFormat). The value in the datatable is in fact of type string ! When I trace the generated code, the problem is in Dataset.ReadXmlSerializable()-->Dataset. InitVars(bool) this .tableFunction = (( Function ...Show All
SQL Server Web Replication from SQL 2005 Express
I am attempting to set up the following: SQL Server 2005 with Merge Publication Web Replication Enabled IIS Configured as documented, except DB server is an AD Domain Controller so can't assign Local User to Application Pool SQL 2005 Express Using RMO to create subscription Using Basic Authentication of HTTPS Calling the replisapi.dll diag works fine When I attempt to do a web synchronization with the Publisher, I get the following error: The Merge Agent could not connect to the URL 'https://test.abc.com/TestWebReplication/replisapi.dll' during Web synchronization. Please verify that the URL, Internet lo ...Show All
