Anat Oren's Q&A profile
.NET Development Windows Form performance
Hi. I realise that this post may be a bit general, but Im really after some hints/tips as to where to start. We recently took ownership of a .net 1.1 windows forms application. I have about a years experience with .net and about 6/7 with java awt/swing. This front end application was developed by another team and in my opinion, is very poorly coded. It is a direct replacement to a java awt gui and it makes exactly the same backend calls (through a web and j2ee layer) as the java application does. There have been various complaints about the performance of the app (its used internally by about 6000 people) and is perceived to be slower than t ...Show All
Visual Studio Express Editions VWD Admin Site won't load
Hi, Every time I try to access the admin site on the built in webserver I get these errors: The following message may help in diagnosing the problem: System.InvalidOperationException: Method failed with unexpected error code 50. at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext) at System.Security.AccessControl.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections ...Show All
Visual C# Hiding the vertical scrollbox on a multiline textbox
Is there a way in c# to hide the scrollbox (on the right hand side of the control) on a multiline textbox In order to remove all of the scrollbars, set the ScrollBars property to ScrollBars.None. To remove just the one on the right and leave the one on the bottom... set the ScrollBars property to ScrollBars.Horizontal. ...Show All
Visual Basic How do I map a network drive in VB 2005?????
Hello, I am making a small app and want to be able to perform some actions on a network drive based upon questions. I would like to be able to copy some files and folders, change the NTFS perms on them, and then open a specific text file, make some changes and save it. All of these things have NTFS permissions set for Administrator only. Since the application is to be ran by Non-Administrators I need to run the code with higher perms. I saw the impersonate command but the examples that I found were for asp.net and I didn't fully understand it. Below is a snippet of what I'm trying to run. Public Sub GetInc() Select C ...Show All
SQL Server ambiguity performance problem
The first query execution time less than 1 second But the second query takes around one minute SELECT ACC_KEY1,ACC_STATUS_LAST FROM PSSIG.CLNT_ACCOUNTS INNER JOIN PSSIG.CLNT_CUSTOMERS ON PSSIG.CLNT_ACCOUNTS.CSTMR_OID = PSSIG.CLNT_CUSTOMERS.CSTMR_OID WHERE (PSSIG.CLNT_CUSTOMERS.CSTMR_START_DT >= '1900-1-1 12:00:00') AND (PSSIG.CLNT_CUSTOMERS.CSTMR_END_DT <= '2106-12-31 12:00:00') AND (PSSIG.CLNT_ACCOUNTS.ACC_KEY1 >= '0000000000000') AND (PSSIG.CLNT_ACCOUNTS.ACC_KEY1 <= '9999999999999') AND (PSSIG.CLNT_ACCOUNTS.ACC_STATUS_LAST in (5,-999)) AND ACC_KEY1 > '0' ORDER BY ACC_KEY1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Theory: Multiple SDK/DirectX Installations and the C3635/C3377 problems
First off this is what I have installed in regards to .NET, DirectX and Programming Software - all in their own directories. DirectX - October 2005 Edition DirectX - December 2005 Edition DirectX - February 2006 Edition Visual Studio 2005 Express (C#, C++ etc) - Net SDK 2.0, DX Feb2006 Visual Studio 2003 C++ - Net SDK 1.1, DX Oct/Dec and Feb (separately) Visual Studio 6 C++ (Not used since 2003 installed last year) Net SDK 1.1 Net SDK 2.0 Both before and after installing Feb 2006 DirectX I have found I could not compile a simple program in 2003 C++, just creating a device without receiving 3 or so error messag ...Show All
Visual Studio Going from item list to individual items
Say I have a setup like so: <ItemGroup> <FooFile Include="*.foo"/> </ItemGroup> <Target Name="ProcessFoo"> <Exec Command="app.exe @(FooFile)"/> </Target> In this case app.exe can't handle multiple .foo files. I need to feed those files to app.exe one at a time. How do you do this in MSBuild Found it: You reference it like so: @(BooFile, ' '). BTW, this is a great PDF resource even though it was from TechED 2004: http://supportech.insa-lyon.fr/Download/HOL/TechEd04/DotNET/MSBuild.pdf If anyone has a link to a newer version of ...Show All
Windows Live Developer Forums Sandbox for testing :)
Hi, I didn't want to send out xml files, bugger my friends to play, or do polygamy, so I decided to create a Sandbox for multiplayer testing :) Currently it supports almost everything, except filetransfer, and the _NewEnum method of Users (how does it work anyway ) To test your app in the sandbox youu will have to do some minor modifications: First, do a simple search&replace replacing "window.external" with "GetExternal()" Next, add the function GetExternal to your script, steal it from one of the added test-games. Lastly, remove any unnecesarry headers, like doctype and meta stuff, somehow this f*cks up the script :P Currently, all I'v ...Show All
Visual Studio Debugging BackgroundWorker threads
This seems so big that I think it must be a something I'm doing/not doing. I have a main form with a BackgroundWorker. If I set a breakpoint in the background worker and debug then execution stops at the breakpoint. If I single step then execution resumes and doesn't stop at the next statement. More over, when I pause again the debugger shows the point of execution to be the top level Application.Run(...) statement. If I try to perform anything else on the thread then it reports that it is already busy. It certainly appears to have stopped running. If I just use break points then I think it can cope. Any ideas I co ...Show All
Windows Forms param tag does not work!!!
I have declared public properties in my Windows.NET control with the exact same name as my <param> tags however none of them are showing up in my control. Help what am I missing here is the code namespace Test { /// <summary> /// Summary description for UserControl1. /// </summary> public class FolderBrowserControl : System.Windows.Forms.UserControl { private System.Windows.Forms.Button btnBrowse; ...Show All
SQL Server Maintaining Security
I am a beginer in SQL Server. I have developed a simple accounting application in VB and SQL. Now I have successfully completed my application. Now I want to deploy it to my client. So I installed SQl Server and required VB components in the clients computer. I also created 'sa' login and secret password only know by me. I thought my data in that clients computer was full safe but later on i found that we can also connect to the sql server using the NT administrative account and easily change the data of the database. So now I am worried that if someone enters and access the clients computer with administrator's password then he/she can chan ...Show All
Windows Forms in arrays...
Hi, I'm trying to read a text file, somewhat like this: #15-07-2001 sdkfhksdfhsdc cskjmcdfcsd #13-12-1999 asljkdaksjxd dcjdvf etc... I want to save the dates... so I put up something like this: string line; string date; StreamReader sr = new StreamReader(...); while((line=sr.ReadLine()) != null) { if(line.StartsWith("#")) { line = line.Remove(0,1); ...Show All
Visual Studio Express Editions Visual Studio 2005 Image Library
The help file states that the ' Visual Studio 2005 Image Library ' is available at \...\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary\ However on my pc there is no file anywhere. I have tried searching on the microsoft web site and all i get is the blog referencing this file or the same help page ( http://msdn2.microsoft.com/en-us/library/ms247035.aspx ) Has this image library been removed or is it not available for the express editions Regards Justin hi, yes i can't locate this library on my computer too in Visual Studio 2005 Registration Benefits page has s ...Show All
.NET Development Packets Glued together Problem
I am writing a program , a simple chat program,but when i try to send packets or msgs from the client to the server very fast the server recives the packets glued together, and not one after the other as it should be this causes an exception in the xml processor method. why would packets get glued together, or even get broken in 2 when the reach the server Avada You really need to understand the TCP programming. I suggest you pick up a book on Network programming and suffer through it. I wish I could explain the stuff here but I would be writing another book :-) Here are some hints 1) TCP is a realiable protocol. Data is not sent t ...Show All
Visual Basic Customize combobox index
Is it posibble to give the items in a combobox a different index Meaning, maybe giving the first item the index 4 and the second item the index 7 and so on. Or is there another way to do this: Im reading some data from a database that contains a number (an index) and a name. Both of these should be in a combobox but only the name displayed The name is put into the combobox and when i select that name, the index that the name has in the database should be known also. No you can't, but you can insert an item into a specific index, here is an example : Dim Name As String = "MSDN" Dim Index As Integ ...Show All
