Rubens's Q&A profile
Windows Forms How to run clean-up-code on Application shut down.
I want to do my own private clean up opperation before my windows form application is beeing shut down. I want this clean-up code to be run in the following sittuations: 1. The Application is closed by the user, in normal way. 2. The Application&nbs ...Show All
Windows Forms SqlConnection and Dispose in Windows Forms
Hi, I'm new to Windows Forms development. I'm developing a simple Windows Forms Application with 3 forms, MainForm, FormA and FormB. The MainForm simply contains 2 buttons to open FormA and FormB in a modal fashion using ShowDialog(). FormA contains some text boxes and a button to add a record to a database table in SQL Server. FormB reads the database table and displays some information. So, we can go the MainForm, click on a button to open ...Show All
Windows Forms Webbrowser control ignores Disable Script Debugging when set in IE
I have both - Disable Script Debugging (Internet Explorer) and Disbale Script Debugging (Other) checked and still I get the script error message dialog box in the Webbrowser Control. I do not get it when using IE. IE is currently at Version 6.0.29900.2180.XPSP_SP2_GDR.050301-1519. The truth is I have always gotten, for the WebBrowser control, no matter what release or service fix. Has anyone seen a blurb from MS as a known issue ...Show All
Visual Studio Express Editions what chose C# or C++
what chose C# or C++ If you are just starting out and want to make windows apps I'd choose C#. It's a wonderful language and the .net framework offers a lot. VStudio is is the best IDE out there in my opinion also. C++ is what I learnt at university and also a great programming language to use and gave me an excellent base to learn c# but for windows apps I'd choose c#. It's all personal preference and once you learn one of the oop languag ...Show All
Visual Studio Team System MSTest "Specified cast is not valid"
Hello, I am trying to run our tests with the command prompt via MSTest.exe. The tests run fine from within VS, but I get this error from the command prompt. MSTest /testmetadata:C:\myProject\project.vsmdi ... Starting execution... Specified cast is not valid. We have 800 total tests, 300 ignored, 5 projects. Each individual project runs fine from the command line using "/testcontainer". Some notes: 1 - I am running VS Team Edi ...Show All
Microsoft ISV Community Center Forums Do we qualify for an ISV buddy?
Hope this is the right place to ask a question like this. I apologize if it is not. I am a developer for an IT group within the Federal Aviation Administration. Would we qualify for an ISV Buddy We don't actually sell software but we do develop software for other federal govenment agencies. If we don't qualify is there a program similar to ISV buddy within Microsoft that we may qualify for Thanks in advance. Doug ...Show All
SQL Server Processing NULL values
I have an input file that may have NULL's in it's fields. The fields are of a various data types. The NULL value is represented by - question mark. Is there a way to set package or file connection up in a way - so it treats as NULL The only other way I found is to use Derived column - and so I have to create derived field for most of the fields (150 of them) since a lot of them may contain - or NULL. Any idea ...Show All
Visual C++ rand() not being random!!!
OK An other problem which I really need assistance with I'm using srand to generate random numbers out of a range BUT i always get the same sequence of numbers!! But I notice the problem come from rand() i tried to create a new project with only this : #include <ctime> #include <iostream> using namespace std; void main() { srand(time(NULL)); cout << rand() << endl; cin.get(); cin.ignore(); } ...Show All
Visual Basic Help with managing processes
Hi, i have started to build a antispyware program. Now, i want to make the resistant shield that stops spyware running at a process. Then i want to make something that detects sort of processes ex : istsvc.exe(istbar) and shows an alert and stop the process. Can someone help me with that code Yes, good spotting Dustin. GetCurrentProcess will return YOUR applications process, not all processes. Change your definition as follows; Dim cur ...Show All
Visual Basic Radio Button List and Data Binding
Hello, I would like to bind a Radio Button List to a Database field. How do I go about it From the "Data sources" window, I changed the "Field Type" to "Radio Button". However, I am unable to populate the values automatically. Any help or Sample thanks a million Check out this article. It has downloadable source. http://msdn.microsoft.com/msdnmag/issues/04/07/AdvancedBasics/ ...Show All
Visual Studio Express Editions printing form?
Hi all, is there a way in vb express to print all data (there are inputed and calculated in textboxes) from form like a document spike76 wrote: Hi all, is there a way in vb express to print all data (there are inputed and calculated in textboxes) from form like a document There are several posts in this forum on Printing and Printing a form. You need to read a few more posts ba ...Show All
Visual Basic Upgrade Wizard Error - SSTab
Hi, I am attempting to upgrade a working VB6 project to VB.Net 2003. I am using multiple forms in the project and a couple of them use the SSTab control. When the Upgrade Wizard attempt to perform the conversion I get the following message... Upgrade failed: Exception occurred: The referenced component SSTab is missing a design time license. I have tried registering the ocx on the system that I have 2003 installed on, copying the ocx to ...Show All
Windows Forms BindingSource.RemoveCurrent => Delete from database?
What has to be used: 1) _bindingSource.RemoveCurrent() 2) _dataRowView.Row.Delete(); 3) _row.AcceptChanges(); 4) I don't that I have to use the automatically generated tableAdapter.delete Method...i would hate to type in > 50 parameters 5) what else - what is recommended Thanke Peter Ok I found out - so obviously if i you got it ;-) _row.Delete(); _rowTableAdapter.Update(_row); ...Show All
Visual C# How do I find a value inside an Excel spreadsheet?
Hi all, I am trying to use the Excel.Range.Find method on a range object in order to find a particular value inside an Excel spreadsheet. However, everytime I execute the find method it throws an exception that says, "Find method of Range class failed." I don't know why this is happening. Here is a snippet of my code: using Excel; string workbookPath = @"C:\somewoorkbook.xls"; Excel. Application excelApp = new Excel. ...Show All
Visual C# Check whether string contains uppercase letters
I want to create a password validation method so i want to check whether sring contains at least 1 uppercase letter... how do i do this public void ChangePassword(string UserID, string oldPassword, string newPassword) { if ( IsValidPassword(UserID, oldPassword) ) &nbs ...Show All
