Marnik Van Hileghem's Q&A profile
Windows Forms .NET 2.0 Winform Printing Issue
I'm having an issue with a .NET 2.0 winforms application. The application runs in the taskbar, querying a webservice in five minute increments, and when the webservice returns data, it prints out that data in a certain format. This works fairly well for quite a while, until suddenly the application stops being able to print. Restarting the application tends to fix this issue, but that is not a valid fix for the client. Any suggestions Thanks! Yes, stopped as in nothing happens. It reports no errors, and gives no exceptions. Nor is there anything concerning it in the event log. When the five minute timer elapses again, the behavior is repeated. I did read on Google that Windows Services in .NET has is ...Show All
Visual Studio Proxy authentication in MSBuilder scripts
Hi! I have a proxy authentication problem when using MSBuilder to generate Sandcastle help files. When building the help files, Sandcastle accesses MSDN webservices which its not possible due to the proxy configuration in my company. I solved a similar problem with .NET applications by changing the machine.config to bypass local proxy, but this does not seem to work for MSBuilder. I could of course disable the MSDN acces in sandcastle.config, but I would like to have the MSDN links in my help file. Does anyone have a solution , thanks in advance! Best regards Torben Torben, There was a similar question about HTTP proxies on MSDN and I posted an answer to a similar question here - http://fo ...Show All
Windows Forms KeyCode, KeyData, KeyValue... What's the difference?
So the subjects says it all... Right now, I'm trying to set a method for when the user presses the 'Enter' key in a text box. Thus far, I'm thinking of putting it in the KeyDown event for the textbox. And my issue lies here. I can't decide/figure out how to go about doing so. There's a ton of ways, I know. I'm starting to get back into the whole programming thing, and this is something I can't seem to find anywhere. So, in deciding whether it was the 'Enter' key that was pressed, which would be best KeyCode, KeyData, or KeyValue And just to make sure... The main question here is the difference though... I can't seem to figure it out. They all kinda boild down to the same thing, right They're all for determining which key was pressed. An ...Show All
Windows Live Developer Forums Polygon Circle outside map boundries
I am currently implementing the ve api in such a way that we are plotting points on a map and drawing a circle (polygon) around that point on a map based on a provided radius. The point in question is in the Fiji Islands which would be on the rightmost part of the map (approx. Lat: -16.694078, Lon: 179.835205). The radius of the circle is large and there are points which lie outside the map boundaries. The circle gets plotted correctly which would be on both sides of the map. However, there are lines between the top and the bottom of each circle part and the outside of the circle is shaded in. I can't include an image in the post, so i have included a link here (yahoo for lack of a better place to put them): http://new.photos.yahoo.com/dad ...Show All
.NET Development Varifying a valid Socket connection
Greetings MSDN members! I currently have an application that will be using the System.Net.Sockets class for communicating between a single app listening for connections and multiple clients connecting to it. The application is a custom console styled app I am designing and when t he user selects to host a session the socket starts listening for connections. My question to you is, is there a way to verify that the server has been started and that it is available to be connected to I would like to output something to the console window stating that the server has started, but I want to varify that it has before outputting anything. Below is my server code namespace TBGEngine_Suite.Engine.Networking { public class ...Show All
SQL Server Help on dynamic sql results on temp table
The dynamic sql is used for link server. What I need is that the result of the dynamic sql put on a temp table. Can someone help. Im getting an error CREATE PROCEDURE GSCLink ( @LinkCompany nvarchar ( 50 ), @Page int , @RecsPerPage int ) AS SET NOCOUNT ON --Create temp table CREATE TABLE #TempTable ( ID int IDENTITY , Name nvarchar ( 50 ), AccountID int , Active bit ) INSERT INTO #TempTable ( Name , AccountID , Active ) --dynamic sql DECLARE @sql nvarchar ( 4000 ) SET @sql = 'SELECT a.Name, a.AccountID, a.Active FROM CRMSBAL ...Show All
Visual C++ Linker bug? data_seg(".CRT$XIU") not merged into other .CRT segments
Using the x64 cross-compiler running on x86, linker and cl.exe file version "8.00.50727.42 (RTM.050727-4200)", the following code that works in x86 with the x86 cl.exe and link fails: #pragma data_seg(".CRT$XIU") static int (*initptr)() = APreCppInitFunction; #pragma data_seg() The problem occurs because cl.exe seems to create the data_seg as a DATA segment type (in x86 it gets generated as CODE), and link.exe does not merge the .CRT$XIU segment into the correct alphabetized sequence among the other CRT code segments (.CRT$XIA, etc.). Here is a sample from the x64 mapping file that results: 0001:00000b28 00000008H .CRT$XIA CODE 0001:00000b28 00000008H .CRT$XIAA CODE 0001:00000b28 00000008H .CRT$XI ...Show All
Visual Studio 2008 (Pre-release) Getting Started with Interactive Designer (blur with XAML & CS code)
I am just getting started in Interactive Designer. The problem i facing now is unclear with the XAML code as well as the CS code. Do the XAML is only control the UI and CS is to control the page events Secondly is regarding to code some interactive events in page designer So, it is code through the XAML or CS code Thanks ... It is a code design decision as to how you write the code. But the guideline is that XAML is for the UI and the CS code is the logic. HTH ...Show All
SQL Server Recursive query?
I have a set of data and I need to actually add a column to the result set based on information contained within the query. For example, SalesmanID SalesBudget SalesRegion Product Amount 1 1000 USA Soap 100.50 1 &nbs ...Show All
Visual Studio 2008 (Pre-release) SSL in a self-hosted service using basicHTTPBinding
I have a self-hosted service that works using basicHTTPBinding with default security (none). If I change it to use https by changing all http:// to https:// and adding the following to the config, it fails to work. I am developing on XP as an administrator. < basicHttpBinding > < binding name = " SoapSvcBindingBasicHttps " > < security mode = " Transport " > < transport clientCredentialType = " None " /> </ security > </ binding > netstat -an shows that the service is listening on the correct port. Diagnostic tracing at the transport indicates that the request never gets to the service. I am testing with IE on the same machine by doing https:// ...Show All
Visual Studio 2008 (Pre-release) problems with my SDK help
hi all, today i un installed May CTP and installed June CTP and June SDK set-up files. everything seems to be fine but when i press F1 for some help i get this message You have chosen to use local Help only for Search and F1 results, and the topic could not be found in local Help. also in Filtered by option i have all SQL Server *.* but not with .Net Framework3.0 Win32 Development i want my help to be filtered by .Net Framework3.0 thanks in advance Nani ...Show All
Software Development for Windows Vista LoadWorkflow method of StateMachineInstance in RC2 version
What is the other way to load a workflow in the RC2 version Doesn't the StateMachineInstance instance have a LoadWorkflow() method You can't get a workflow instance back from the SqlWorkflowPersistenceService directly. You can from the StateMachineInstance class in lab 4 and are able to do Load off of it like the following: stateMachineInstance.WorkflowInstance.Load(); ...Show All
.NET Development Retreive information from registry...
I need to retreive some information from the registry. 1) How do I open a registry key 2) How do I check/read the value 3) How can I copy that value into a label Thank you very much, BTW: Is it possible to retreive system memory information from the registry Thank you very much for that link. I can really use this method. BTW, is there a way to retreive computer memory information from the registry i.e. 512MB RAM Thanks in advance, ...Show All
Visual FoxPro Data deleted with ZAP
Hi every body How can I recover data from a tabla that has been deleted with ZAP. Thanks a lot Hey - I tried that KB article on a foxpro 7.0 table and it didn't work. It restored the correct number of records, but they were filled with garbage. I noticed that the KB article is for foxpro 3.0 and earlier, which might be why. ...Show All
Smart Device Development Dime Attachment ID property fails to parse
Hello I am using VS2005 and Opennetcf liabrarys to consume webservices the problem is only when i create a dimeattachment object and try setting its ID property i get a System.URIexception. There is not example for opennetcf v2.0 using dime attachment this things works fine with VS2003 and OpennetCFv1.0 Following is the code Dim da As New DimeAttachment() da.Id = Guid.NewGuid.ToString() -> Fails Here da.Stream = s da.Type = dimetype da.TypeFormat = TypeFormatEnum.MediaType Following is the error code System.UriFormatException: {"Invalid URI: The format of the URI could not be determined."} InnerException: Nothing Message: "Invalid URI: The format of the URI could not be determined. ...Show All
