Ed Hintz's Q&A profile
Windows Forms Application.Exit(); not working when backgroundWorker.IsBusy!
Can you please tell me why is that and how can I solve it if (backgroundWorker.IsBusy) System.Diagnostics. Process .GetCurrentProcess().Kill(); Application .Exit(); Does the work, but I have a feeling that this is not a proper way to do it! Please help. Thank you in advance. Thanks a lot guys. It turned to be because of this: // Wait for the BackgroundWorker to finish while (backgroundWorker.IsBusy) { // Keep UI messages moving, so the form remains responsive during the asynchronous operation Application.DoEvents(); } Which I copied from: http://msdn2.mic ...Show All
Visual Studio Express Editions how do you converting visual basic 6 projects into visual c# projects
Ok i have visual basic 6 projects Is there an add-on to convert visual basic 6 projects to visual c# projects I tred to run visual basic 6 project into visual c# and nothing VBV.Net and C`# are different languages, and VB.Net is the only one that has the upgrade tools for VB6. The only way is to use the above path. Note that you can purchase some of the converters that will do the complete project from vb.net to c#. ...Show All
.NET Development submitting data to server
hi, i created webservice which send input parameter to sqlserver ,when i click the function name in webservice,it throwing the error like this,what changes i need to do any correction in my codings is there any better way to do this clear me Iam new to this dotnet applications.help me error System.InvalidOperationException: The SelectCommand property has not been initialized before calling 'Fill'. at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) my codings: [ WebMethod ] public DataSet addcustomer( string Id, string Fname, string Lname, s ...Show All
Visual Studio Tools for Office Find and replace for Strings over 255 charaters in Word
I'm trying todo a find and replace in Word 2003, replacing a found item with a string that is greater than 255 characters in length (believed to be the limitation due to the find and replace in word). My plan was todo a find to highlight what i wanted to replace, then just inserting text over that highlighted area, unless there is a better solution. If this is the best solution how do I go about setting the range values required to insert over the already highlighted text Any help would be greatly appreciated :) Hi Edward OK, you know you're supposed to ask general automation questions here : http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.automation&lang=en& ...Show All
Visual Studio 2008 (Pre-release) Install Issue Orcas RC1
I have the following installed .NET Framework 3.0 (RC1) Microsoft Windows Software Development Kit (SDK) for RC1 Visual Studio 2005 But the Orcas RC1 tells me that i'm missing .NET 3.0 Runtime Files which are Installed..So i'm at a loss here,any help will be appreciated...Thxs OS: Windows XP Pro with Media Center 2005 This sounds to me like you have a very old version of "Orcas" installed. The old xmlns uris...the problem loading the designer. You likely want to remove the "Orcas" or any names that used to go by: "VS Extensions for WinFX", etc... Good Luck, Rob Program Manager, WPF Team http://rrelyea.spaces.live.com ...Show All
SharePoint Products and Technologies Workflow designer - Variables and strings.
in my workflow designer, I'd like my outputted string to be... You have been scheduled a meeting with <user>. how do I do this with workflow designer I seem to be able to either select a variable OR a string, but not both. You can work with custom variables within workflows in SPD but it seems that you can't access information from, say, the event that has been created. For more info, see this article . Check the comment at the bottom of the page for a glimmer of hope ;) ...Show All
Visual Studio 2008 (Pre-release) How-to disable ApplicationCommands in a TextBox?
Hi, In a Text Box that is enabled, the popup with ApplicationCommands.Cut, ApplicationCommands.Copy and ApplicationCommands.Paste appears. What I'm trying to do is that this popup won't appear. FrameworkElementFactory textBoxEx = new FrameworkElementFactory ( typeof ( TextBox ) ); Binding textBoxExBinding = new Binding ( aPropertyToBind ); //set the current culture, by default not set textBoxExBinding.ConverterCulture = CultureInfo .CurrentCulture; textBoxEx.SetValue( TextBox .TextProperty, textBoxExBinding ); textBoxEx.SetValue( TextBox .TextAlignmentProperty, TextAlignment .Center ); textBoxEx.SetValue( TextBox .BackgroundProperty, null ); textBoxEx.SetValue( TextBox .StyleProperty, Templa ...Show All
Visual Studio Express Editions a newbie needing help with random numbers and the chi square test as described by Donald Knuth
I'm a sophomore in high school and I'm doing a science project on random number generators (specifically i'm comparing Combined Linear Congruential Generators to Multiply With Carry Generators). In order to do this i'm writing a console application that will (1) generate the random numbers and (2) apply statistical tests (from The Art of Computer Programming, Seminumerical Algoritms, vol. 2 by Donald Knuth) to these numbers. My problem is with applying the chi square test, I've checked my code with the formula in the book time after time and it looks to be the same, but the numbers don't make sense when compared to the values in a chi square distribution table. The numbers I get for X 2 are: 1481974.4496, 1111763.1976, 1255825.4114, and ...Show All
Visual Studio Team System Certification?
Hi group, Just discovered this forum.... Been programming MS for only 5 years so I couldn't have known this I'm planning a new personal certification track. Since I want to move to the functional part in due time I'm thinking of the following: MCAD.Net + MSF I want to take the MSF exam instead of ITIL and/or ASL. Is this a good idea or should I also certify for ASL and ITIL TIA Hi! I would really appreciate if you can provide more inforamtion about RUP certification. Did you take any classes/training What kind of material you used to prepare etc. Thanks ...Show All
Visual C# need help with code
I am trying to write a program kinda like a receipt and I am having trouble with this. What I need it to do is look like this: Please enter the price of the item: Please enter the quantity of the item: Please enter the total of the item: It needs to continue until you want to end it with like(-1) or something. Any suggestions It would be greatly appreciated. Thanks Will this be a console app or a Winform app I will assume its a winform app. This is easily done. Create a new Windows Application project Drag a few labels and textboxes on the form. Labels are descriptors for the textboxes, which are inputs (such as qty etc...) Next, drag a button or so, which will total up ...Show All
.NET Development Query all Table Names in Access Database
I would like to write a function which queries a list of all tables within a certain Access Database using the OleDB classes. This is what I'm trying so far (I found the big SQL select string online somewhere): Dim AccessDBConnection As New OleDb.OleDbConnection( "Provider= Microsoft.Jet.OLEDB.4.0;Data Source=c:\Northwind.mdb" ) AccessDBConnection.Open() Dim AccessDBAdapter As New OleDb.OleDbDataAdapter( "SELECT [Name] FROM MSysObjects WHERE Type=1 And Left([Name],1)<>'~' And Left([Name],4) <> 'MSys' Order By [Name]" , AccessDBConnection) Dim AccessDataSet As New DataSet() ' AccessDBAdapter.Fill(AccessDataSet) --- Unfortunately, I get this run-time error messa ...Show All
Windows Forms create and display form using C++
hi this should be easy for most of u here but not for me... I'm using Visual Studio 2005. here's what I did: File>New Project>Visual C++>Win32>Win32Project At the solution explorer, I right click on my project's name, then Add>New Item>UI>Windows Form. I named it testForm. Then i put all the neccessary things on the testForm (buttons, labels etc).... Now I want to execute the project. How can I make the testForm displayed first hope you all understand my question. Thanks a lot. i see... yup, i really want to use C#, but i need to use openssl library..can c# support it if yes, how can u please direct me thanks a lot ...Show All
Visual Studio Express Editions I need some help creating a simple dll
Yes, the good old dlls. I have tried some examples and read topics but I can never get the dll to work. I just want to try something simple. I have a form with 3 textboxes and a button. Once I click the button textboxes 1 and 2 have their strings added and inserted into textbox 3. My dll simple adds the two strings. Can any one point me in the right direction Thank you, Wellnow Right, and it give the user the option to continue, quit and/or view the details. Hum actually, if any of my dlls are really needed then I could make a function that checks if they exists using IO namespace. ...Show All
Visual C++ Getting Error Description.
Hello Everyone, Is there any way i get the Error Description or Exceptions Description when i use try { --- Some code here. } catch(...) { --Exception Descrption .. } I want to get the description in the catch block, is it possible if so then how can i get Thanks can i create directive for trapping errors somthing like this #CATCHALLERROR catch(_com_error &e) { --- display some message or unhandle the error } catch(CException Ex) { --Do some processing } catch(...) { -- Do Some processing } Now, in the function where managing the exception i need to do only following thing. try { ---Some processing over here. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Questions... Problems with .lib and ddraw.h
Hi, ... ... ... I use the Visual Studio 2005 Standard Edition, Visual C++ 2005... I've done some Windows programming and been using the GDI to make some graphics so far, it works well... But can anybody tell me how to Clear the screen after using the GDIs to draw some polygons... You see, the screen then becomes full of polygons, and that's what was wanted, but then, finally, how about Clearing the Screen completely and then start to draw some other, say, triangles instead... So, What is the exact Command to Clear that Window that the polygons were drawn in... ... ... ... OK, Now, here's the problems... I've finally started to get into Direct3D and DirectX... So, I've read and Understood all the materials about how to creat ...Show All
