daxwhit's Q&A profile
Visual Studio 2008 (Pre-release) jumping ListBox
Hi! I have a little problem creating a custom ListBox in Dec-CTP. To see the problem, just paste the code below into XamlPad. Problem: Everytime you select an item at the bottom of the ListBox, the ScrollViewer jumps almost to the top :( Setting CanContentScroll="true" in the Template solves the Problem, but creates other problems in my application, so this solution doesn't help me at all :( Any tips from you guys how to solve this problem Michael <Grid Name="root" xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 " xmlns:x=" http://schemas.microsoft.com/winfx/xaml/2005 "> <Grid.Resources> <Style x:Key="{x: ...Show All
SQL Server granting select permission
Hi, How to grant select permission on table of another database from current database. Ex: I am in database asddb I want to grant select permission on table "test" which is in database bsddb. Can anyone please help me in resolving this problem. ...Show All
Visual C++ Retrieving proxy configuration
Sorry if this question have been asked before. I search for duplicate topic but didn't have much success. How exactly do I retrieve the proxy setting in IE from the registry Can anyone point me to a sample code of how this is done many thanks! Proxy settings for IE are stored in HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings, values ProxyEnabled and ProxyServer. For examples on how to read these, visit http://www.codersource.net/win32_registry_operations.html ...Show All
SQL Server PostExecute() and Cleanup()
So when do I use which and why BOL pretty much makes them the same but I figure there must be a difference rather like PreExecute is the first opportunity to get our hands on the BufferManager so maybe PostExecute is our last chance Thanks Allan Hi Matt Yes that was a Q i was asking myself but thanks for clearing this up. Allan ...Show All
Windows Forms How to change the layout of a control at runtime
how do i change the layout of the controls at runtime while the application is running then save it to load the modified layout again next time. i have an form, which I want to customize a certain portion of it by allowing the user to change the layout of the form. say, the address field would be placed below the postal code or the email text box will be located on top of the phone text box. I want the user to edit it, then save it's settings to the database so that when the user opens the form again, it will load the modified layout( it's user specific, each user can customize his/her own form layout). i've downloaded a code from co ...Show All
SQL Server Postgresql migration tool?
I have a postgres db and would like to convert to SQL Express or standard edition. Is there a conversion or migration tool available I can dump the postgres db to a sql file but MS has slightly different syntax and datatypes so I have to go in a manually modify the sql file for every table and data type. Is there an easier way Thanks! I'm not aware of any such tool from Microsoft but I've moved this thread to the database engine forum where you're more likely to find a knowledgeable answer. Paul ...Show All
Visual Studio Team System Deleting a Team Project
Hi, is there any way to delete a Team Project created by me From Team Explorer exists the remove option but I couldn't find one to delete all the different parts of a Team Project (SCC, Project Portal, Work Items, etc). Is it possible Thanks a lot LucasC In VSTF Beta 3, I can not even find the deleteteamproject.exe file. Can someone confirm that it is supposed to be present, and if so, where I've installed the data tier, app tier, full client, and have searched on all of them, to no avail. ...Show All
Visual Studio Team System TF 30177 Team Project Creation failed
Hi, I have installed Visual Studio Team Foundation Server (Dual server deployment). When I try to create a project team, I get the following error TF 30177 Team Project Creation failed Message: Unable to connect to Windows SharePoint Services at VCORDEVTFS01. The reason for the failed connection cannot be determined at this time. The error log is as follows: .1/5/2006 11:30:35 AM | Module: Work Item Tracking | Thread: 11 | WorkItem Field Found: Name = 'Microsoft.VSTS.Common.Issue', Value = 'No' 1/5/2006 11:30:35 AM | Module: Work Item Tracking | Thread: 11 | WorkItem Field Found: Name = 'Microsoft.VSTS.Common.ExitCriteria' ...Show All
Visual FoxPro migrating VFP app to .net (architecture question)
Hello everyone! I'm a fairly experieced database developer (SQL Server primarily, and Oracle quite a bit less). My experience with .net is primarily vb.net to built asp.net applications, using web services as my middle man. I just started at a new company which has a few legacy systems, one of which is a rather large FoxPro application. There are a host of problems associated with it, primarily data conflicts. Because the company has grown so much, there are a few copies of the data floating around (different parts of the country), and a custom data replication tool was built to try to keep all the copies in synch. From what I understand, th ...Show All
Visual C# ENCRYPTION
Hi, I need a common encryption algorhythm in C# and PHP. Does anyone know of anything that currently exists that could work I.E. is there some similar API's that will if similar keys are passed in will be compatible Thanks, Karlo Hi, I eventually managed to get this working with TrippleDes. A lot of effort put into this. Nothing up on a web site, but will post the URL for a full example in both PHP and C#, else email me for code. Thanks, Karlo ...Show All
Visual Studio Express Editions Transferring data via a COM port
I am realy new at VB so don't laugh please , but i was wondering if anyone could point me in the right direction for figuring out how to: write some code that would take data from the user and send it to another application (hyperterminal) over a COM port. I have the interface built (real tuff hunh lol) but the meat is what im looking for. I know that i should start near the "system.io" namespace, but i am not sure from there. Any takers P.S. PLEASE HELP ME ... Im going crazy trying to figure it out Check out this article about using the Serial Port classes in .NET 2.0: http://www.co ...Show All
Visual Studio 2008 (Pre-release) Help in updating to Feb bits with PeerChannel needed
I am trying to convert an application to work with the Feb bits and encountering a new exception that appears to have to do with a change in the threading model. Is there any information available on this, or on a threading change in the PeerChannel OnLine/OffLine events System.Runtime.InteropServices.COMException crossed a native/managed boundary Message="An event was unable to invoke any of the subscribers (Exception from HRESULT: 0x80040201)" Source="mscorlib" ErrorCode=-2147220991 StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at MS.Int ...Show All
Windows Forms AXIMP: referenced rcw generates error
I have an existing ActiveX control that I am trying to incorporate into a project. The OCX references a COM dll, which I have already imported using TLBIMP for another purpose. I would like to use AXIMP to create the wrapper for the OCX referencing the existing wrapper for the already imported COM dll. Example: helper.dll (existing COM dll) MyControl.ocx (existing ActiveX Control) I already have a wrapper for the helper.dll (MyCompany.Interop.helper.dll) created using tlbimp.exe, which is referenced other places in my project. Now I create the wrapper for the OCX as follows from the VS Command Prompt: tlbimp MyControl. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Why is this winnt.h error
hi everyone, i am just trying to learn directx and studying from a book which uses directx8.1sdk. thus i installed that old version instead of sdk9. when i do not use d3d8.h there is no error. but when i use it and add it to the project's additional include directories list, i get errors like "c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'" here is the code: ///////////// //Basic Direct3D Application ///////////// #include <windows.h> #include <d3d8.h> //function prototypes LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WP ...Show All
Visual Studio 2008 (Pre-release) netMsmqBinding problem with messages larger than 65075 bytes
Hi, I'm having a strange problem with msmq when stored messages are larger than 65075 bytes. The service starts consuming 50% of the cpu and can't receive the message, raising no exception. I'm using Windows XP + Feb CTP Here's a code sample: using System; using System.Configuration; using System.Messaging; using System.ServiceModel; using System.Text; // Define a service contract. [ServiceContract()] public interface IContract { [OperationContract(IsOneWay = true)] void Operation(string message); } public class Service : IContract { public void Operation(string message) { Console.WriteLine(message.Length); ...Show All
