Geer352197's Q&A profile
Windows Forms Force application exit from ApplicationContext constructor
Hello. I have a tray only application. In the constructor of the ApplicationContext derived class, in some cases (process already running), I have to close the application. Can't find any way to do this. ApplicationContext.ExitThread does not work. Application.Exit neither. Any idea class Client : ApplicationContext { /// <summary> /// The main entry point for the application. /// </summary> [ STAThread ] static void Main( string [] a_sArgs) { Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); Application .Run( new Client ()); } /// <summary> /// Tray icon. /// </summary& ...Show All
Visual Studio 2008 (Pre-release) Best way to approach clickable duplicating lines?
Hi everyone, I have a basic drawn using PolyLines. At each datapoint, I am planning on having a vertical bar that can be clicked on to display some value associated with that point. For example, let's say I have an array of data that contains the following: { 10, 20, 30, 50, 60, 0, 100 } There are seven pieces of data, and those will correspond to the seven data points. So there will be seven vertical bars, and when I hover/click over a particular bar, I get the array value associated with that point. I have a good enough idea on how to create both the duplicating lines + event handler using WinForms, but what are the best ways of doing this using WPF Thanks! Kirupa ...Show All
Visual Studio Express Editions Can't find System.Data.SqlClient
I'm trying to add a call to SqlConnection which gives me the error "The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference". I tried to add a reference to System.Data.SqlClient to fix this but it's not listed in the add reference dialog box. I see System.Data, System.Data.OracleClient, System.Data.SqlXml, but not SqlClient. Any ideas how to fix this I tried reinstalling Sql Server Express (the 50MB version, not the 234MB version). More Details: I installed MS Visual Web Developer Express before I installed MS Visual C# Express on this machine. thanks, Jeff SqlConnection is declared in System.Data.SqlClient namespace in the System.Data.dll http:// ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is there a way to turn off interpolation of pixels?
I'm rendering a 2x2 dimension texture and i need the pixels on it to not to interpolate.Due to interpolation i get one pixel on the bitmap and the rest are gone. Is there a way to turn off the interpolation when rendering to surface. I'm using RenderToSurface class and get the surface from the target texture and render it to the surface. I'm using VS 2005, C# and Managed DirectX 9.0c. ...Show All
Visual Studio 2008 (Pre-release) Item cannot be added to a read-only or fixed-size list???
Hi, I am just trying new DLINQ features. And I was cretaed a WinForm App. I am using the DLINQ designer and then drag&drop the objectdatasource to Form surface to automatically create necessary bindingsource and binding navigator objects together with textbox and other controls that are databound to fields of objectdatasource. But navigator automatically disables the "Add New Item" image button... When I enable it prorammatically after assigning the datasource property of related bindingsource to a table<Employee> field of my objectdatasource, and then using it, it says "Item can not be added to a read-only or fixed-size list" Are the properties of DLING objects created read-only or fixed-size ...Show All
SQL Server Need sql script or statement to extract all relations from one tree
Suppose I have a table with relations (REL). In this table there are relations between parent en child, so the columns are: Rel_Id, parent_Id, child_Id. Example: 1, A, B 2, A, C 3, A, D 4, B, E 5, C, F 6, G, H 7, G, I 8, H, J I need a query which returns all relations from REL that are in the same tree as the input unit. In the example, giving D as input unit, it should return relations 1, 2, 3, 4 and 5, because A, B, C, E and F are (in)directly related to D and belong therefore to the same tree. Giving H as input, it should return relations 6, 7 and 8. (with a tree, I mean that a parent can have 0, 1 or more children and a child belongs at most one parent.) Thanks for your help in advance! Here i ...Show All
Visual C# How to show a help file?
I've created a help file with microsofts help workshop program, how do i display this file in my program How do i execute a help file Thanks. Paul. I'd suggest taking a look at this tutorial on this and a few other help related subjects. ...Show All
SQL Server Importing DB4 files into SQL Server 2005
I'm not sure this is the right forum for this, but here goes, I have some DB4 format files. created by the Borland Database engine. I need to import these into SQL Server 2005. I can open them with Access 2000 & 2002, but not 2003. The Import Wizard also fails with the DB4 format, but can read the Access 2000 and 2002 converted files. The Import Wizard indicates success, but no tables appear in the Server Management Studio. There must be a way. HELP!!!! ...Show All
Smart Device Development No connection via Active Sync
Hello, I have developed a compact framework application for Pocket Pc 2003. It connects with a server to retrieve some information. Everything goes perfect on the emulator and if I use WiFi. The problem is that i cannot connect using my Desktop connection via USB. This problem only happens on my application because if I try IExplorer I can browse internet using the USB. Any idea Thank you Hi, ActiveSync via USB on PPC 2003 allows HTTP requests to pass through the host machine to the Internet. What URL do you want to access from the device Cheers, Anthony Wong [MSFT] ...Show All
Visual Studio Team System tf get from linux
Hi, I'm currently developing an application that centralizes compilations, the thing is, that the compilation is performed inside build servers, so, one compilation is fired from my application throw SSH in an windows NT server, another in a windows 2003, etc. Each build server performs an MSBuild, Nant, ant,bat, etc script, which performs a tf get from Team foundation server and then compiles the source code. How can I perform a TF get from a Linux (SUSE 9 and SUSE 10) build server Thanks Indeed, You can download a fully functional version of Teamprise from the website:- http://www.teamprise.com This has a command line client (similar to tf.exe) that you can use to do your gets etc on SUSE ...Show All
Visual Studio Team System Off Topic- Forum Function ?
Is it just me or when replying or creating a post at the bottom when the checkbox is checked for Alert Me does it not actually turn on the subscription. I have to hit the alert me button after I post. Is it just me PS - gripes about bugfix rates aside, you can get pretty good response to these questions in the "Site Feedback" forums at the top of the list. ...Show All
SQL Server Problem accessing MSDB in a cluster
I'm new to sql clusters, but i've been asked to set up an SSIS job on a cluster. My wish is to import the dtsx package to MSDB, not to "File System". This works fine in my non clustered test environment, but on the cluster, I can't expand the MSDB node. When I try, I get a pretty long error message, I don't have it here right now, but i says something about that the reason could be the lack of a default instance on the sql server. I'm not the one who set up the cluster and to be honest, I don't know how default instances works in a clustered environment. Does anyone recognize the problem A related question. Should I connect to "the cluster" or to the node with SSIS installed when I upload the dtsx package I'm a ...Show All
.NET Development XML and C#
I am looking for a way to authenticate a user for a program, it has been suggested that I use XML credentials to do this, but honestly I do not have the first clue about useing XML for anything. I have been unable to find any resources on the subject, does anyone know of any or could someone point me in the right direction to do this. All the help I have found has something or another with ADO.NET or web forms which I have no interest in my app is a standalone application doing standalone tasks nothing to do with web programming. Thanks Thomas So you have to maintain the username and encrypted password in xml file right. If so you define the format of xml , ie how you are going to maintain the user ...Show All
Visual C++ How do you declare Enumerations for ATL projects using embedded IDL
I've declared the enum in both a header file and an IDL file as such: typedef enum tagFlipObjectType { None, PageType, FrameType, FrameSetType, SequenceType, SetHashEntryType } FlipObjectType; I have the following property for a simple object as such: [propput, id(5), helpstring( "property Type" )] HRESULT Type([in] FlipObjectType eType); With the added IDL file, I get: "failed to compile IDL content" I aslo tried adding the enumeration within the __interface block as well Is there a new or better way to do this Thanks for your help. Turned out that it wasn't the enum causing the problem. I had overlapping disp id's. Its resolved now. Ken ...Show All
SQL Server SQL Mobile Sync problems
I have just upgraded from a working app for Pocket PC 2003 developed on MS SQL 2000 and VS 2003 to Mobile 5, MS SQL 2005 and VS 2005 and have been nable to get anything working. I decided to go back to basics and just try to sync a SQL2005 and SQL mobile database by following the MS doc "Creating a mobile application with SQL Server mobile" and "Step by Step: Developing a SQL Mobile App with Visual Studio 2005 and SQL Server 2005". Unfortunately I have n't been able to get either of these 2 examlpes working either. The Database, publications, subscriptions etc are all created OK yet when I come to sync I get the following error: "A request to send data to the computer running iis has failed" I'd great ...Show All
