JohnDXMurphy's Q&A profile
Windows Forms Rendering & maximizing a child form before showing it?
Hi, I have the following code in Mdi form to load a child form (form1) in it and want to cover the full screen. dim frm as form1 = New form1() frm.MdiParent = Me frm.Show() also in form1's initialization method i have : WindowState&n ...Show All
Windows Forms Checking Color
Howdy folks! I was wondering, if there was a way using .NET to check a certain point for it's color Or perhaps, load an image and check a certain point on it for certain colors Is that possible Thanks! Thank you&nbs ...Show All
Visual C++ Need explanation on Win32 and CLR
Can someone tell me the difference between the Win32 project, CLR Console Application project, and CLR Empty Project Thank you When you create a Win32 project, you're using C++. When you create a managed project, you're also able to use the .NET framework, which means you're targetting the VS.NET compiler only, you'll be able to use stuff from the framework that is useful, such as the Regular Expressions support, and your app wi ...Show All
Windows Forms CommonDialog issues
I'm trying to build several "dialogs" that ultimately will call various derived common dialogs and I'm experiencing some weird behavior. First I open my custom dialog with the ShowDialog() method. In this dialog, I have a button that will open an "OpenFileDialog". If the user closes the dialog, without opening the "OpenFileDialog" all is fine. However, if the button is pressed and they open the OpenFileDialog dia ...Show All
.NET Development Very basic Remoting problem
Hi, I am new to this forum and seeking help from all you senirs. Problem: I've created a Remote object and inherited it from marshellbyref, I deployed to the other machine which is a 2003 server name it MachineA and created a website and hosted that remote object in the bin under the website directory and also placed the web.config file,for that remoted object,this object is returning me the machine name. Now when I created a app ...Show All
Windows Forms How to improve Listbox performance in ADO.NET 2.0?
I have a bunch of listboxes on my windows forms with a couple of thousand records in each one of them. It takes almost about a minute to load a form in .NET 1.1 We are migrating the application to .NET 2.0 and was wondering if there is any way to improve the performance in ADO.NET 2.0 so that the listboxes are loaded faster in .NET 2.0 I tried running speed test as per: http://msdn.microsoft.com/msdnmag/issues/05/11/DataPoints/default. ...Show All
Visual C# Dynamic Casting in C# at runtime
How Can I dynamically cast at runtime.That is I am passing a child class object in the parent class object in a function.In t hat function i have to cast to passed child class object at runtime. How Can I Cast It. protected void Page_Load( object sender, EventArgs e) { Circle circleObj = new Circle (); circleObj.Radius = 5; Response.Write(chkRefrence(circleObj)+ "<br \\>After " ); } ...Show All
.NET Development Problem with com to .net interoperability
I'm working on a project for time attendence control in which i have to use ActiveX control Starinterface.ocx. I'm using AxImp to generate wrapers AxStarnterfaceLib.dll and the standard one StarinterfaceLib.dll, then i've added reference to them using project/AddReference. The problem is that when i'm trying to give instance to metods from control for example : public void _CommPortOpen(){ StarinterfaceLib.StarInterfaceClass ax=new Starint ...Show All
Visual Studio 2008 (Pre-release) Expression Trees
When creating an expression tree, the current Linq release requires me to explicitly state what the type of the expression is: Expression<Func<int,int,int>> expr = (x,y) => x + y; I cant even seem to be able to use type inference here: void GetExpression<T>(Expression<T> expr) { Console.WriteLine(typeof(T)); } GetExpression((x,y) => x+y); // error Do we think that the type inference is going to get better i ...Show All
Visual FoxPro VFPOLEDB on 64 bit Operating Systems
This is a bit annoying because there doesn't seem to be any reference about this on any of Microsoft's sites. Is the VFPOLEDB not compatible with 64 bit operating systems When trying to use it with either XP Pro 64-bit Edition or Windows Server 2003 64-bit edition, I get the "Provider not installed on local Machine." I find it hard to believe (sort of) that Microsoft would not specify that, nor get a patch out for it. Many of my ...Show All
Visual Studio Express Editions How to install FULL Express Edition (really all files !) to partition D: ?
When I install Visual C# 2005 Express Edition and choose custom setup I can select the installation folder. When I enter now e.g. D.\visualcsharp\exped2005 only a small portion of all installation files are put into this folder. The majority of all files (>1GB) are put into partition C:\ despite my previous selection This is by far too much for my small C: partition. How to I really install ALL files into partition D: (resp. ...Show All
Smart Device Development Component inheritance bug.
Hi I have come across a bizarre problem. I am using Visual Studio 2005 Professional Edition. The steps I have taken to reproduce this problem are as follows: 1) Create C# Smart Device Application (Pocket PC 2003) 2) Add a new blank component called 'Component1' to the project in the solution. 3) Change the component to inherit from "Microsoft.WindowsCE.Forms.Notification" instead of "Component". (A reference to 'Microsoft.Windows ...Show All
Smart Device Development Silly issue with running the emulator
I don't understand it! I have tried to run an application on the Visual Studio beta 2 (the latest one) and also in other versions (windbay), but the emulator simply won't start. In the latest version it tells me he's got some problems with the "TCP connection" and in the Windbay he tell me even if i run a new blank form after build that he's got "Development Errors". What can i do i want to use the Compact Framework 2, but i can't test ...Show All
Visual Studio Team System Document Templates
I'm missing the templates for "Baseline Configuration Management" workstream (CM Plan, Access Control Policy and GuideLines). Will they be present on final release Regards, Max Andrade No. This is an error on our part. The baseline for configuration management is part of the setup of Team Foundation Server and not anything that needs a specific document template. Access control policies and guidelines are p ...Show All
Visual Studio Tools for Office Determining where I am in ThisDocument_SelectionChange
Hi, I'm trying to determine where I am in the document within the ThisDocument_SelectionChange event. I have a document with XML tags in it, and would like to select which ActionPane Control I show based on which XML tag I am in. I thought that e.Selection.Range.XMLNodes(0) or something might do the trick, but it appears that the e.Selection.Range.XMLNodes collection is empty. Anyone know what I am doing wrong, or if there is another way to ach ...Show All
