microsoft.public.dotnet.languages.vb.upgrade Archive - May 2002
Post a message to this list
Messages
Page: 1
Removing VB6 namespace from project (7 replies)
microsoft.public.dotnet.languages.vb.upgrade
How does VB6.Format(Now, "Medium Date") VB6.GetPath 'which was App.Path get replaced after removing the Compatibility namespace? Can someone please confirm and/or provide alternatives to the following please: Dim s As New VB6.FixedLengthString(n) is the same as Dim s As New String(" "c, n) & replacing in code s.Value with s VB6.Format(DateVariableHere, "dd mmm yy") is the same as DateVariableHere....
Simple DateTime question/confirmation (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
Dim d1 As Date Dim d2 As Date In VB6 you could d1 Now d2 In VB.NET is there a recommended/simpler way than ' Without using .ToOADate, .FromOADate d1 Now.Subtract(New TimeSpan(d2.Ticks)) If yes, then does that mean that code like this in VB6 d1 Int(d1) ' e.g. to get the time part only of a date translates to code like this in VB.NET? d1.AddDays(New TimeSpan(d1.Ticks).Days * 1) Cheers Daniel
Is VB .Net really so much slower than VBA or VB 6? (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
A few daze ago, I got curious whether it was more efficient to use, say, False, vbFalse, or vbTristate.vbFalse. I ended up using the code below. The first module was used in both VBA (Word 2002) and VB 6. The second module was used in VB .Net. I was quite surprised to find how much slower VB .Net was that either VBA or VB 6. ' VBA ' TimeFalse: 144428 milliseconds: 49999819, 50000181 ' TimevbFalse:...
paint event for picturebox control added on the fly? (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
Is there a way to code for events of controls that are added at runtime? This was possible in vb6 due to the control arrays. but how could this be done in .net? I have pictureboxes that are created and then have squares that are drawn on them from the GDI methods. Problem is when minimized or another app passes on them, they disappear( the squares) . I know that if it was a control created at desi...
Upgrading: Two issues (6 replies)
microsoft.public.dotnet.languages.vb.upgrade
I have a VB 6 app that has references to both Word and Powerpoint. Runs correctly in VB 6. When I upgrade, I find two problems: The .Quit() in the following is underlined as an error: 'Quit' is ambiguous across the inherited interfaces 'Word. Application' and 'Word.ApplicationEvents3 Event'. With appWord If blnNewWord Then ..Quit() System.Diagnostics.Debug.WriteLine("Closing New Word") Else System...
what should i use inplace of VarPtr in .NET? (6 replies)
microsoft.public.dotnet.languages.vb.upgrade
hi, can anyone tell me what should be the replacement for the VarPtr function of VB6 in VB.Net? regards, Raju
Forms as parameter ##3 (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, Sorry to bother ... with my problems... many thanks for yr reply. I managed to try yr code and it works without error, but you changed the way I use the procedure... As you rewrite it.. I have only one procedure as per my original one, but you hv to write the essential code twice(like having a single procedure for each forms). Pls note that in this example these are very simple forms with only...
Blanking a System.Windows.Forms.ComboBox (7 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi. I've got an upgraded vb.net application that uses a Combo Box that allows both typing a value as well as selecting out of the dropdown list (i.e. using the 'DropDown' style). I find however that it loves to select the first item in the list by default, even when I set the Text property to '' and set the SelectedIndex property to 1. I've found that if I set Text '' twice in a row, it concurs an...
VB.Net Form Problems (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
in VB6 you could access the controls on a form using form1.ListBox1 from a module. How do you do this in VB.Net?
converted vb6 to vb.net that still uses ADO 2.7 (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi All, I've converted some of my vb6 code to vb.net and came across an issue with the command object's parameter(more specifally an output parameter). I have a command object with some parameters. The first command object parameter is an output parameter that a stored procedure returns a value to. After I execute the command and try to retrieve the value I keep getting zero as the value when exec...
Getwindow or similar function to return list of applications? (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi I have been trying to get a list of the applications currently running in my taskbar and have found numerous messages about using the getwindow api and samples but all of the code is for vb6 and earlier and does not seem to work when I try it in vb.net. Does anyone have any vb.net examples on how to fill a listbox or combo box with a list of the currently running applications? And then send a c...
Automate excel in vb.net (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, I want to be able to start an excel application from a vb.net program. This code generates following error : Old format or unvalid type library Dim xl as Excel.Application xl CreateObject("Excel.Application") xl.Visible True I have added a reference to Excel so thats not the problem! How can I solve this ? Kerstin
How in VB .NET on the printer to print the line? (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hello. Answer, please, a question. The algorithm of our problem consists in the following: 1. We create Form1 with the Panel control and its procedure. 2. In this procedure we write down the code from an Example (.NET Framework Class Library. Graphics.DrawLine Method (Pen, Single, Single, Single, Single,), then this procedure accepts a kind: Private Sub Panel1 Paint(:) Handles Panel1.Paint ' Creat...
forms collection in vb.net (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi all I rewrite a vb 6 application in vb.net, my problem it is that my code in vb6 is as follows For Each frmForm In Forms If frmForm.Name sNomFeuille And frmForm.Name "frmFond" Then Unload frmForm End If Next and vb.net do not support the collection forms. you know a solution ? thanks
ActiveX controls (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, I would like to know if vb.net support the ActiveX controls created in vb6. For example the DataTable by Protoview. When I put one on my Form, I could not find the property page as it was in vb6 Thanks Jen
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification