JBrophy's Q&A profile
Windows Forms Ending a Windows Program
if ( this ._UserID==0 ) {this.Close();Application.Exit();} My program reads the above lines (including Close and Exit) in a Windows Form and continues on as if they meant nothing. How do I end a program if _UserID==0 Where is this code located You can use Environment.Exit( 0 ); that terminates the process and gives the underlying operating system the specified exit code. ...Show All
Visual Studio 2008 (Pre-release) How to show progress of ProgressBar
Hello. I increment ProgressBar.Value, but it shows only 100%. for( int idx = 0; idx <= 100; idx += 10 ) { progressBar.Value = idx; System.Threading.Thread.Sleep( 100 ); // Some operations } Why this ProgressBar does not show 10%, 20%, ... hYam, I can't answer if there is a way to force a visual update, but keep in mind the code you suggest is similar to a loop that constantly calls Appli ...Show All
Visual C# Problem with build Web Site
When I try to build a web site solution I get the follwing errors : Error 1 (0): error CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\testeinf\15e74bc9\75b17dc3\App_Web_tzppu2tl.DLL' could not be found Error 2 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\testeinf\15e74bc9\75b17dc3\App_Web_tzppu2tl.DLL' could not be found I close ...Show All
Windows Forms bug report - win98 / net1.1 / form.maximumsize property
setting a form's maximumsize property to large values causes problems on windows 98 i had a form which i only wanted to be restricted horizontally. however if a maximumsize is set to either dimension, then a restriction is placed on both dimensions.  ...Show All
Visual Studio Express Editions Input Mask for IP Address
How would i make an input mask for an IP Address where if you press period it will go to the next octet i.e. you can type 192 (period) 168 (period) 0 (period) 1 and it will return 192.168.0.1 I know that I can use 099.099.099.099 as my input mask, but then they have to put in all leading zero's or cursor over. Any ideas Hi John, Why not just use four MaskedTextBox controls for entry (each with the appropriat ...Show All
Visual C++ 2005 upgrade ports Floating Point Consistency incorrectly
I have a fair sized project in Visual C++ 2003 that I ported to Studio 2005. It's taken a few days to track it down, but I have discovered that Studio ported the 2003 "Floating Point Consistency" project setting (under C++ | Optimization) incorrectly to the 2005 "equivalent" of "Floating Point Model" project setting (now under C++ | Code Generation). My 2003 project was set to Default Consistency (which is ...Show All
Visual C# Create a Gif animation
Hello, I want to make a gif animation, and save them to a gif file. Can someone help me to do this It is not posible to create an animated GIF using the standard .NET Image class and GDI+, but here is an example that read multiple image files from the filesystem and pack them in a GIF image. This is from an example for ASP.NET, but you can easy modify it to any situation: //Variable declaration StringCollection stringCollect ...Show All
Windows Forms Lock PC and Hide the Panel Control
Hi, I'm starting a project of a Cyber Cafe's Manager.., I need hide the panel control for some users... somebody knows a code to do this And I need also a code for lock all the shortcut keys.. help me guys.. thanks.. ...Show All
Visual Studio Express Editions Windows service application in Visual C# Express
I'm trying to build a simple Windows Service application in Visual C# Express. I simply can't get started. The documentation mentions a NON -existent template, which makes it kind of hard. However, I can see there's a 'ServiceBase' item in the toolbox and I have a feeling that that's the way to go, but there's no documentation telling how to use that. If I start a Windows Form application, I can drop this 'ServiceBase' component on ...Show All
Visual C# How can I use spelling checking and grammar checking in my windows application
Hi Friends, I'm now creating an application to check spelling and grammar like MS Word can do. I don't know how can I use these features in my application, could you please help me. Regards, You have three options 1 - write the code to do the checking yourself 2 - use Word to do the checking for you ( which means your code will require Word on all target machines ) 3 - find another existing compo ...Show All
Windows Forms TaskVision client destroyed my PC!
I've decided to repost this message as separate thread cos I don't think it's getting the attention I deserves. Here's the problem... I installed the TaskVision client about a week ago, and immediately after started noticed weird things happening to my ...Show All
Visual Studio Team System Sharepoint Services or Sharepoint Portal Server required?
Hello I have Sindows Server 2003 SP1 plus latest updates, and am trying to install Team Foundation Server. It says it needs Sharepoint. Does it need Sharepoint Services or Sharepoint Portal Server Sharepoint services is a very small install, if I can get away with that, I would prefer that. If Sharepoint Portal Server 2003 is really needed, then I will install that. Thank you David I have installed Window ...Show All
Visual Studio Team System Beta 3 Refresh: Cannot add users from another (trusted) domain to team project.
Hi! We have TFS Beta 3 Refresh running in our development domain (DEV). All our user accounts are living in a different domain (PROD), which is also in a different forrest. DEV is a native Windows 2003 domain, while PROD is a Windows 2000 domain. There is a one-way trust from DEV to PROD. When we try to add a user from PROD to a team project group such as Contributors, the following error message appears: Couldn't add user/group 'USERNAME'. ...Show All
Visual C# Compare 2 objects
Hi all I have a class that contains an object that holds some value. the value can be any primitive data type I need a good way to compare 2 and check the relation (greater, smaler) between the 2 objects . for example , 1 can be int and the other can be decimal I am trying to avoid "if X is int32...." and things like that. looking for a general way to compare. Thanks Avi ...Show All
Windows Forms Walking (Movement)
I've been reading up on Astar path finding algorithms and have developed a working model for the terrarium (I'm a brand new terrarium developer). The problem that I have, is that in order for my model to work efficiently, I must be able&n ...Show All
