Richard Williams's Q&A profile
Windows Forms SEHException
I have a SandBar hosted on an MDI Parent form, which contains a ComboBoxItem. On an MDI child form, I have a text box which, on the Validating event, checks the content, and if it doesn't recognise it as valid, the code opens a dialog box which forces valid data to be entered. If I click on the ComboBoxItem when the text box has no valid ...Show All
.NET Development Singleton Thread Pool
Hi, The thread pool that remoting infrastructure use to process simultaneous client's requests is the same thread pool of the host process If it is the same pool, threads i take to do normal work on the remote object decrease the throughput of the application beacause remoting infrastructure would have less threads to handle client's requests. Thanks in advance. Oh i see, but how it works That clr threadpool is unique to all process in a machine In that case remote objects in different process would compete for those 25 threads. Or is an extra threadpool for each process that is created when ap ...Show All
Software Development for Windows Vista System image lists and sizes
Is there a reliable way for an app to determine the size of the icons that Vista is displaying on the desktop I'm not sure if this is a bug or, more probably, an opportunity to learn something new. As a developer of icon software, it's frequently important to know the current size of the desktop icons. There are a couple of ways to check this. I like to get a handle to the system image list (SHGFI_LARGEICON) and then query the imagelist for the size of its images. I'm running under build 5308. Video is set to 32-bit color and 1280x1024 resolution. My method of querying the system image list (large) indicates 32x32 images. The ShellIcon ...Show All
Visual Studio Team System Problem with Microsoft.Pcw.currituck initialization...
There's a problem with creation of a new project... Single-server scenario, all plugins succeeded except subject plugin: ---begin Exception entry--- Time: 05/12/2005 09:09:10.360 Module: Initializer Event Description: Initialization for plugin "Microsoft.Pcw.currituck" failed with error: "Unable to handle request. The action 'http://schemas.microsoft.com/Currituck/2004/07/mtservices/clientservice/GetMetadata' was not recognized." Exception Type: System.Web.Services.Protocols.SoapException Exception Message: Unable to handle request. The action 'http://schemas.microsoft.com/Currituck/2004/07/mtservices/clientservice/GetMetadata' was not rec ...Show All
Windows Forms windows datagrid rowheight
I have followed an example from George Shepherds website to change the height of the row of a windows datagrid. The example on the site is for version 1.0 and I am using 1.1 We have come to the conclusion that it is because of this version number that we can not use the provided sample code. http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q1075q section 5.1 The error seems to be to do with mi is set in DataGridRowHeightSetter class, because it does not get assigned. So therefore when the mi.Invoke is reached then an error is produced saying "object reference not set to an instance of an object" Is there any other way to do this p ...Show All
Visual C# Rename Folders
I want to rename folder temp to a specified name/ string name private const string dir1 = @"C:\Customer Passwords\Temp\" ; System.IO.Directory .Move( "olddir" , "newdir" ); ...Show All
Windows Forms PocketVision vs Offline App Block
I'm currently evaluating these two frameworks as a basis for a mobile workforce project. I first attempted the new Microsoft Offline application block but found that this isn't compatible with the compact framework (the most usefull application of the solution I would have thought!). This looked like a fair amount of work to convert so it's on the back burn ...Show All
.NET Development Remoting / Binary Serialization compatibility between 1.1 and 2.0 versions of the Framework
In order to use .NET Remoting and Binary Serialization (BinaryFormatter) between versions 1.1 and 2.0 of the Framework, a patch must be installed for .NET Framework 1.1. The patch is currently available only from Microsoft Product Support Services. Mention KB article number 907262 (note that the actual text of the KB article is not yet available outside of Microsoft, but the PSS engineer will be able to give you the patch.) Update: For detailed information, see my blog post here: http://blogs.msdn.com/eugeneos/archive/2006/03/15/552315.aspx Hi Eugene Is this the one solution for this pr ...Show All
Visual Studio VS 2005 and SourceSafe 6.0c
I've been using VS 6.0 for years and this all worked so seamlessly, so I'm really disappointed that I'm having such a hard time with this. In VS 2005 (from my workstation), I create a new website on my development IIS server. I want to add the entire site into SourceSafe, but when I do, it says: Microsoft Visual Studio cannot add FrontPage Web Sites to source control. Use Visual Studio to save all Web Site files. Then from the web server, use the Windows Control Panel, Administrative Tools, and the Internet Services Manager to add the files to source control. When I go where this message tells me, there is no option t ...Show All
SQL Server SSRS Subscription jobs in SQL Agent
We have been using SSRS for many months now and have a substantial no. of reports developed and running in Production. We noticed that subscriptions on the reports were created as jobs with uniqueidentifier names on the SQL Agent. This happens even when the subscriptions are not active anymore i.e. run-once subscriptions which have already run. And when these jobs are deleted manually, they get recreated automatically even for the inactive susbscriptions. Our DBA's had a few concerns regarding this. We were wondering if there was a way 1) to stop these jobs from being displayed under the Jobs list in Management Studio & ...Show All
Windows Forms tutorial on treeview
Hi can anyone direct me to a good site where i can learn how to use the treeview control I want to be able to covert this code With tvwMediaCategory .Nodes.Add , , "ROOT", "My Media", "CDMUSIC", "CDMUSIC" .Nodes.Add "ROOT", tvwChild, "ALL_MEDIA", "All Media", "CLOSEDFOLD ...Show All
Windows Forms Seek understanding/advise for Contextmenus
Using VB 2005 Express Edition and SQL Server 2005 Express Edition. I have a datagridview that contain data from the database. I want to be able to right click on a row and have a context menu pop-up. I also need to be able to dynamically change the contents of the context menu. What are the steps needed (preferably using code): a. to create a context menu b. to dynamically add/delete menu items to it c. to cause it to popup when a right click occurs in my datagridview While understanding is my first objective, code snippets might help to to more quickly get to an understanding. I know your time is valuable, so plea ...Show All
Visual Studio Team System DoNotDeclareStaticMembersOnGenericTypes (CA1000)
In general I agree with the rule. However, what about operator overloads Should they trigger this violation And, if not, how do you prevent the violation only for operators The usage of an operator generally does not need to specify <T>. I.E. public class MyClass<T> { private T x; // violation CA1000! public static operator == (MyClass<T> left, MyClass<T> right) { return left.x.Equals(right.x) } } ... MyClass<xxx> = ...Show All
SQL Server DCOM Error 10016 Problem with opening http://localhost/reports$sqlExpress
I installed sql 2005 express edition with advanced services on winodows 2003 small business server standard edition (with sp1). This computer is domain controller. I cannot open page http://localhost/reports$sqlExpress Error is Unable to connect to the remote server. In event log I find error: Event Type: Error Event Source: DCOM Event Category: None Event ID: 10016 Date: 13.5.2006 Time: 14:00:30 User: NT AUTHORITY\NETWORK SERVICE Computer: Server Description: The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {BA126AD1-2166-11D1-B1D0-00805FC1270E} t ...Show All
Windows Forms data reading and writing.
i am making one form, displaying some of the data fields from three mssql data tables in textboxes or listboxes. i try to find a better way to do this instead of the way i am doing now, listed as the following: a) when loading the data, implement functions to retrieve the values of each data field, and assign it to each textbox's Text propert ...Show All
