PeterVrenken's Q&A profile
Windows Live Developer Forums VE 3, MS Ajax beta 2 and IE7 weirdness
I just updating a site to use MS Ajax beta 2, from beta 1. Everything was fine under beta 1, but code that used to work under beta 1, is throwing an error under beta 2. Oddly enough it all works great under IE6, but not 7. I have just spent some considerable time examining the data, and everything looks fine. The problem seems to be with drawing a poly line, i.e. simply commenting out the line which adds the polyline to the map stops the problem happening: map.AddPolyline(poly); The array of lat/long looks fine, there are no nulls or anything odd, and doing ' map.SetMapView' on the array of points is fine too. To make the problem even more maddening, the problem is intermittant, and only on IE7, so for the moment I'm giving up ...Show All
Windows Forms How to get history of 10 recent web page?
Hi! How can I get the history of the recent webpages (For example the 10 most recent webpages are in a menu strip and a new item is added everytime a new page is navigated to) Matt depends how your application is handling the history. usually to store the history you would write to say, an Xml file (serialize the collection of webpages you have visited), then deserialize this list once you are loading up your application again. you would have a section in your menu strip with the 10 recent pages visited, so whenever you add another one, if there are 10, take away the oldest one (the first one in the list) and replace it with the new website you are visiting. ...Show All
Windows Live Developer Forums Is there any place where I can purchase the bird's eye view images that are found in the msn virtual earth?
These photos are great, better than what google earth offers. Microsoft does not offer their bird's eye view images for sale nor do I know of any third party that offers them. Yes VE has a nice advantage over google earth in that VE has birds eye imagry which google earth doesn't. ...Show All
Windows Forms Can't modify assembly properties in deployment project
I have a deployment project with a number of assemblies in the file system application folder. These assemblies have been placed there as a result of adding the primary outputs from several projects. Some assemblies are referenced by more than one project, and as a result are listed twice (and cannot be deleted). This causes the warning "Two or more objects have the same target location" to be generated when the project is built. I can stop this warning by giving each of the duplicated assemblies a different condition, and this works fine - until I close Visual Studio. It then turns out that the condition property has not been saved - it has dissapeared. In fact, it seems that any property change on these assemblies takes eff ...Show All
Software Development for Windows Vista Distribution of Ntrights.exe
I hope I am posting at the right forum. The product I am working on requires Ntrights.exe, which is part of Windows resource kit, to perform some windows configuration. As not every Windows PC has windows resource kit installed, we plan to include Ntrights.exe in the release package of my product. What I want to ask is will it cause any legal or copyright issue if we distribute this Microsoft tool in our product release. Any comments or suggestion will be appreciated. Thanks. Heck windows!!! I am also facing same problem, I created user from silent mode software installer, using "net user" command but now I need to specify rights for that user or add newly created user to &qu ...Show All
Software Development for Windows Vista UAC elevation dialog minimized
Our application launches a separate executable that requires elevation. Everything works fine except that the UAC elevation dialog always comes up minimized, blinking in the taskbar (users tend to miss the blinking taskbar and think the operation failed). I believe this is a problem with Vista, as I have seen the same behavior in the Windows Explorer (Computer) when right-clicking on a hard drive and selecting "Format...". Is there a way to force this UAC dialog to gain focus immediately Or is this a bug that will be fixed in future Vista builds Running Vista build 5472 use ShellExecuteEx() and to specify the parameter ‘runas’ in the SHELLEXECUTEINFO structure member lpverb. ...Show All
.NET Development problems importing data from XML
Hello, Sorry not having written a more detail Subject for this topic, but i dont know how to explain it in so few words! I'm developing a pocket pc application, which is using a database also used on the desktop computer, and both apps exchange data using export and import functionalities. I've done this once with no problems, but this time there is a different person developing the desktop application, and i'm having problems reading the xml from the exported file. Taking a quick look at xml file i'm trying to read, i can only see one cause for this problem: Instead of specifying the various elements like <table> <row1> <atr1> <atr2> <row2> etc.... its is ...Show All
SQL Server Dose Perspective to an extent improve the cube process performance?
Hi, all experts here, Thank you very much for your kind attention. Would please any expert here give me any guidance and advice that if a Perspective of a cube really improve the performance of the process in terms of process speed. Thank you very much in advance for any guidance and advice for that. With best regards, Yours sincerely, Hi, Mosha, thank you very much for your guidance. So is it in a way like views for tables make retriveving data faster from a perspective rather than a large cube as what views meant to tables. Dose that sense perspective mean to cube (besides in a way to well organize information in cube for specific perspective) Thanks a lot. With best regards, Yours sincerely, ...Show All
Windows Forms PrintDocument quality is bad
I made a code to a barcode, I made a class return an image to draw the barcode and the other text i need in the label then print it through a PrintDocumnet I draw the image: private void printDocument1_PrintPage( object sender, System.Drawing.Printing. PrintPageEventArgs e) { using ( Graphics g = e.Graphics) { Font fnt = new Font ( "verdana" , 8); g.DrawImage(SPMSBarcode(c1BarCode1.Image, textboxText1.Text, textboxText2.Text), 0, 0); } } then the quality of the print out is bad BUT if I draw directlly to the printDocumnet (without the class) the print out is very good. So is there any lossing in any thing while using the class or what regards, Yeah exactly. I wish someone would answer this. ...Show All
SQL Server Capture errors from SSIS Execute Process Task
I have an Execute Process Task within my package that executes a BCP command which outputs the resultset of a query to a file in the network share. It works fine most of the time, however sometimes for unknown reasons, the following error message gets logged in my log table - In Executing "c:\Program Files\Microsoft SQL Server\90\Tools\Binn\bcp.exe" "Select Comments, SoldToCustomerNbr, ProductGroupingCode, ProductGroupingName, RevSumCategoryCode, RevSumCategoryName, ValidFromDate, DTSCollectPct, DTSPrepaidPct, DTSPickUpPct, DCCollectPct, DCPrepaidPct, DCPickUpPct From ShipmentTypeCustomerBlend" queryout \\xxx\LOG\ShipmentTypeCustomerBlendLog_060719201440.txt -c -t"\t" -SDummyServer -T -e"d:\SSIS Error ...Show All
Visual Basic null reference in passing array between procedures
Hi, I'm trying to write a program that grabs data from a text file and populates the array of a structure, but I've been getting a "system.nullreference exception: object reference not set to an instance of an object. at A.Readfile(string file, schedule{} & flight) at A.Main(String{} arg) Sample code: Public Structure Schedule 'members of the structure Dim Airline As String Public Sub Main(ByVal arg() As String) Dim flights() As Schedule 'a structure previously defined Dim response As String ReadFile(arg(0), flights ) 'i think flights is causing the problem, but not sure how etc, Sub Readfile(B ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Basic collision detection...ModelsUnderRay?
Hello, I worked with Macromedia Director quite extensively in the past. They had a built in function called "ModelsUnderRay" that would create an array of models that existed under a given vector. You just needed to provide the direction in which you wanted to cast the ray. You could also just return the data of the first model in which the ray came into contact with rather than build an array of models. Part of the data returned was the vector of the contact point. My question is whether or not this is possible to create in xna currently. It would be awesome to have this function for basic collision detection. Any help would be greatly appreciated. Thanks, Keelo Unfortunately, there is no ...Show All
Visual Studio Express Editions Any tutorials for DataBase application dev?
Hi, I'm learning VBE2005 along with SQLServer Express 2005 from scratch; are there tutorials or basic examples on how to do typical DB aplications using Master/Detail grids, lookup table fields, etc My last programming background was Delphi 6 using dbExpress and talking to PostgreSQL and Interbase. Thank you, Guillermo Good examples in Chapter 4 for database stuff but good general book on VB as well. http://msdn.microsoft.com/vbasic/learning/introtovb2005/ General Learning webcasts with examples http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx Learning more about the underlying database access code which will be ADO.NET http://msdn.microsoft.com/library/default.asp url=/library/en ...Show All
Windows Forms HOW TO INSERT,DELETE AND UPDATE IN DATABSE THROUTH DATAGRIDVIEW (VISUAL BASIC 2005)
HI ALL PLEASE HELP ME I AM NEW TO DATAGRIDVIEW (IN VISUAL BASIC 2005) I WANT TO INSERT, DELETE, AND UPDATE RECORDS USING DATAGRIDVIEW. I AM USING DATASET WHICH HAVE A TABLE ADAPTER ALSO PLEASE HELP ME Would you please describe your issue detailly On the UI datagridview provided, you can already insert, delete and update records easily. If you want to do these jobs in program, you may use some code like this //Add new row to datagridview by add new row in data table northwindDataSet.Customers.AddCustomersRow("Gemi", "MS", "Wang", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa"); //delete row northwindData ...Show All
Smart Device Development Creating/Opening registry key
I'm trying to develop a WIndows Mobile based application for a mobile computer, using Visual Studio 2005. I try to open a registry key when my application launches. The code is attached. the result of both, the RegOpenKeyEx and RegCreateKeyEx functions is 87 (invalid parameter). Which parameter am I passing wrong PHKEY phkHandle = NULL; DWORD dwDisposition = 0; LONG lResult; lResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("SYSTEM\\Hibernate"), 0, 0, phkHandle); if (ERROR_SUCCESS == lResult) { //Log success to my file } else { //Log failure and error code to my file } if (NULL != phkHandle) { RegCloseKey(*phkHandle); } lResult = RegCreateKeyEx(HKEY_LOCAL_MACHINE, _T("SYSTEM\\Hibernate"), 0, NULL, REG_OPTION_NON_V ...Show All
