| Bug or am I an Idiot? (5 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I have got a problem when I do a division. I have the following code ********************************* Dim mgn As Single Dim temp As Single Dim result As Single mgn 23.976 temp 1.8 result mgn / temp ********************************* Result should be 13.32 but in Visual Basic.Net the result is 13.3200006 When I make the variables double I get 13.3199999999 which is also wrong. What am I doing wrong... |
|
| Using ADO (not ADO.net) in VB.NET - PLEASE PLEASE PLEASE HELP ! (9 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi All I've been stuck on this for days..... Anyone knows if it is possible to use ADO in VB.NET and bind text fields and other components to a data source? Thanks |
|
| VB6 Code convert (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Anyone know how to convert the following VB6 code to vb.net I use it to fill a RTF Text box. When it hits the 2nd .SelText it errors out "An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll" "Additional information: Cast from type 'Field' to type 'String' is not valid." Thanks Heath With frmQuoteSearch.DefInstance.txtNoteText(i) .SelBold True .SelText... |
|
| ListView vs AxListView (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| What's the difference between ListView and AxListView? |
|
| How to determine why a form is closing ? (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| The documentation says: "If it is necessary to determine why the form is closing, you will need to create an overloaded version of the Closing event with custom code to determine the caller. " But does not show a sample of how to do this. Can anyone send me a fragment ? |
|
| DataBase Searching in VB.NET (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Im converting a VB6 database program in VB.NET and im doing this from the ground up. However some things that I could do in VB6, I cant do in VB.NET and one of those problems is searching though the DataBase. Code I used in VB6: Dim searchstr$ searchstr$ SearchBox.Text Data1.Recordset.FindFirst "Description " Chr(34) (searchstr$) Chr(34) If Data1.Recordset.NoMatch Then beep End If So how would I c... |
|
| The Char DataType (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I am confused about the new Char data type. Reading the documentation, seems to me that I can store only one unicode character per Char variable. But if I need to store an entire phrase in Unicode format, where should I store it, in a String variable or in a Char variable? I can't see where can be useful to store only one unicode character per variable. I thank you for any insights. Regards, Chris... |
|
| Show a form without focus (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi, I need to show a secondary form (form2) from another form (form1) but I need to keep the focus in the first form (form1). I want to make something like a ToolTip window I can do that in VB6 with this code: ShowWindow Form2.hWnd, SW SHOWNOACTIVATE How can I do it in VB.Net Esteban |
|
| ADODB.Parameter.Append(param) error (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| While I was learning how to use ADODB.Commands I found it easier to build up the parameters first and then append them to the command object, and I carried on because although it's verbose and slightly more time consuming the code is a lot more readable particularly if you want to set differing values depending on an If..Else. etc..It doesn't seem to work in VB.Net. Today I converted one applicati... |
|
| Variant vs. String data type, is not Variant less efficient? (50 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Under what circumstances is using a Variant data type more efficient than using a string data type IF the data is always going to be string? I was raised in the belief that using Variant was always slower. For example, the "Data Types" topic in the MSDN Oct 2001 library states: "If you know that a variable will always store data of a particular type, however, Visual Basic can handle that data more... |
|