genius15's Q&A profile
Windows Forms Handling special characters with SQL data
Can anybody give me a good way to handle special characters in textboxes I have a description textbox that I need to allow the user to enter single quotes, double quotes and basically any character. I just can't build my SQL Insert strings and run the command since quotes/double quotes could cause the string to terminate within the insert string. Is there& ...Show All
Windows Forms How can I add lines in a richTextBox in C# ????
Hi, I’m working Visual C# .NET 1.1 I have got a richTextBox control with 4 lines: Line 1 Line 2 Line 3 Line 4 Now I want go add one line between Line 1 and Line 2 for example. Line 1 New Line Line 2 Line 3 Line 4 But I don’t know how I can do it. I have tried with richTextBox1.Lines[1].Insert It is possible to add a new lines between others Any example Any help Thanks in advance !!!!!! Hi, I don't know if there's a shorter solution but here's something you could try. I wrote this code after seeing your predicament and it worked out here. string[] tempA ...Show All
Visual Studio Team System Team Foundation Server RC Feb 7th ...
It's almost there ... as noted in Jeff Beehler's Blog : "... the Team Foundation team signed off on their Release Candidate build ..." "The CD images have been handed off to the team that handles the uploads to the MSDN download center and according to current estimates, we should have bits available for download sometime on Tuesday, February 7th." Can't wait to get it ... ...Show All
Windows Forms How to prevent form closing when datagridview errors exist?
Hi -- I've got a form with a datagridview on it. The datagridview allows users to add new rows. When the user adds a new row but doesn't commit it (by moving to a different row) and then clicks the "X" button on the form, I only want the form to close if there's no errors on the newly-entered row. If there are any errors, I don't want the form to close. How do I accomplish this I know I can trap errors in the RowValidating and DataError events of the datagridview but the form is still allowed to close. Thanks in advance, Bill Yes, but how do I know in the OnClosing event that the grid has a ...Show All
Visual Studio VSS 2005 and Visual Studio 2005 Professional Edition
Is Visual Source Safe 2005 included in Visual Studio 2005 Professional Edition I haven't been able to find information on this anywhere. We are worried that we may have to purchase Visual Studio 2005 Professional Edition and also purchase Visual Source Safe 2005. Previously, we only had to purchase Visual Studio .NET 2003 Enterprise Architect which included Visual Source Safe 6. Any information will help. Thanks. Sorry, according with http://msdn.microsoft.com/vstudio/products/subscriptions/chart/ it seems that VSS2005 can only be downloaded if you h ...Show All
Visual C# toolstripcombobox size in the toolbar
I use c#.net 2005 beta2 and i can't resize my toolstripcombobox like office 2003. The only way i found to resize the combobox in my toolbar is to resize the font point of the combobox but after the font is too small. Help me please! Thanks in advance. Hi - Please post Windows Forms questions to the Windows Forms forums. http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=2&SiteID=1 Thanks! Karen Liu Visual C# ...Show All
SQL Server How to manage different input (Excel files) format
Hi all, I have created a package which import data from excel file and do some technical & business validation on the data. My package has about 20 control flow items. Now I'm asked to handle a second (and probably more in the future) excel file format (columns name are different, some fields are murged in one single column...). I definitely don't want to create a different package for each excel file format. But I can't find a way in the control flow to execute a particular DataFlow in one case and another DataFlow in other cases. Typically I would like to evaluate an expression an depending on the result execute a DataFlow or ano ...Show All
Visual Basic Click-Once is not so simple...
ok, here's the problem: i'm using VB.NET 2005 beta 2 all working nicely. i've made an app, debugged it and it runs all nice from the normal exe. but when i went to publish it, it seemed to work all fine until the installation page opened. i try to launch it but it says the "application is improperly formatted". clearly it isn't because i have run the bin exe many times. now, not only does the publishing not work, but when i go back to run the normal bin exe i get another error, once which has never appreared before! it compiles fine, BUT i receive an error saying that the project can't be run: "application configuration is incorrect". s ...Show All
Windows Forms Free Controls?
I need serious help with this. I am fairly new with VB... We have a class project coming up in two weeks, that we have been asked to start working on now. In this class project we are required to use VB.Net controls. At least one. But I am having trouble finding any free ones, that aren't for a trial basis. I would like&nbs ...Show All
Visual Studio Express Editions Using Microsoft.visualbasic.collection type in settings
I am working on a program where the user would want to save several sets of settings. For example, the settings would be used like variable a = a string, variable b = a font, variable c = a string. The user would want to use a different set depending on his choices for recurring type events. (i.e. A.M. use set 1, noon use set 2, evening use set 3, night use set 4) Each set would only contain it's own values for a,b, and c variables, nothing else. These would be user dependent choices, not my choices, so I cannot hard code in a simple select case type thing. I have played around with a separate program just to understand how to ...Show All
Visual Studio Team System MSTest can't find tests in the VSMDI file
I have a solution with two assemblies and two separate (corresponding) test assemblies. At the root is the vsmdi file. Whilst in the IDE I can click on the vsmdi file and see the available tests that can be run... And all works well If I go to the command line and run (from the solution root) MsTest /testmetadata:My.tests.vsmdi I get a "No tests to execute" message I am actually looking at putting together an automated server build and test environment and want to call just one config to run all of my test assemblies Thanks in advance Since this is the same post as http://forums. ...Show All
Visual Basic VS.NET 2005 - Single Instance app and command line parameters
Hi. Would someone be able to provide me with general direction for the following. I am able to easily create a single instance application, thanks to the new functionality built into VS.NET 2005. Now, what I am trying to do is recuperate the command line parameters when switch to the first instance running, when the application is called again. In more details: I have application abc.exe. I run it the first time. Second time I run it, I use the following command : abc.exe /s=123456 Being a single instance application, it will switch the focus to the first instance I ran. Question : How can I recuperate the /s=123456 Thanks for ...Show All
.NET Development Aborting a thread having connectivity to Remoting
Hi, In my application, I have threads which connects to Remoting server and get back the results. This thread is running on a time period through AutoResetEvent (i.e, if the remoting server does not respond for more than 4 mins it Aborts the thread). The problem is whenever the Thread gets aborted inbetween, I will not able to establish the connection to the remoting server again. Even though I create the connection to remoting server again using "Activator.GetObject" and it does suceeds also, but when I call the method on the Remoting server it just does not respond and will be in Wait state forever. Is there anything I need to ...Show All
Windows Forms How to check for updates programmatically
I have a small ClickOnce application that runs (hidden) at user startup. It's used to update virus definitions. When using it on a laptop with a wireless network connection, the program isn't able to check for program updates because it takes a while until the network connection is established. It's no problem to get my virus definitions, because there's a built in delay for that. Is it possible to check for a new publish version (on a web server) by code --Goos van Beek. Another question please, How can I raise the default checking update event The default mean which I have already set it in myproject page. ...Show All
Visual Basic Process Lock Up
Is there a way to monitor processes to see whether or not they are doing anything, then kill them if not The reason I need this is that I have .NET dlls that alter Excel Spreadsheets, and I close them down correctly, but sometimes for some reason the EXCEL process will simply lock up and stop the other files from processing. I want a tool that checks the EXCEL processes and if one isn't doing something, then I want the tool to kill it. Is this possible If so, how I appreciate any suggestions. Thanks, ACFalcon2001 You can use getprocessbyname to get a process object. From this ...Show All
