pepitoclick's Q&A profile
Visual Studio Express Editions data search
hi all i'm trying to figure out if its possible to search a database in a way similar to itunes search itunes search works on a key press and with each new charecter typed it refines the possible choices i know you can use 'wild charecters' to replace speciic charecters but am unsure where to start any advise would be apperciated thanks First I would narrow the search down to a single column for performance....keywords, title etc... but from there it is a matter of using a keypress event to build an sql string using a where clause and the 'LIKE' operator and then narrowing the search results as the characters are typed... for example the user types "A" Select * From MyTable Where K ...Show All
Visual Studio Team System error with unit testing web site
I have a web site (IIS based) and now trying to write unit test for that. I keep getting following error for a simple method test: - "Could not connect to the web server for page 'http://localhost/Support/Training.aspx'. The remote server returned an error: (404) Not Found.. Check that the web server is running and visible on the network and that the page specified exists." I can browse the page without any error though. Here is my code in Training.aspx.cs public string SayHello() { return "Hello"; } and my test code is - [TestMethod()] [HostType("ASP.NET")] [UrlToTest(" http://localhost/Support/Training.aspx ")] public void SayHelloTest() { PrivateObject po = new PrivateObject(TestContext ...Show All
Visual C++ exit on enter key
Hi All, i am facing a problem on hitting enter key. my application gets terminated when i press enter key. i have checked (on cancel/on close functions). i am unable to get the function which runs when we press enter key. Pls help. Thanks and Regards Munish Gupta Note that this question was asked in the VC General forum 5 minutes previously to this one. If that other question was not posted by you then it probably was posted by someone working with you. You and the other person need to coordinate. If both questions were created by you, note that the use of two user names does not mean that we won't notice the duplicate questions. It is not good to ask the same question in multiple place ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple Pass Post-Processing
This has been bugging me for a while, whenever I try to execute a multiple-pass technique that affects the entire screen, the only pass that makes any difference is the one executed last for example: pass P0 { PixelShader = compile ps_2_0 Blur(); } pass P1 { PixelShader = compile ps_2_0 GrayScale(); } The screen is only changed by the GrayScale effect which is the last pass, I would like to be able to blur the screen, and then make it gray scale without having to make a seperate method that does this. Thankyou for any help, and I'm sorry if I'm unclear. Sadly that didn't seem to work, even with a lot of fiddling, well this is the code that I'm using for my post p ...Show All
SharePoint Products and Technologies Random Error utcDate SharePoint Server 2007
I randomly get the error listed below (mind though that I disabled custom error logging and enabled the stacktrace to see the full error). This errors seems to occur randomly when I try to add a web part or go to the web part gallery. A refresh of the page almost always solves it. Specified argument was out of the range of valid values. Parameter name: utcDate Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: utcDate [ArgumentOutOfRangeException: Specified arg ...Show All
.NET Development Aspect Oriented Programming techniques - intercepting calls to properties/methods - how?
I'm curious to know how aspect-oriented programming tools for .NET are able to work. In other words, how do you intercept a call to a property getter or setter, or to any other method Is it possible to use reflection and the Emit namespace to read an assembly and replace it with another assembly that is identical except for a few extra method calls before and after what was previously the method body Does this need to happen in a linking step (weaving multiple assemblies together) or could it be done dynamically by replacing an in-memory assembly What restrictions does the CLR impose on reaching into an AppDomain and making in-memory changes to the MSIL there Is it able to re-JIT changed methods Dan O ...Show All
Windows Forms Capture Form Close
Hi, I have a Form with 'OK' Button and 'Cancel' Button. If I click 'OK' the form closes and send some page to the Printer. 'Cancel' is to cancel printing.. Issue is, when i click Red Cross button to close the Window.. its giving print... which should perform same action as 'Cancel'.. How to capture when user clicks Cross button to close Window.. Thanks you can implement the form_closing event which will fire when the form is closing either by doing Application.Exit() I believe or doing form.close() or pressing the closing (cross) red button. Does this help once the event is fired and you implemented this event, then do whatever it is you want from the form_closing event. This can be implemented from the designer ...Show All
Visual C# Saving User Settings on Version Update
Hi All! The new feature using which we can save user settings in the Settings.settings file is great and very easy to use. What I want to ask is on the assembly version update it null and voids the previous version user settings, my requirement is to use those settings in the next version as well. Like I take DBName, uid, pwd from the user on the first version and save it into the user settings (they need to be in the users settings as they change for each user), when I through an update on them, I'd like to retain those user settings, but they are unsaved and those settings are blank. How can I recover them in c#, so that I can continue to use them in the next version as well I need this urgently to solve my problem, hope you peo ...Show All
.NET Development When is required a system reboot for a .NET application?
Hello guys, Do you know of a checklist of what circustances may require to restart your system after installing a .NET Framework application This is my case: I have a .NET Framework application that is installed using an InstallShield basic MSI project, together with the application, a .NET windows service is also installed. Yesterday I had a customer claiming that he had found a bug in the application, and I realized that the problem was only reproduced when a previous version was replaced with a newer one (in other words, in the same Windows session the applications is uninstalled and again installed)... the service is supposed to launch an application that requires to display GUI, but even when the process is created and launch ...Show All
Visual Basic Using images as baground slows down my program alot!!
Hi Im working on an aplication and is far from finished, but already now the program seems to be a bit slow. I've experimented with using a picture as a bagground (i really like these small fading bagrounds from light blue to white) but this seems to realy slow my program down when switching beetwen forms (not just in design fase, also in the compiled version) i only use gif images 256 colors so it isnt large images (about 12 kb). I use the tab control and when putting a background image on it, it really slows down!! I have a labtop 2800 Mhz with 756 Mb ram and xp sp2, so the hardware shouldnt be the problem. Is there a compiler problem in visual basic 2005 that the developers might be working on I use visual studio 2005 proffesio ...Show All
Visual Studio Express Editions How can i kill a process?
o.k i i am trying to kill the iexplore.exe process what am i doing wrong here the code: Public Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ps As Process ps = Process.GetProcessByname( "IEXPLORE.exe" ) ps.Kill() End Sub i get this error: Error 1 'GetProcessByname' is not a member of 'System.Diagnostics.Process'. the funny thing is that the exact same code works with "getprocessbyid" tnx nice (: it's working now ypu see, i learnt a program language once so i tried to search for the problem. but since i am not fimiliar with vb i didn't know many things for example how to get ...Show All
Software Development for Windows Vista IMAPI v1 error on Vista, works on XP
In testing my application with Vista I've found that the CD Burning module reports an error on Vista. SetActiveDiscRecorder() fails with error IMAPI_E_GENERIC. The format used is Red Book. The same code works in XP on the same computer. The code creates the MSDiscMasterObj instance, calls Open(), SetActiveDiscMasterFormat(IID_IRedbookDiscMaster), enumerates the installed CD recorders, then calls SetActiveDiscRecorder(). I understand that Imapi v2 is a redesigned version of Imapi v1 and that in Vista Imapi v1 is implemented on top of v2, but shouldn't existing v1 code should continue to work Thanks, Flavio. I also see a similar problem - The Code written for XP using IMAPI v1 fail ...Show All
SQL Server xp_delete_file
I created a maintenance plan to remove files older than 2 weeks. The plan executes successfully, but does not work. I notice in the log that the single quotes are doubled. I ran one command which worked, but others did not. Is there a problem with the command Here is a copy of the log: Microsoft(R) Server Maintenance Utility (Unicode) Version 9.0.1399 Report was generated on "SQL". Maintenance Plan: Clean Up Backup Files Duration: 00:00:12 Status: Succeeded. Details: Cleanup Master (SQL) Maintenance Cleanup on Local server connection Cleanup Database Backup files Age: Older than 2 Weeks Task start: 9/12/2006 7:34 AM. Task end: 9/12/2006 7:34 AM. Success Command:EXECUTE master.dbo.xp_delete_file 0,N''F:\SQLBackup\master'',N''ba ...Show All
Windows Forms Autocomplete
I have this function, i try to have an autocomplete function, where when the user types a number it will go to the database and pulls the right Login. I am new and first of all get an overload on the SQL statement. Thank you in advance for your help Al private string GetOptions(string match) { this._retStr = ""; string strConnection; strConnection = "Data Source=source;Initial Catalog=APR;User ID=test;Password=test"; SqlConnection sqlConn = new SqlConnection(); SqlDataReader sqlDr = null; try { SqlCommand sSql = new SqlCommand("SELECT userLogin FROM Admin WHERE userLogin = '", match, ";", sqlConn); sSql.Open(); sqlDr = sSql.ExecuteReader(); } ...Show All
SQL Server can I pull a sql 2000 datafile into sql express ?
Can I do this with a sql 2000 database http://www.cryer.co.uk/brian/sqlserver/howto_movedatabasefile.htm then attach sql express to this mdf hi, just perform a backup->copy->restore or a sp_detach_db->copy->CREATE DATABASE xx FOR ATTACH (sp_attach_db has been deprecated in SQL Server 2005, but still usable), http://msdn.microsoft.com/library/default.asp url=/library/en-us/tsqlref/ts_create_1up1.asp then you have to modify the compatibility level of the attached database to 9, http://msdn2.microsoft.com/en-us/library/ms178653.aspx , modify the database owner to a valid user, http://msdn2.microsoft.com/en-us/library/ms178630.aspx and finally regenerate database user's tables statistics with full scan, http://msdn2.m ...Show All
