bursteguy's Q&A profile
Visual FoxPro problem to use in "textbox"
Hi all; my language is Arabic I have a problem to use in "text box" vfp. i can not edit entered in the "textbox" of form. I choosing own of character (in right) my text but chose any of character (in left) I used to setting for the right to left property but it is disregarded. The cursor in the "textbox" is left to right and but I want the cursor in the "textbox" be right to left. My windows is xp professional 2002 sp1 and support language arabic I have tried many different options and none are spaced right. Please kindly help. Hi, hav ...Show All
Smart Device Development MissingMethodException
Hi , I converted my application from .net cf 2003 to .net 2005 cf.then. When i am exit from application , it is giving an error as , Can not find PInvoke Dll 'MessageWin.dll' If a method in class library has been removed ,recompile any assemblies that reference that library . So how to resolve this problem. It looks like your application is using some native MessageWin.dll. Make sure that it's deployed with your application and you have a correct version that is compiled for the device you are running on. ...Show All
Visual Studio 2008 (Pre-release) Problem with Trigger / Setter
I am trying to attach a trigger to a menu item so that the checked state of the menu item will affect the visibility of another element. The menu item and target element are not in templates, but in the main XAML of a window. The code is below: < MenuItem x:Name = " PeersMenuItem " Header = " Peers " IsChecked = " True " > < MenuItem.Triggers > < Trigger Value = " True " Property = " MenuItem.IsChecked " > < Setter TargetName = " PeersControl " Property = " UIElement.Visibility " Value = " Visible " /> </ Trigger > < Trigger Value = " False " Property = " MenuItem.IsChe ...Show All
.NET Development How to capture close event ....of ASP page
Hi all, I have a index.aspx page which call the Login.aspx page. Login page contains two buttons "Login" & "Close". I want to give a popup if the user close the Login page through the "X" button in the browser. for this I used the following. var needToConfirm = true; window.onbeforeunload = confirmExit; function confirmExit() { if (needToConfirm) { return " your changes will be lost. Are you sure you want to exit this page "; } } But now I have the problem of this getting executed even in the close button. I dont want it to happen. Hence I added oncl ...Show All
Windows Forms Wizard Forms
I'm trying to design a parent form with a tree view docked on the left side (for navigation) and a child form on the right side, filling the rest of the parent form. The child forms will work like a windows wizard, with previous and next buttons, and as the user progresses through the wizard the progress will be displayed on the navigat ...Show All
Windows Forms PrivateFontCollections and PrintPreview controls
I am having a heck of a time getting a Printing.PrintDocument and a print preview control to use fonts in a private font collection. I've got a simple form that contains a textbox (for the TTF file path), a label and a Print Preview control. On load, the form adds the TrueType file to the Private Font Collection. A font, scoped to the form class is created from the PFC and assigned to the label. The label, as expected, redraws itself using the new font. Finally, a PrintDocument is assigned to the printpreview control. The PrintPage event renders some text using the new font. However, what is displayed in the print preview control look ...Show All
Windows Forms ownerdraw textbox
After a bit of digging i found out that you can't override th onpaint opn a textbox, wel you can override it but it's is never called Is there some kind of workaround tnx Remco Anders Tornblad wrote: Edit controls (TextBox controls) have always been tricky to customize. In WIN32, you cannot simply catch WM_ERASEBKGND, WM_PAINT and WM_NCPAINT, because Windows does its painting just about anytime it feels like it (when getting/losing focus, on key-press, maybe even in mouse events...). In .NET its even worse. You just won't get to override anything that paints. I even tried overriding the PreProc ...Show All
SQL Server RMO: Replication between SQL Server 2005 amd SQL Server 2005 Express
Hi! On an existing MergePullSubscription (Subscriber: SQL Express) I call the SynchronizeWithJob() method. But each time, the following exception occures: ExecutionFailureException: The specified pull subscription is not configured with a synchronization agent job. But how do I configure synchronization agent jobs in SQL Server 2005 Express I had a similar problem, When you add a reference through Visual Studio and under the .NET tab select "Microsoft.SqlServer.Replication" it is actually adding the RMO assembly. The only way I found to get a hold on the MergeSynchronizationAgent object is to ...Show All
Software Development for Windows Vista Vista Build 5342
Hi. I'm running my AMD64 3300+ with XP Home. I've been MSN-invited to Beta test Vista and have d/l'd Vista_5342_64bit_Main_Staged_DVD_EN.iso at 3.56 Gb. When I click on the downloaded folder, it becomes a winrar archive that only extracts to a readme.txt folder that states "this disc contains a "UDF" file system and requires an operating system that supports the ISO-13346 'UDF' file system". As you might surmise, I can't install the program. I've tried burning it to a dvd but that doesn't help. Any suggestions will be greatly appreciated..thanx! Don't open it with WinRar. Either&nb ...Show All
Visual Studio vstemplate error
I have implemented a vstemplate to create a new project type. When I select the template under my project type I get and error stating that it tried to load an untrusted component and references my vstemplate assembly. This is the error I get in the application event log: One or more Visual Studio templates do not match any installed project packages. I am signing the assembly with a strong name key file through the project settings and I installed my assembly into the GAC. I also tried using the strong name in the <assembly> tag under the <wizardextension> tag in the .vstemplate file, but this didn't help ...Show All
Visual Studio 2008 (Pre-release) Memory Leaks in UIElement.Arrange()
I'm using Microsoft Prerelease Software WinFX Runtime Components (February CTP Build). I have memory leaks in with UIElement.Arrange(). If you run the following code: class WPFMemoryLeak { public static void Main(String[] args) { long initialMem = GC.GetTotalMemory(false); int counter = 0; while (true) { Rect rect = new Rect(0, 0, 300, 300); UIElement ui = new UIElement(); ui.Arrange(rect); if (++counter > 100) { long memoryBeforeGC = GC.GetTotalMemory(false); GC.Collect(3); GC.WaitForPendingFinalizers(); GC.C ...Show All
SQL Server SMO Table Scripting
I was looking at the SMO objects today and the Table object in particular. I noticed it has a script method that will provide the script to create the table. It also has an Alter method which will make the changes that have occurred to the table. However, is there any way to get the script that the alter method is using to alter the database/table Alter seems to return void and I can't find any other way to get the script that SMO is using or any other way to get the script that is used in an alter. Am I looking in the wrong place or is it not possible to get the alter script Thanks, Ashton ...Show All
Visual C# Abort a Thread
hello, i have a problem that i really dont understand !!,, i cant abort a thread, my app get frozen... i have this function: socket is my Socket tcpListeer is a TcpListener listening is a bool listen is a Thread private void StartListening() { socket = null ; tcpListener = null ; tcpListener = new TcpListener(IPAddress.Any, port); try { tcpListener.Start(); listening = true ; lblConnection.Text = "Esperando Conexion en puerto " + port; btnListen.Text = "Cancelar"; //Here i wait for a connection and this can take long socket = tcpLi ...Show All
Visual Studio Team System Where is the Check out ?
I've been playing for some time with the TFS part in the sdk. There is something I didn't see.I didn't see CheckOut command or anything similar to it. Saw checkout,get... but no CheckOut command or any event linked to it. Doe's it go by a different name Avi The Workspace class exposes methods for pending edits against items. For example: PendEdit PendAdd PendDelete PendBranch PendRename PendUndelete Merge Undo Each method has a varying number of overloads. Robert. ...Show All
SQL Server Self-join ?
Hello all, First of i'm not sure whether I post this thread the correct place. If I don't, please forgive me. This is possibly a rather simple Q, but nevertheless a challenge for me: On a single table, I have information about people and their abilities. Each ability is located on it's own row. Person Ability ------------------- A See A Hear B See C &nbs ...Show All
