Shlomi Meoded's Q&A profile
.NET Development DrawString in .NET
Hi, I am trying to use the DrawString function so that it does not put a space at the heading and trailing of a string I have tried MeasuretrailingSpaces but that doesn't seem to work. I want the string to start exactly at my x coordinate. Do i have to set the StringFormat to achieve this rotsey This method is only defined for the WinForms controls. You might want to ask your question on forums.asp.net . ...Show All
Visual Studio Express Editions Problems with Downloading Registration Benefits
There have been several reports of problems with accessing and downloading registration benefits. We have investigated the issue and have news to report. This sticky thread will be updated with additional information as it becomes available over the next few days. Background In order to negotiate deals with partners and authors to provide the highest value benefits, we must must be able to guarantee a secure download center that limits benefits distribution to those who have registered. We use the Microsoft Connect site to provide our secure download infrastructure, which is why you are redirected to the Connect site from ...Show All
Visual C++ Where does it go?
I have VC++ Express. When I double click an item, the IDE takes me to Form1.h to enter code. Is code suppose to be in a header file My project is called Test. In Source Files there is a .cpp file called Test.cpp. This has the directive #include "form1.h". It therefore should have forward definitions of functions attached to buttons, etc. on the form. But, I can't copy and paste a function definition from form1.h, then enter code here. I get scope resolution problems. I have a .cpp file that contains a function. I put it here so that I can use it over and over easily. However, I can't get scope resolution if I add the file to Source Files in ...Show All
Visual Basic Working with Structure
I Aim to make a new data type based on Structure becase it value type this data type called Binary It work with binary data like 100010011101 and you can make multi manipulation on it my problem is : when i assign value to this structure it must be same as following Dim binVar as Binary 'make varible same as structure binVar.Value=10010101 i want to assign the binary value directly to the the binVar but i always failed , i want to work with this varible as i work to Short Data type ,Decimal and Other value datatype can anyone help me ...Show All
Software Development for Windows Vista Persistence service
Hello, We have started working with the new framework but few things are still not clear to us. We understand that the persistent service is working in the workflow level , does it mean that every time the workflow is moved to idle and we are using persistence service all the workflow will be saved to database and on Unpersist event all the workflow activities are loaded to the memory again What will happen if my workflow have 100 activities and each activity hold complex object that contain data, will it all be load to memory on unpersist event Appreciate your help Me Yes - if you use the SqlWorkflowPersistenceService with Un ...Show All
Visual Studio Team System Remote debugger
When connecting to TE (Tools|Connect to Team Explorer) we get the following errors: 1. Event Viewer: .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3) (80131506) 2. Dialog Box: --------------------------- Microsoft Visual Studio --------------------------- External component has thrown an exception. --------------------------- OK --------------------------- Win XP, No legacy versions have been installed on the box - just Beta3 Refresh on TFS and RTM on the client. We are running Beta 3 Refresh on TFS with RTM on Visual Studio Tim, I have tried all of your suggestions. I c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Matching view to world - help!
1. I have a number of meshes placed in world space. 2. Each mesh is being rendered using three vectors: scale, rotation and position. 3. I am calculating the world matrix with SCALE_VECTOR * ROTATION_VECTOR * POSITION_VECTOR . 4. One of these meshes represents the camera. So, when rendering this mesh I also set the view matrix. 5. The view matrix is calculated using LOOKATLH using the POSITION_VECTOR as the eye and POSITION_VECTOR+ROTATION_VECTOR for lookat. 6. Moving my camera around in the world works fine. The view matrix is providing a nice view into the world - all objects appear to be placed in proper relative posit ...Show All
Visual Studio MSBuild Copy Task works intermittently
For some unknown reason, the Copy Task sometimes works, and sometimes doesn't. Does this happen to anyone else I'm running from the command prompt. I haven't encountered any problems using the Copy task as you are illustrating. Maybe it is something besides the Copy task One possibliity that would work on & off would be if you are copying based on an Item. Items are evaluated at the begining of the build, so if you have an item like: <ItemGroup> <CopyFiles Include="**\*.dll"/> </ItemGroup> The CopyFiles will be pouplated at the begining of the build, when you may be ...Show All
Windows Forms DataGrid - user edits
Sorry if this sounds a bit simple, but using a data grid in Visual Basic.net I'd like to be able to offer the user a chance to update their data once they have done some edits. I do not seem to be able to find an event that fires when this happens! Has anyone accomplished this simple task Thanks. I have a simila ...Show All
Smart Device Development OnClosing / WM_CLOSE message when switching apps (why?)
I have an application that uses multiple forms for data entry. Each for is modeless and is shown via show/hide. All of these forms are stored in an array list until the user requests them and they are shown. When the user switches applications (ie: starts notepad) on the pocket pc, the window (which is visible), has the OnClosing event occur (which I assume is triggered by a WM_CLOSE message). Why is this happening I've dealt with this issue by overriding and cancelling the OnClose, however... It still begs the question... Why Thanks. here you go http://msdn.microsoft.com/library/default.asp url=/library/en-us/guide ...Show All
Windows Forms Find controls on a windows form
Hi, I have a windows form with several controls on it. I need a function which finds a specific control on this form. Is there any function for that already built If not, could you advice me how to tackle this problem Thanking you in advance, Mily I know that this is an old post but there is an easier way to find a ...Show All
Visual Basic variable not recongized
Hi I'm reading a sql query string from an xml file that contains a locationID which is setup as a variable in my code. The xml string looks like this: < Col4 > SELECT Distinct AirportHub FROM IPVPNAirportLocationsAndHubs WHERE LocationID = '" & LocationID & "' ORDER BY AirportHub </ Col4 > In my code the querystring from the xml file is given to another string variable called sSQLQuery Dim LocationID As String LocationID = 'AT' sSQLQuery = my xml string I then have a database connection were I run the query. I was hoping that it would replace the '" & LocationID & ...Show All
SQL Server PDF files with images get unexpectedly large in SQL Server 2000 Reporting Services
When using quite small JPEGS (~ 800 KB) in a report the exported PDF is a few megabytes of size. Am I missing something (e.g. some kind of compression) Can anyone give me a hint on this one Thanks, Neno This problem still occurs in SQL Reporting 2005 localreports. An issue has been opened for this problem. Please add your vote. https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=232211 ...Show All
Visual Studio 2008 (Pre-release) XML column support?
Hello! Linq exists in various flavours, e.g. DLinq and XLinq. Is there a convenient way to take advantage of the new XML column features in SQL server 2005 when using DLinq If yes, any hints Best regards, Heneik Dahl No, because the table in the documentation stating permitted column types does not include XML. Best regards, Henrik Dahl ...Show All
SQL Server Attach an aspnet or sql2005 database on a sql2000 server
Hello I want to attach an ASPNETDB database (generated by the asp.net login wizard system), which is a sql2005 .mdf database I think, to our SQL2000 server. I tried to attach the file directly ; then to attach it to a sql2005 express server, "turning it" into a sql2000 database via the properties, then make a backup, then restore the backup on the 2000 server ; nothing worked out ! One of the method I tried (I don't remember which one) told me it could'nt read the sysindexes table ; of course, because there isn't such table on sql2005 databases. So, is there a way to attach a SQL2005 database (so with no or few system tables) to a ...Show All
