| Shared Form? (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I have inherited a VB6 app that has a form as its startup object. This form calls a module, which references back to the form and its collection of controls. When I upgrade this to VB.net, I can't seem to get those references to work. How can I set up a shared reference to a form so that each module can be working on the same instance of the form during the lifetime of the application? Thanks, Ste... |
|
| Is there an equivalent of Err.Number in VB.Net? (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi, in VB6, I can get the runtime error number using Err.Number function. However, the .Net Exception class does not have an error number property. Is there a way to retrieve that information in .Net without using the Err object? thanks. |
|
| pass ref byte to com object (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| i want to call a com object which accepts parameters as follows: comobject.method( byref in as byte, byref in len as byte, byref out as byte) the first parameter is an input string, the second is the length of the first parameter, and the third is the output string assume I have this string dim s as string "abcd" and want to pass it to the com object above.how do I do it? the comoject was written ... |
|
| DoEvents function in VB.Net (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I use the FileSystemObject in VB6 to copy a bunch of files from one drive to another. This has serious negative consiquences on system performance. I have been using the DoEvents function in my loop to help alleviate this. Is there an equivalent (or a better option) in VB.Net? Thanks, Russ |
|
| Creating ActiveX Controls in VB.NET (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I've been creating ActiveX controls in VB5&6 for years without any difficulty. After upgrading, I now come to create one in VB.NET and don't know where to start?!? I've been trawling MSDN for weeks now looking for clues. Anyone got any pointers so I can get "back on the rails"? |
|
| Equivelent of VB6's Form.PrintForm? (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Equivelent of VB6's Form.PrintForm? |
|
| .NET and Control Arrays (10 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Okay, I have a VB6 proggie that uses , for want of a better phrase, dynamic control arrays. When the form starts up, it read a config file to determine how many of these checkboxes it needs, then creates them into a control array. Now, how is this handled in .NET? I understand the concept of the Handles method, but when I upgraded my project today for LSG, it went boom on that part and I can't fig... |
|
| VarPtr from VB6 to VB.NET (7 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I am having a devil of a time converting the arrays that have this: While i 4 And offset length RtlMoveMemory VarPtr(k32e(i)), VarPtr(k(offset)), 4 offset offset 4 RtlMoveMemory VarPtr(k32o(i)), VarPtr(k(offset)), 4 offset offset 4 sBoxKey(j) RS MDS Encode(k32e(i), k32o(i)) i i 1 j j 1 Wend This is a snippet taken from the Twofish encryption class written by Jesper Soederberg for VB6. It is not lo... |
|
| upgrade hyperlinks don't work. (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| I've just upgraded a project from vb6 to vb .net 2002. The task list states: D:\legalexp.1.4\frmAbout.vb(261): Name 'App' is not declared. This leads me to the code and hyperlink, which are: 'UPGRADE ISSUE: App property App.Revision was not upgraded. Click for more: 'ms help://MS.VSCC/commoner/redir/redirect.htm?keyword "vbup2069"' lblVersion.Text "Version " & System.Diagnostics.FileVersionInfo.Ge... |
|
| Command function in VB.NET (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi, I have the VB application to upgrade it into the VB.NET. I use the SQL script in the Query Analyser to call the VB.NET exe file, at the same time it pass in one argument string into the program. The program have the command function to receive the argument string and split it into the array type to get the individual string. It is working fine in VB, but i got the problem after i have updrade ... |
|
| MaximumSize (4 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| How to get MaximumSize of form works for FormBorderStyle Sizeable? (i.e., I want to make my form 16x16 fixed, but Windows put on some minimum size information to my form...) *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
| error when executing "MessageBox.Show" (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| In the development machine with VS .NET installed, the program runs fine. In the client machine, it throws an error when executing "MessageBox.Show". The error message is at the end of this posting. Please help. Thank you. Lawrence See the end of this message for details on invoking just in time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Reflect... |
|
| Toolbar Background/Foreground colours in VB.NET (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Is there any way to set the background and foreground colours in the toolbar control?? I want to emulate the same effect as in VS.NET ide when the mouse moves over each button, the background of each button changes to light blue. Using the toolbar as is this changes to white. There does not appear to be any property settings to control this... Can this be done?? Regards, Alan |
|
| Sockets (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Okay, here's the error I get and the code for my class...: A connect request was made on an already connected socket Public Class StateObject Public workSocket As Socket Nothing ' Client socket. Public BufferSize As Integer 32767 ' Size of receive buffer. Public buffer(32767) As Byte ' Receive buffer. Public sb As New StringBuilder() ' Received data string. End Class Public Class SocketClient Publ... |
|
| Print envelope (3 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi I'm trying to upgrade a vb 6 application to .Net that has to print to a number 10 envelope. At this time I have completely run out of ideas. right now I can print using the DrawString method, but I can't set the paper size (or papersize.kind ... this is where I'm stuck). I'm trying to do this in the PrintDocument PrintPage subroutine. Should I be using e.pagesettings or PrintDocument.defaultPag... |
|
| VB.Net some questions (6 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| My company is looking into vb.net as we are currently using VB6 but there are some questions we have come up with and so far I am unable to find definitive answers: 1.Does vb.net use primitive datatypes for integer etc or does it use object (ala Java)? 2.Is the implements keyword still used or does the fact that inheritance is now supported render it obsolete? 3.How much can the Upgrade Wizard do,... |
|
| What is the .Net equivalent of date1 = 0 in VB6? (6 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Hi, in VB6, if I have a date variable, I can set it to 0 to indicate that it hasn't been assigned a value yet. As well, I can use the Int(date1) to chop off the time part. In .Net, I can't do the followings without causing a compile error: dim a as Date a 0 public function Func(Optional ByRef Date1 As System.DateTime Nothing) as string So what is the .Net equivalent of the following in VB6? dim a ... |
|
| vb.NET Beta to vb.NET (2 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| Got a small project written in vb.NET Beta. When trying to compile it under vb.NET "55603 .. on .NET 1.0", I encounter several errors including: references which no longer exist "System.Configuration, System.Net, System.WinForms, System.XML.Serialization" several members which no longer exist in System.IO.File. etc... Is there any tool which provides mapping or conversion between Beta and 1.0? It ... |
|
| Default Method in VB.Net? (IE Event trapping) (6 replies) |
| microsoft.public.dotnet.languages.vb.upgrade |
| So... I'm trying to implement a WebBrowser class in a VB.net WinForm, as described in: http://msdn.microsoft.com/library/default.asp?url /workshop/browser/webbrows er/tutorials/forward.asp As the document explains, I want to capture events from the WebBrowser DOM (DHTML events) within my VB.Net code. At step 6, it indicates setting up a method within a class as the default method for the class (th... |
|