JayR's Q&A profile
Visual Studio Creating Delegate Types from Interface Methods
Does the class designer offer any shortcuts for creating a delegate type based on an interface method There's no doubting that MSR Cambridge did a fine job designing generics, and I'm glad to see that they were commercialized with .NET 2.0. (I've been waiting for them for years!) Expressed in terms of generics, what I'm looking to do is: public delegate DelegateType<Interface.Foo> FooDelegateType; public static event FooDelegateType FooEvents; Specially, I want to avoid the CPM (copy-paste-modify) chore in which I copy a series of interface signatures into delegate type declara ...Show All
SQL Server Nested Loops in the Control Flow
I have a problem when using nested loops in my Control Flow. The package contains an outer Foreach Loop using the Foreach File Enumerator which in my test case will loop over two files found in a directory. Inside this loop is another Foreach Loop using the Foreach Nodelist Enumerator. Before entering the inner loop a variable, xpath, is set to a value that depends on the current file, i e /file[name = '@CurrentFileName']/content . The Nodelist Enumerator is set to use this variable as its OuterXPATHString. Now, this is what happens: First Iteration: The first file is found and the value of xpath = /file[name = 'test1.txt']/content. When ...Show All
Windows Forms Form close button
Anyone could help me how to disable the modeless and model form close button and disable the moving of the form. It would much more appreciate if anybody share your programming experience in .NET 1.1. 1. To hide the close button, use the property ControlBox = false. this will also hides the maximaize\minimaize buttons. 2. Another option is to handle FormClosing event like this: private void Form1_FormClosing( object sender, FormClosingEventArgs e) { if (e.CloseReason == CloseReason .UserClosing) { e.Cancel = true ; } } ...Show All
Smart Device Development Setting Up RDA
I'm having trouble setting up RDA for data transfer between a CE 5.0 application and ( for now) Sql 2005 Developer Edition. On my development machine, I have IIS ( 5.1 ) configured for anonymous access. I ran Sqlcd30setupen.exe, then ran confwiz.exe to set up RDA. I configured a virtual RDA directory pointing to the original location of the sqlcesa30.dll (c:\Prog Files\MS SQL Server 2005 ME\Server\) Sql Server 2005 is configured with multiple users, all guesses at what the problem is. I have UID: Me Pwd: MyPassword UID: \\gtw001\IUSER_GTW001 UID:\NT AUTHORITY\System all having select permissions on the appropriate ...Show All
Visual Studio Express Editions What to do NOW!
I have downloaded the ISOs of all the Express compilers. I have installed VB.NET Express Editon 2005. When I try to register it I received an email saying ' Thank you for registering Visual Basic 2005 Express Edition!' How come like this In the email there is a like called Registration Benefit Portal which is : http://go.microsoft.com/fwlink/ LinkId=52054 . But on going to the web page on this link I end up on a page Sign-In page. After signing it I am take to a page which says ' Visual Studio 2005 Registration Benefits Portal' Here there is another link called Product Keys (which is : https://connect.microsoft.com/productkey/myproductkeys. ...Show All
Smart Device Development New to .net CF2 & PPC
Howdy! I've done a bit of programming in the past and now am looking at making some stuff for PPCs. I downloaded the Emulator and ActiveSync, but have not managed to get them to sync together. Anyone know of any n00b guides for this I read in the doco to 'rightclick on the GUID'. I'm guessing this means 'rightclick on the emulator' but that brings up no menu for me. I'd also like suggestions on a free IDE and compiler. I'm thinking .Net Compact Framework 2 is the place for me to start. I'm not really a guru in any language altho I've programmed a handheld game in C (with a little C++ thrown in) and a small very simple application in J2ME. I ...Show All
Visual Studio Distinguishing debugger-called ToString()
I am using lazy evaluation to determine a "real" value of an object inside the ToString() override, based on its "unevaluated" value. The problem is that I don't want the debugger watch to cause lazy evaluation to occur. Is there a way to know if the callstack contains a debugger call This is my code. public override string ToString() { LazyEvaluate(); // note: don't want debugger to update Value return Value.ToString(); } Thanks, Brian I'm using the attribute with success within a C# application (the Expr class itself is in a C# class libr ...Show All
Windows Forms How can make a ProgressionBar on startup ?
hello, i am loading a quite big XML file (2Mb) with ReadXML() on startup my program is just freezed, is there anyway i can get loading progression of ReadXML, so i can display a ProgressionBar of it or shall i simply have a form showing "loading", before that ReadXML many thanks You can use background worker and load the XML file in the DoWork event. Unfortunately the ReadXML doesn't provide you with any status as it loads, so you might go with the "marquee" styled progress bar (requires XP or above) that just cycles/loops. -mark Program Manager Microsoft ...Show All
SQL Server logging the DDL stmts
Hi : I am using .cmd files to execute .sql files. sqlcmd is used in .cmd files to execute the .sql stmts. In .cmd file the sqlcmd line of code is as follows: sqlcmd -i .\..\..\sql\tables\create_employee_table.sql In .sql file the ddl stmt is as follows: CREATE TABLE [Employee]( [EmployeeID] [int] IDENTITY(1,1) NOT NULL, [NationalIDNumber] [nvarchar](15) COLLATE Latin1_General_CS_AI NOT NULL, [ContactID] [int] NOT NULL, [LoginID] [nvarchar](256) COLLATE Latin1_General_CS_AI NOT NULL, [ManagerID] [int] NULL, DF_Employee_rowguid] DEFAULT (newid()), [ModifiedDate] [datetime] NOT NULL CONSTRAINT CONSTRAINT [PK_Employee_EmployeeI ...Show All
Visual Studio Tools for Office Does VSTO solution work with Word 2002 and Word 2003?
I'm new to VSTO. I saw many examples of building applications for Word 2003. My question is can you build VSTO application for Word 2002 If it is possible, next question is if the same solution will work for both Word 2002 and Word 2003 environments Yes, You can for Word 2003. You must have at least Word 2003 SP1. But I also facing the same problem looking for resources to implement in VSTO 2005. IMHO. ...Show All
Visual Studio Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v80.en' is invalid
I have installed a RC version of VS Team Suite along with full MSDN installation. After completing installation, I'v got " Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v80.en' is invalid " error when I have tried to access it by doing "Start" -> "All Programs" -> "Microsoft Developer Network" -> "MSDN Library for Visual Studio 2005" When I accessed it from VS 2005, it only have SQL help available. I have tried to reinstall it several time but no luck. Any help would be appreciated. Eric I have the same problem, except tha ...Show All
Visual J# Help: how can I avoid the System.OutOfMemoryException?
Dear All, A System.OutOfMemoryException always occurs in my program when the input data size becomes larger. Basically my program uses a recursive method to travel all paths in a graph. For example, the graph's configuration looks like this: three nodes A, B, and C. There is one edge between B and C, and the only thing that changes is the number of edges between A and B. When there are 2000 edges between A and B, my program works fine. But if I increase the number of edges to 3000 or more, the exception occurs. I suspect most memory is consumed by this recursive method. Yet, memory should be released whenever such a method returns. Is ...Show All
Visual C# Using usb-bluetooth from pc
32Feet.Net provides a managed library for the same. You can refer to the following posting about it http://www.kinlan.co.uk/2005/10/following-my-post-about-lack-of.html The library can be downloaded from http://32feet.net/default.aspx Regards, Nitin ...Show All
Windows Forms about calendar control
Hi ! I had added a MonthCalendar control to my form and found that when I changed the setting in the regional and laguages options in control panel to Vietnamese , the calendar changed to Vietnamese immediately . Can anyone tell me How I can change regional setting by code or anyway to display my calendar in vietnamese. thanks alots ...Show All
Visual Basic serial port ir decoder
I have an application that I am working based around the LIRC principle to receive infrared signals from Sony remote controls and saving them in an MS Access database also converting to Pronto CCF format. The program will also transmit the code to any learning remote control. I’m using the CTS pin of the RS232 port for the input signal and im based my hardware from an elector article, which can be found here. http://www.bairesrobotics.com.ar/elektor/01-2002%20Infrared%20Transceiver%20for%20the%20PC%20(1).pdf http://www.bairesrobotics.com.ar/elektor/02-2002%20Infrared%20Transceiver%20for%20the%20PC%20(2).pdf Storing the data into access is no ...Show All
