| SendMessage/CB_GETLBTEXT Help! (7 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Does anyone know how to use VB .NET and the CB GETLBTEXT message? It is giving me fits and I can't get the value lpStr back with the text contents of my combobox. Thanks! SendMessage(hwnd, CB GETLBTEXT, 0, lpStr); Best Regards, Dot Net Guruhew Dean mjdean@tva.gov |
|
| System.Drawing.Color problem (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| The following If statement does not work in VB.NET. If txtTextBox.BackColor System.Drawing.Color.Blue Then txtTextBox.BackColor System.Drawing.Color.Red End If The error is "Operator ' ' is not defined for type System.Drawing.Color" But; txtTextBox.BackColor System.Drawing.Color.Red works. Why? Ahmad |
|
| MSFT VB Compatability RunTime (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| What is it about the code below that requires me to retain a Reference to the MSFT VB Compatibility Runtime? I can use vbTab and vbCrLf in another project without including such a reference. Option Strict Off Option Explicit On Imports System.Management Module modWMIStuff Public Sub MAIN() Dim objMgtInfo As ManagementObject Dim objMgtSearcher As New ManagementObjectSearcher("SELECT * FROM Win32 Co... |
|
| Treeview Problem / Exception (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hello, Im using the Treeview in a VB .Net project. I wanna add treeview nodes in an Event from an external dll. Every time when i add the nodes i get following exception: 'System.Reflection.TargetInvocationException' in mscorlib.dll I can add Treeview nodes with comman buttons and other events. but nor from this external dll. But the dll is OK. Its written in C#. When i change the Treeview to a li... |
|
| IEnumerator interface (6 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| How do I implement my own IEnumerator interface for a custom strongly typed Dictionary inherited from DictionaryBase? When I do: Dim d as New IntegerDictionary Dim de as **DictionaryEntry** For Each de In d ... blah ... Next de I have to declare de as DictionaryEntry, I need a type with Value as Integer. Currently I Have this much: Public Class IntegerDictionary Inherits System.Collections.Diction... |
|
| VB.Net Sample Scribble does not run (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| The VB.NET Scribble does not run, it reports: n unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll Additional information: Object reference not set to an instance of an object. on the line: Application.Run(New MainWindow()) Is this a porblem on my system, or did MS release a sample program THAT DOESN'T WORK! |
|
| Upgrading an VB6 UserControl Project to VB.NET (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hello , Is there a way to upgrade a VB6 UserControl (.OCX) to VB.NET? The upgrade wizard doesn't upgrade that type of project but the article Preparing Your Visual Basic 6.0 Applications for the Upgrade to Visual Basic .NET (http://msdn.microsoft.com/library/default.asp? URL /library/techart/vb6tovbdotnet.htm) says that "When your project is upgraded, user controls are upgraded to Windows controls... |
|
| ChDir, CurDir (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Anyone know the .NET equivalents of VB6's ChDir, CurDir commands? I know they still work but I must use the Framework's equivalents... Cheers Daniel |
|
| Get the Ethernet Address (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I'm knocking my brains out trying to find the magic command that will get the Ethernet Address from the local machine. Can anyone give me a hint? Also, what is replacing the VB6 App object in VB.net? Thanks for all your help guys. Sam |
|
| version info (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hello, in VB6 you could fill in the properties to give your app version information which you could call using App.Major App.Minor .... but I don't find anything under Application that does the same in VB.Net, someone knows where it's gone? TIA Yves |
|
| Can someone help me with printing in Visual Basic.NET (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I purchased most books on Visual Basic .NET and none have been able to help me and I'm a little confused about the way in which it works. Can someone send me some sample source code to learn off of. Thanks |
|
| Application terminates BEFORE modal Form is closed (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| The following VB 6 code Option Explicit Private Sub main() frmFirst.Show vbModal frmFirst.Visible False frmSecond.Show vbModal frmFirst.Visible True End Sub Gets upgraded to Option Explicit On Module modMultipleForms 'UPGRADE WARNING: Application will terminate when Sub Main() finishes. Click for more: 'ms help://MS.VSCC/commoner/redir/redirect.htm?keyword "vbup1047"' Public Sub main() frmFirst.De... |
|
| typeof function (5 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| How can you test for the types of controls in .NET? |
|
| ApplicationClass (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| A few months ago, I posted a query for which I did get an answer, but now I cannot find the answer. I was wondering where the use of Applicationclass is documented. I was upgrading the VB 6 code below: The second .Quit, the one in the With appWord ... End With portion of the code, was flagged as being ambiguous. The problem was eliminated by using the following in the upgraded code: Dim appWord As... |
|
| Does VB .NET allow for 2 column tables a la VBA in a ListBox? (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| In VBA, I can specify that a ListBox has two columns. A convenient use is to list the user choices in the left column and then output results in the other (right) column. So I might have Test 1 789 milliseconds Test 2 568 milliseconds Test 3 Test 4 999 milliseconds If the user chose Tests 1, 2, and 4. I can then clear the 2nd column, independently of the first column. http://www.standards.com/; Pr... |
|
| Equivalent d'une commande vb6 sous vb.net (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi all, Do you know equivalents commandes vb6 in vb.net App.Major App.Minor App.Revision App.Comments thanks Ps: excuse me for my bad english |
|
| How to retrieve Control's name from collection (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hello everybody: I am trying to retrieve the control's name while I go through the collection of the controls. The probelm is, because I am doing it from the inside of the collection I can not get the name for the control. Does anyone know how I can get the name for the control if I am reading from collection? Here is the sample of my code: Dim tlbButton As New ToolBarButton() For Each tlbButton I... |
|