patio87's Q&A profile
Visual Studio 2008 (Pre-release) HorizontalAlignment on DataTemplate in GridView (bug?)
We have a ListView with a GridView, witch has a DataTemplate on the columns. The DataTemplate consist of a border with a TextBox. In May CTP the HorizontalAlignment=Stretch on the Border and TextBox worked fine, but this doesn’t seem to be the case in June CTP Best regards, Thomas Andersen Hehe, thanks. Didn't think of that dirty workaround. I would however classify it as a bug. It worked fine in May CTP (I haven't tested July CTP though). I'll use the workaround for the time being, thanks. Best regards, Thomas Andersen ...Show All
.NET Development how to unloading xml document to reclaim memory?
I have noticed that when I try to unload xml document by calling Release() on Document MSXML2::IXMLDOMDocument pointer the memory occupied by the DOM (when I call load) is not returned back. Is calling Release on MSXML2::IXMLDOMDocument pointer is good enough to reclaim the memory used up by DOM after calling load ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render Target For Effects.
I am having a problem here. In PC development I love the availablity of StretchRect. You can render an entire scene at a high resolution then stretch it to a low res map to create all sort of fun effects. The problem is XNA does not support stretch rect ... so then is the only option to: A. Render the whole scene to a render target and use it to create lower render targets for use in effects. (Currently using) Pros: 1. Very Fast. 2. Only 1 scene render Cons: 1. Locked to texture resolutions 1024x1024 or 512x 512 2. Will never be a perfect monitor resolution match thus muddy areas will always be there. B. Render the whole scene once at full rez then render it a second time to a Render targe ...Show All
Visual C++ Writing Scalable IOCP Socket Apps
Ok, so I have done a fair amount of research, and I dont "get it". I understand IOCP is a huge and powerful concept, and relatively new. Anyway, I am having a LOT of problems while setting it up, and not sure if what I'm doing is what its supposed to be doing. Before you direct me to a link just yet, I'll show you were I have looked: http://msdn.microsoft.com/msdnmag/issues/1000/winsock/ http://win32.mvps.org/network/sockhim.html And an ungodly amount of time in the MSDN winsock functions/structs/etc. The problem with the first 2, is they give a good dive into it, but the example source code doesnt really show the steps of doing it. The 1st link doesnt go a ...Show All
Windows Forms Repositioning Graphic Objects
Hi, Background: I am sending four collections of simple graphic objects(lines,rectangles..polygons) to a printer (to represent four different scale views of a building). The paper size is initially A4, but may be required to be multiple A4 or A3 if the graphic objects do not fit. This is referred to as the page number/size escalation process. I am using the various graphic class transformation functions and it works well. So far, I don't draw the images to screen prior to printing. The challenge is optimally fit the four collections on the page so that more pages are only needed if every effort has been exhausted to fit the images at any particular level in the page escalation hierarchy. I could just assign a static po ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Intercepting Exit
Is there a way to intercept and abort the closure of the Game window when the user clicks the close button Something similar to the FormClosing event for a Form window, where FormClosingEventArgs.Cancel can be set to true, if the user decides to change their mind and save their location, for example. I haven't found it yet... I'm just hoping I've missed it. Alternatively, can I disable the close button Thanks, Paul EDIT: Nevermind, I think I answered my own question. Out of curiosity, does this mean we could build a handler for incoming system messages through this as well ...Show All
Smart Device Development Form disappears automatically
HI, I try to load a new form from the main form, after closing the main form. The code seems to work fine except that the new form loaded closes automatically. Can anyone tell me how I can solve this problem Thanks very much using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.Sockets; using System.IO; namespace MyClient { public partial class mainForm : Form { RequestForForm RequestForm; public mainForm() { InitializeComponent(); } private void connectButton_Click( object sender, Ev ...Show All
Windows Forms disable text entry in an ultradropdown
hi, does anyone know how to disable the ultradropdown from accepting typing from a user Thanks. ultradropdown Me . ComboBox1 . DropDownStyle = ComboBoxStyle . DropDownList ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/T_System_Windows_Forms_ComboBoxStyle.htm Member name Description DropDown The text portion is editable. The user must click the arrow button to display the list portion. This is the default style. DropDownList The user cannot directly edit the text portion. The user must click the arrow button to display the list portion. Simple The text portion is editable. The list portion is always visible. ...Show All
Windows Live Developer Forums starters question.. why does this basic code not work properly
Hi, I am trying to load a UK address where i pass in as apart of the url. The map moves to the right location, but the zoom doesn't work. The map starts out at a very high zoom level. However if I move the map, then the zoom kicks in, and it is displayed at the proper zoom level. the problem is that te initial maps zoom is wrong. Thanks <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars ...Show All
SQL Server SELECT permission denied on object...
I am using VB 2005 express edition with sql express 2005. I did it this little application that select data from a table. Everything Ok on local but if I use it over lan (it is a workgroup) I obtain this error: SELECT permission denied on object 'Consensi' on database 'C:\dbmarco\plate_dati.mdf' with schema 'dbo' I used SQL Server Management Studio Express to give all permissions to the user for the Plate_Dati database but nothing changed this is the program: Imports System.Data.SqlClient Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Stringa As String = "Data Source=TAPFW\SQLEXPRESS;Initial Catalog= ...Show All
Software Development for Windows Vista How to verifier the Hybrid Sleep function ?
Hello, I have the question how to verifier hybrid sleep function. As i know when the system enter in hybrid sleep mode then it will save the data to memory and disk. If the answer is correct then how can i verifier the system is store the data to momory and hard disk. This is my test steps. Please correct me. 1. Enable the hybrid sleep function. 2. Make the system hybrid sleep function. 3. Wait for seconds then resume the system. 4. The system does not show resume from hybernate. 5. I think this is resume from RAM. 6. Make the system hybrid sleep function,again. 7. unplud the system AC power and battery. 8. replug the AC power and battery to the system. 9. Power on the system then system system shows res ...Show All
.NET Development Measure data-traffic per IP-adress
I have a pc with a number of devices connected to it. They are all connected via an utp cable. All devices have their own IP-adress. Now I want to measure the traffic of this data. In this way I want to check wether there is activity at the device (scanner). So when the number of bytes during a certain period is below a certain value, it must start another process. This must be monitored per IP adress. I want to use C# code to make this work. It's not my goal to measury the connectivity, I've read several articles on that subject. It's really about the quantity of data. Other recommendations regarding this subject are welcome as well. Thanks in advance! LSPs are intentionally native c/c++ code to keep them small and fast as ...Show All
Visual C# String literal problem
hi! din't work. I need some thing in C# that can execute like this: This works in SQl Query perfectly. xp_cmdshell 'dtexec /f \"D:\\SSISProject\\Integration Services Project1\\ArchiveMainMultiTables.dtsx\"/Set \package.Variables[User::connectst].Properties[Value];\""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Provider=SQLNCLI.1;Integrated Security=SSPI;"\"' How do we interp ret in c# currently i have some thing like this which is not correct i need to fix this to work in C# string conn = @"""Data Source=SE413695\AASQL2005;Initial Catalog=TestDB;Provider=SQLNCLI.1;Integrated Security=SSPI;"""""; path = @"""D:\SSISProject\Int ...Show All
Windows Forms Using DLLs in a Windows Form Application
I'm new to Visual Studio (I have VS 2005 Standard Edition) and I'm using C++. I'm trying to learn how to code a DLL with some standard functions I use instead of including a cpp file into every project that needs it. Using the help I got a DLL to work with a Win32 project using __declspec(dllexport) and __declspec(dllimport) and by using a .def file. I know the DLL itself works. When I try a Windows Form Application I run into problems. I follow the same steps for linking to the DLL but I get errors as it can't use __declspec(dllimport). From the help files in Studio I gather because Forms apps compile using CLR:Pure I can't import the usual way, but none of the examples seems to explain what you do to use the DLLs. I've tried .def fil ...Show All
Windows Forms deploying Office 2003 via group policy with Winflp
Hi: I have installed WinFLP in some of my old clients, and i try to deploy office 2003 to winflp with group policy. not The installation runs okay with windows xp client, but not goes through with winflp. I got event error ID 108 & 1085. The policy in winflp client is same as the windows xp client. All my softwares are copyrighted & legal anybody know why i cant deploy the office 2003 into winflp ...Show All
