PatLaplante12345's Q&A profile
Windows Forms DataGridView KeyDown?
(VS2005 - beta 2) Hello, is there anyway to capture a keypress or keydown event in the DataGridView I know there's events called KeyDown and Keypress, but if the DGV is in edit mode, they never get caught. My ultimate goal is to make it so pressing enter moves to the Cell to the right, instead of to the next row but I need to know what key is being pressed before I can do that. Thanks -Adam Hi Logan I would explain step by step You have to derive the datagridview class to do this. First you have to add a new class1.vb to your project and write some code in it: Public Class DGV ...Show All
.NET Development Is it better to buy 64-Bit pc?
Hello, I want to buy a new pc, and I am wondering if it's better to buy 64-Bit pc Any help would be greatly appreciated. Hi Vikram, You're correct. In fact, my HP AMD64 MS XP Pro notebook is already running .NET 1.1! Duh! on my part. I still cannot install the VC++ tools. This is the message I receive as try to install the first disk: "Setup has detected that another program requires the computer to reboot. You must reboot the computer before installing Visual Studion Prerequisites. Once the system reboots, you need to restart setup. Click OK to reboot. Click Cancel to exit setup and install ...Show All
Visual Studio Express Editions Cannot find MSDN Express Library and SQL Server Express in Add/remove programs component section
Hi, I downloaded Visual Web Developer Express on my pc. I did not download the express library or SQL server express because I already have studio.net on my pc, web matrix (and the server it uses) and IIS. I didn't think I needed sql server express, plus I thought I'd be able to download it through "Add/Remove programs" and adding the optional component according to the "Readme" file. SQL Server Express and MSDN Library Express are not in the components section in my Add/Remove programs list. Do I need to uninstall VWD and reinstall it in order to get these components I've already registered the prod ...Show All
Visual Basic Creating a program that can save in a specific file format.
Hello, I was wondering how (and if) to create a program that will allow me to type some text, make some selections, and then save it. What I need to know is how to save the program then be able to re-open it properly. Thanks for any help. Hi X, I hope you don't think me picky. I think there is a clear way to state this and the people who answer your questions will apreciate the clearly. You may enjoy the How to receive an Optimal answer to your question post at the top of the forum. Anyway... I'd ask the question like this: Hello, I was wondering how (and if) to create a program that w ...Show All
Visual Studio 2008 (Pre-release) Trust Not Granted
Hi, I've just installed WinFX Runtime Components - February CTP on my Windows Server 2003. Why I'm getting "Trust Not Granted" message when trying to execute sample xaml files Germans Can you tell me a bit about your machine What version of IE are you running Thanks, Karen ...Show All
Visual Studio Express Editions Web file existist
Hi, I'm building a small program which displays images that are downloaded from a website during runtime. My question is: How do you determine whether a file exists on the web (i.e. check to see if a .gif file exisist at a URL e.g. "http://www.somedomain.com/someimagename.gif") Really the only way to determine if the file is there is to request it and check the status code you get back and/or check the full output as well. A simple way to check the status code is: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.somedomain.com/someimagename.gif" ...Show All
Visual Studio Express Editions can i use the Express Edition to control msWord or msExcel?
hi if i use the Express edition version can i call the Word application and then edit the content or update the bookmark i know the Visual Studio Tools For Office can handle this. Right please reply. THANK YOU Sorry, it is C# code. I write C# all day, so it is the easiest to write it out of my head without starting a new IDE instance. But everything works fine now ...Show All
SQL Server Fuzzy Lookup
How is it possible to get the Unmatched records on the error path of lookup so that they may be passed to a fuzzy lookup. I'm trying to duplicate the 1st example on the Data Cleansing Webcast. All I'm getting is a null on the title out of the lookup component. TIA, GUY Here you go.. http://msdn.microsoft.com/msdntv/episode.aspx xml=episodes/en/20050512SQLServerDF/manifest.xml ...Show All
SQL Server SQL Code converting a String to a number
I am trying to write a SQL code to insert a record into a ODBC table. The variable 'lscus' holds a 12 character string for customer # e.g. 000000000022. The variable captures and displays a 12 character string, but when the INSERT SQL is run it converts the variable into a number e.g. 22. Why is it converting to a number How can I Insert a string value for 'lscus' Thanks for your help Private Sub cmdAddRecord_Click() On Error GoTo Err_cmdAddRecord_Click ' Create todays date into a Format "YYYYMMDD" string Dim stDate As String Dim stTime As Double stDate = CStr(Mid(Now(), 6, 4)) + CStr(Mid(f ...Show All
Software Development for Windows Vista Error with custom activities
In a number of my projects I keep getting stuck when I try to use custom activities in my workflow projects. I add a reference to my activities project into my sequential workflow project and drag on the activity shape from the toolbox. Sometimes I get the build error "Could not create activity of type 'MyWorkflow'. An item with the same key has already been added." I can delete everything and start again and the problem remains. Can anyone explain what this error means I'm using activities and workflows with code-separation, if this is relevent. Much obliged, David. Perhaps it helps you to know that the cod ...Show All
SQL Server Feature requests
May be it's too late, but I think this requests could be scheduled at least for a SP1 if it's not possible for the RTM. 1) Execute Task without debugger: it would be very nice to be able to execute a single task without going in debugging mode. Just as you would ask "Start Without Debugging CTRL+F5" but for a single task 2) Customize default properties for task and component: when you drag a task on the package you get a default value for the properties that you could want to change; often I need to change the same property in the same way each time (for example I'd like to set the Batch Size for a OLE DB destination to 1000 instead than 0 ...Show All
.NET Development Using System.Net Class
i want to write a program which will download a file from internet.......but during that i want to show some updates of most likely like progress or so...... i came to know that i have to follow the IAsync...but no further could you please provide some useful info. The timeout value choose is going to depend on several things... What server you are making the request to. Is the server frequently overloaded What is the average response time for the server What is the longest response time for the server Do you trust the server to correctly respond within a reasonable time One possible timeout is the ...Show All
SQL Server An error has occurred while establishing a connection to the server.
I recently re-formated my personal server and installed SQL Server 2005 on it instead of 2000 which I previously used. Now, I have imported the databases to the new SQL Server 2005, but I seem to get the following error when trying to access the database (from my asp.net page) I've googled and searched the forum, without any luck. Now I was hoping for someone to answer this question, or perhaps guide me in the right direction. Note: I've tried 5-6 different solutions that I found on the net, in vain. Server Error in '/ph' Application. ---------------------------------------------- ...Show All
Visual Studio No data in Reports, but the headers show up fine
C#, VS Pro 2005..... OK, so I've tried the simple approach of creating a form, adding a CR Viewer and ReportDocument to the form, selected just one field from a table (as a simple test - I've tried more complex ones as well). When I run the app and view the form, the report shows up blank, but with the headers visible. Refresh does nothing but, well, refresh the headers. Yep, the Viewer is set to the report name. The preview function shows nice test data having nothing to do with my data - so that doesn't help. Is there a secret handshake to enable actually getting data in a report Something on the order of the way a form is laun ...Show All
Visual C++ output format......
Hi all, I dont know if I am in the right section or not....any way, let's try my lock .. I wanna write a program that compute a formula which depent at the value I will enter..... this is too easy but I want the output be as vector on the x-axis & y-axis ... how I can do this format . Thanks alot Reta OH !!!! I do not know what I say!! All these lines in order to sovle it!!! I tried and my code is extremly different from yours .... but the last one is the best.. Good job Macks ... I can not describe my feeling . Thanks a lot Fire My Regards ...Show All
