Rafael Soteldo's Q&A profile
Windows Forms .Net 3.0 Spell Check
I see that .Net 3.0 supports realtime spell checking in TextBox and RichTextBox controls; however, I could not find any reference to the dictionary that is used or how it could be changed. In my application, I am interested in using a custom dictionary. Is this possible How The complexity of using your own words without the power of the dictionary seems to be able to show the correct words for alternatives to the miss spelled one. For example, if I type 'ny' in Word the spell check gives me nay, my, knee, and others. As you can see, there is probably some complex logic for determining which words are the replacement/correct words for a missed spelled word. I think the spelling engine provides this ...Show All
Visual C++ How do I draw to a DCcompat Bitmap then BitBlt to screen to reduce screen flash while scrolling?
Hi guys, I'm a grad student in cognitive psych with a decent background in C++. I've post here before and you guys were very helpful, which I greatly appreciate. Anyway, I've got another issue. I'm designing a program for a study that involves using a CView class and drawing several things using the dc in the OnDraw function. What I draw usually goes greater than the screen height and I've implemeted a vertical scroll bar to scroll up and down to see it all. The problem is that when I scroll up and down there is alot of screen flash due to redrawing as the scroll bar moves. I need it to be smooth or otherwise it messes with the perception rules for the study. What ...Show All
SQL Server How Do I Create Table Relationships?
I have spend days researching this and found others with the exact same problem but there are no useful replies as people don't seem to understand our problem. Please read this carefully... What is the best way to create relationships between new SQL tables For example, say I want to create a new database with tables for Customer, Orders and Details, how to I relate these tables - Edit via the Dataset designer in Visual Studio 2005 - Use the Server Explorer's Table designer in Visual Studio (not sure how to use the 'relationship' icon) - Use SQL Server Managment Studio Express (SSMSE) Database Diagram - Something else I am using Visual Studio 2005 Standard and SQL Server 2005 Express (SP1). I created a new database in Visual Studio ...Show All
Software Development for Windows Vista Handle Workflow Versioning
I have a situation where I need to be able to keep different workflow versions running. Eg WorkflowVersion1 is started and after going through several states is persisted. Then, I make drastic changes to the workflow and a WorkflowVersion2 is started and later persisted. Now, I want to start up and continue WorkflowVersion1 and continue running it as though WorkflowVersion2 was never created. How do I do this I have tried installing both versions in the GAC but I still get errors. I believe that WorkflowVersion1 instance tried to reload as WorkflowVersion2. I need this because in some cases, I cannot wait until all running workflows are completed before creating a new version of workflow. Haven't been able to get any good answe ...Show All
.NET Development Why does the String CompareTo method return inconsistent results?
Does this make sense Why "*".CompareTo("A") -1 "*A".CompareTo("A") -1 //ok. compares as less than, both times. "_".CompareTo("A") -1 "_A".CompareTo("A") -1 //ok. same results... "-".CompareTo("A") -1 "-A".CompareTo("A") 1 //what ! inconsistent results... why This is causing problems in our application, because the sorting on the DataGridView is unpredictable, and the users of the application are complaining. I can't think of any reasoning that would explain these CompareTo results. Any ideas I can't think of a reason w ...Show All
Visual FoxPro ceiling to the nearest nickel
Dear Friends, How to round a number in foxpro like the ceiling function in Excel does, giving the number to be rounded as parameter 1 and the multiple we need as parameter 2 eg ; ceiling(4.20,0.05) = 4.50 Is there a possiblity to do the same in foxpro, because the ceiling in foxpro rounds up to the nearest integer eg: ceiling(4.20) = 5.00 there is noway of specifying the multiple we need as in the case of Excel Any help would be greatly appreciated. Thanks satish Thanks Lakshminarayana, It happens sometimes, I am working on it , get u latter thanks again satish ...Show All
.NET Development Multi-Threaded Visual Basic.NET Data Access Example Code Needed
With all the Visual Basic.NET data access books that I have purchased and all the Internet site example code that I have reviewed, none have had any good examples of multi-threaded VB.NET code doing data access. I am trying to avoid the non-responsiveness in a VB app while a simple data retrieval from SQL Server 2005 is in progress. If anyone knows of any book titles or web sites that have example code (good or not) of multi-threaded VB.NET applications doing data access against Microsoft SQL Server (7, 2000, or 2005) or even against Microsoft Access(TM), it would be very much appreciated if you could provide the book title or URL to point me in the right direction. The more examples the better. Thanks in advance. ...Show All
Visual Studio Missing key
Hi everybody I've just wrote an interface and commented it well. Than, I derived some classes from that interface. All I want to do now is: How can I reference to the interface documentation within my single class comments. I really don't like to copy'n'paste the interface comments to my class documentations. My classes are supposed to do what the interface dictates. So extra comments aren't necessary. Is there a reasonable way to let insert the comments automatically. I tried something like this: /// <summary cref="IMammal" /> public class Deer : IMammal { ... } The result with Sandcastle is: [Missing <summary> documentation for T:animalpark.Deer] Does anybody know a good solution or workaround Thank you very ...Show All
SQL Server Problem Installing SQl express
hi, Im trying to install SQL express 2005 on my Desktop Computer and I keep running into the error "Setup has detected a problem with Microsoft .Net Framework installation and cannot proceed .Net Framework 2.0 is either not installed on this system or is corrupt" when infact it is installed.. any sugestions By the way im Running Windows X64 Pro with a AMD athlon X2 3800+ CPU and 2GB of Corsair DDr2 ram Hello Mike! I have the same problem. The whole message is: "Setup has detected a problem with Microsoft .net Framework installation and cannot proceed. Microsoft .Net Framework 2.0 is either not installed on this system or is corrupt." Well, I just uninstalled and reinstalled several ...Show All
Windows Forms Threads and BackGroundWorker
Hello I have a form to convert data from a FoxPro database to SQL2005 database. Because Foxpro tables are not normalized, i must create a Method specific for each table so i can insert the values correctly in multiple tables in SQL. It seems crazy, i know, but it's the only way to achieve this correctly and guarantee the data is going to be well written in SQL with FK constraints and everything. I want to be able to execute many of this methods at the same time. I created a UserControl that contains a Label, ProgressBar and checkboxes. Every table to convert has one of this usercontrol attached so you can keep track of the progress of every table in the conversion process. All this works perfectly fine IF i don't use Threads (my g ...Show All
Windows Forms ListView not displaying images from ImageList in VS2005
I am experiencing a very strange problem with a ListView. Here is the situation: on a Windows Form in VB.NET windows application I have a ListView control and an ImageList component. The ImageList component has been populated with eight (8) images and it is assigned to the SmallImageList property of the ListView control. The ListView is manually, i.e. during design-time, populated with ten (10) items and each one of them is assigned a value for its ImageIndex property corresponding to one of the images in the ImageList component. So far so good. When my application was in VS.NET 2003 it worked just fine, i.e. the images displayed correctly. However, after I converted to VS2005 the images are not displayed in run-time. In design time th ...Show All
Visual Studio Express Editions How to raise an event for the controlBox Close form button X
Hi, How can I raise an event for a forms control box close button X The form close event will not do , I need to ony action something when this button is clicked, can not seem to reference this button. Ron Why does the close event not do it for you (FormClosing) You can look at the CloseReason to determine how the application s closing (e.g. form the X, parent closing, windows shutting down, etc) ...Show All
Visual C++ Where shall I ask the quesiton about C? E.g. Question about how to generate different random numbers...
Dear all, I had one question about generating different random numbers. One piece of my code is as follows. Actually, because of the limited time, I don't think it can work. Its principle or algorithm is only to guarantee different values between generated values border upon/nearby. However, how to guarantee the value is different with all the previous ones, not only the border upon value. void initRandom() { int i,j = 0; for (i = 0; i < 100; i++) { random_numbers = rand() % 100; // Get random number. // Try to compare the value with previous ones. for (j = i; j==0 ; j--) { if (random_numbers[j] != random_numbers[j-1]) { break; } else { random_numbers[j] = rand() % 100; } } } } Do yo ...Show All
SQL Server Copying my SQL Database to another server
Hi guys, I have created a new SQL database (named “DB”) on my personal pc at home. I want to copy “DB” to my job’s computer, which works on a local net with SQL server. What should I do Thanks a lot, Aldo. 1. Open your SQL Server Enterprise Manager 2. Expand and Point to your database. 3. Right Click on your database (Db), and navigate to "All Task " -- "Backup Database" -- "Add" -- "File Name" 4. Give a proper file name and note the location where the backup file is being created. 5. Copy This file to your Job Computer 6. For Restoring on your Job computer check the following steps 7. Open Enterprise Manager on your job computer. 8. Point to Database Node ...Show All
Visual C# Variant in C# ?
I’m coding in C# and I am working with a COM object that I earlier in C++ made this call: COleVariant varBeforeEnd(DISP_E_MEMBERNOTFOUND, VT_ERROR); hresult = pTemp->Add(knownObject, &varBeforeEnd ); How do I make the call in C# The IDE in VisualStudio say that the Add(…) function should have parameters like this: Add(KownObject, ref object); Any tip what to do with the second parameter I’ve tried to block some primitive types like int and bool to an object, but I only get exceptions… All tips are welcomed! Anders, "ref object" should be the correct translation. To generate an error object (i.e. a variant containing an error), you can use the ErrorWrapper class that is fo ...Show All
