Big H's Q&A profile
Windows Forms Autocomplete combobox
Hi, I am using autocomplete combobox of MTGC. My problem that when I press keys it fire selected event becouse the text is same as one of items in combobox. I don't need this event for keys except of Enter and Tab. This event is same as mouse selection event and it couse to my function to do that I don't want. So: 1) How can I catch mouse click in dropdownlist in combobox 2) How can I set that when it match the item by key it doesn't fire event of selected Thank's Alexei Hi Alexei! I hope this topic is still a issue for you: I suffered the same problem, here's my solution. This control was developed for the 1.0 or 1.1 fram ...Show All
Windows Forms What's the purpose of 'PreviewKeyDown ' event?
What's the purpose of new 'PreviewKeyDown' event The doc doesn't say much. Is the only difference that it occurs before the 'KeyDown' event If everyone start using this instead, won't it simply replace 'KeyDown' When should I use one or the other I found this excellent answer: http://blogs.msdn.com/jfoscoding/archive/2006/01/26/518181.aspx " If you've struggled before with having to override a class in order to set IsInputKey=true so you can get arrow keys for your control, you can now also use the PreviewKeyDown event." That's apperently what's is for. ...Show All
Software Development for Windows Vista VS6 C++ Compile error using "GetAddrInfo"
Hi, Windows XP SP2. Platform SDK recently downloaded. VS6 C++ SP6. I am using the 'GetAddrInfo' function ( DLL Ws2_32.dll) Header ( Ws2tcpip.h) When compiling I get the error "c:\program files\microsoft platform sdk\include\wspiapi.h(45) : error C2265: '<Unknown>' : reference to a zero-sized array is illegal " I believe there is some 'compatability' issue between IPv4 and IPv6 functions !! Not sure how to sort it though. IS it because the SDK stopped being compatible with VS6 sometime ago Can anyone offer some ideas for what is I believe a not unique issue ! Thanks, Jon. Can ...Show All
Windows Forms Menu Help Please
I'm dynamically creating a menu from a database table and don't quite understand how to add the click events for each menu option. I can add a single click event that handles the click event for for all options, but how can I make each click event unique Stripped down Menu example: -->File ------>Open ------------>Item Report ------------>Loc Report ------------> .... (m ...Show All
SQL Server Debuggin on PDA
when i am debugging solutoin later have a error: Error is : Could not write to output file 'LOREAL_TERMINAL_PROG.exe' - Sharing violation later not debugging can i do thanks... Looks like no body understood your question and hence there were no answers. If you are still getting this problem, please post more details! Thanks Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Everywhere, Microsoft Corporation ...Show All
Windows Forms Hide certain standard control's properties from designer
Hi, I created a custom control which inherited from Forms.Button. There's no problems to create & expose custom properties but... I cant find anyway to hide the standard Button's properties... Note that I'm using J# Thanks override the property, apply the Browsable(false) attribute. . . call the base property to access it. this is c#, but the approach should be the same: public partial class MyTextBox : System.Windows.Forms. TextBox { [System.ComponentModel. Browsable ( false )] public override string Text { get { return base .Text; } se ...Show All
Visual C# Enterprise or Pro
I had been using VS2005 Enterpise and then switched to VS 2005 Pro. Now a friend of mine says Enterprise is the better of the two programs. I'm an egotist and want the best. Does any one know which is the better program for sure, not just your opinion. Thank you for any help you can give me. Jim Diamond For a VS.NET version to be "better" would actually depend on your requirements, however, if u HAVE to have the version with the MOST features, that the VS.NET 2005 Team System version check the product comparisons for yourself http://msdn.microsoft.com/vst ...Show All
Visual Studio Express Editions Random Letters
How do I get a Random Letter I think I need to first get a Random number, then have the number = a Letter i.e A=1, B=2 etc but how do I do this This might help: Dim str As String = "" Dim i, n As Integer Dim c As Char Dim rand As New Random For i = 0 To 9 ' Length of string required n = rand.Next(65, 65 + 26) ' A thru Z c = System.Convert.ToChar(n) str = str + c Next MessageBox.Show(str) It's perhaps not the best way of achieving this, but it works... HTH ...Show All
Visual Studio Team System Add Data Source for Test Data Using MDF File
Hi, I am trying to add a data source for data driven web testing using an MDF file rather than a database server specicifically. This is important so that others can run the test on their computer. Unfortunately, "SQL Provider using File" is not listed as an OLEDB provider. How do I specify the data source as and MDF file rather than specific server connection I know this was possible in Beta 2 but I can't seem to get it to work in the RTM bits. Thanks, Stuart You should still be able to do this -- on the data connection string property in properties window, select the "..." button. T ...Show All
SQL Server Reusing a Chached Lookup component
Is it possible to reuse a Lookup component which is configured with Full chaching My requirement is as follows.... A input file have 2 columns called CurrentLocation and PreviousLocation. In the dataflow, values of these two columns needs to be replaced with values from a look up table called "Location". In my package i have added two LookUp components which replaces values of CurrentLocation and PreviousLocation with the values available in the table "Location". Is there any way to reuse the cache of first lookup component for second column also Hi Gopi, I guess the ...Show All
Windows Forms Conditional deployment
Hello everyone, I'm deploying a windows application. In the very beginning of the installation process, I added a checkbox dialog to let the users specify whether they have a particular software (our cstomer software) installed on their machine. What I want to do is, if there is one installed, display a textboxes dialog to do some settings; otherwise carry on without displaying any dialoge. I'm not sure if it is possible, any comments appreciated. Are you building a Windows Installer (MSI) setup In this case: it is possible (by adding a condition to the ControlEvent table entry for the "Next" butt ...Show All
Visual C# KeyPress Event Using C#.net Coding
hi Can any body send me peace of code that how to use keypress event in asp.net using csharpt coding i am really stuck on this issue i don't because keypress events in not availble in csharp.net what to do i need a keypress event to validate the textbox control in csharp pls reply me as soon as possible very urgent syed hanif sh you should ask asp.net questions at www.asp.net In this case, it's easy. Because your code is generated on a server, in C#, and runs on a client, as HTML and jscript, there are no keypress events available to you in .NET, nor can there be. You can catch key presses in jscript, but the ...Show All
Visual Studio Express Editions Back to Beta 1?
Hello, After installing Beta 2 I have found that a Website I had built is now incompatible and rather than re-write the whole thing again I was wondering if it is possible to just un-install Beta 2 and put back Beta 1 on. I need to get this working again very quickly (for next monday actually) so any help would be much appreciated. Kind regards, - Mark PS - Or can you just convert a website to support the new version You should definitley more your stuff forward -- it isn't that hard Check out: ASP.NET 2.0 Directory Naming Changes ASP.NET 2.0 Compilation Model Changes This explains the big change ...Show All
Visual Studio Team System Can someone please explain Team System to me
I've been reading all these comments all over blogs on asp.net, etc.. About how Team System is going to short change individual developers. Seems like the professional version is going to be like EA is now, but I'm not really sure. I like the reverse engineer functions in EA, but I'm not sure what is going to be in each of the versions. The architect version of VSTS sounds cool, but I'm not even sure you can do development with it. Maybe someone at MS can explain the differences between the versions so I can choose which I will need. I would think I would want all the functions at various times, but that may not be possible with th ...Show All
Visual Studio "Load Report Failed." When trying to launch a Crystal Report with VS .NET 2005
Whenever I try to view a Crystal Report using the Crystal Report Viewer built in to Visual Studio .NET 2005, I get an unhandled exception saying the "Load Report Failed.". The section of code I have to bind the report is: string reportPath = @"F:\unnamed.rpt" ; ReportDocument reportDocument = new ReportDocument (); reportDocument.Load(reportPath); crystalReportViewer1.ReportSource = reportDocument; Here is the exception detail: System.Exception was unhandled Message="Load report failed." Source="CrystalDecisions.CrystalReports.Engine" StackTrace: at Crysta ...Show All
