microsoft.public.dotnet.languages.vb.upgrade Archive - January 2003
Post a message to this list
Messages
Page: 12
Cancelling a KeyDown (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Can you cancel a KeyDown event on a textbox? You used to set the KeyCode to 0 to do this. What is the tequnique now? Regards Laurence Pull
Missing upgraded controls (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hey, I upgraded a VB.6 form and my user controls are no longer visible although they show up in the property drop down and in the form code. No Compiler errors and the Visile property is set to true, coordinates loog good too and I can add a control that shows up. Is the Project corrupt or what?
Using SendMessage API in .NET (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
I am trying to use the SendMessage API in a .NET because I have an editor box in my app that displays line and column indexes to the user. I tried using the .NET functionality and it was okay, but slowed down (excessive looping) as the amount of text grew larger. Could someone tell me how to call SendMessage in .NET or a good way to do this using standard functionality Private Declare Function Sen...
VB6 Randomizing to .NET Randomizing (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Basically what I am trying to do is build the same set of random numbers based on a seed (for this case 53027224). Below is the code I used in VB6 to to this and it worked perfectly. Now I am trying to convert this to .NET (VB.NET or C#) i don't care it will be pretty much the same. Below I have put in the C# code that I am using to replicate the functionality but it is not working. Both methods s...
Many Pictures in one Bitmap (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
I have a picture (.bmp) witch contain a lot of pictures (60 of 73*73 pixels). how can I use them one at once (only the third one for example) with a maskcolor (white) in a picturebox in vb6. If you don't understand then download the Picture.bmp file Please help me. Thank!
how to launch mdb file From the VB.Net code (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
Does anybody know how to launch an Access Application (or any other application) From the VB.Net code, FileSystemObject doesn't seem to provide such functionality. Thanks, Natalya
DoEvents question (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
Is there a way to have the system check events from within a class that's not hooked to a form? In simple prototypes I used Application.DoEvents(), but this won't work from within a server. I just want to allow the system to process other events (even other events within my program) during execution. TIA Brad
I got Question (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
I got the new VB.Net and i want to know what is the code to make a command print button work? I know in VB6.0 when you put a command print button on a project form the code is PrintForm. But what is the code in VB.Net?
TextWidth - does not exist in .NET (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
I have a set of library routines which I use for printing. I am now porting to VB.NET and realised that I have no way of accessing a TEXTWIDTH function for a desired FONT. I use this in order to centre just etc text on a print page. Does anyone have any suggestions? Regards
unloadmode property? (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi! Does anybody know what's the equivelant of checking the value of unloadmode property of form unload event of VB6 in VB7? I want to catch the event of the user pressing the 'X' button of a form Thanks, Dimitris
.NET API Declaration for winspool's GetPrinter (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Can anyone give me a proper VB.NET function declaration for the API functions OpenPrinter() GetPrinter() ClosePrinter() in winspool.drv? Thanx in advance Paul
Migrating VarPtr from VB6 to VB.NET (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
We had this code in VB6 and it worked fine Public Declare Sub RtlMoveMemory Lib "kernel32" (ByVal hpvDest As Any, ByVal hpvSource As Any, ByVal nBytes As Long) RtlMoveMemory(VarPtr(k32e(i)), VarPtr(k(offset)), 4) After we opened the code in VB.NET we got this 'UPGRADE ISSUE: Declaring a parameter 'As Any' is not supported. Click for more: 'ms help://MS.VSCC/commoner/redir/redirect.htm?keyword "vbu...
Migrating ChrB from VB6 to VB.NET (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
This is the code from VB6. It worked fine. bP0 cstr(chrb(&ha9) & chrb(&h67) & chrb(&hb3) & chrb(&he8) & chrb(&h4) & chrb(&hfd) & chrb(&ha3) & chrb(&h76)) We need to get a single byte from each hex value. When we put it into VB.NET, it changed to this: 'UPGRADE ISSUE: ChrB function is not supported. Click for more: 'ms help://MS.VSCC/commoner/redir/redirect.htm?keyword "vbup1040"' 'UPGRADE TODO: Co...
Printing in VB.NET (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, In VB6 i am using Printer.print to print a string. Example : str contain the data like this : Name : Andy Age : 25 Address : 123 Printer.print str Printer.EndDoc By using this method in Vb6, i can print the data like above. After upgraded to .NET, i got the same str data as displayed above. In .NET, i use this method to print the data : Dim e As Graphics Static LineNumber As Integer Dim myFont...
upgrade failures (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
I'm trying to upgrade a vb6 program to vb.net but receive an "upgrade failed" error message. The message states: Exception occurred: the referenced components CommonDialog CommonDialog CommonDialog are missing design time licenses. What do I need to do to eliminate this problem? thanks for any help
ctrl-i like functionality (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi All, Can i achieve CTRL I like functionality(Quick Info) what we've in ..NET IDE?? Actually i want to show a tooltip like window as soon as a user presses ctrl i in TextBox or anyother input control. Regards, Sandeep
WinXP Fax services API (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Dear All I have developed a clinet App using VB.net and the new WinXP Extended Fax APIs [FaxComEXLib] And when I made the installer for this app using a new Installer Project from VS.net a message appeared while building the app saying that : WARNING: 'fxscomex.dll' should be excluded because its source file 'C:\WINXP\System32\fxscomex.dll' is under Windows System File Protection. So ... any body ...
Newbie: Why am I getting this Property Read-Only exception (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
Please help me. I'm a newbie to vb.net, and haven't used VB in many years. I have a project converted from VB6 that I am trying to get to run in VB.Net so I can fix some bugs in it and enhance it. I'm pulling my hair out with similar 'read only' problems in other subroutines. I've tried changing 'ByRef' to ByVal' and vice versa, with mixed results. In one case I had to get rid of a subroutine alto...
'Timer' is a type and cannot be used as an expression. (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hello, I'm trying to upgrade a vb6 project to .net . I'm trying to get the time by calling the Timer function as follow: t TimeStart Timer but got a build error saying 'Timer' is a type and cannot be used as an expression. Any ideas on how to get pass this error please let me know, thanks, Ly
How to get APP.PATH in VB.NET (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
In VB6, I can use App.Path to get the application path. Could anyone tell me how to implement this in VB.NET? Is there any similar object or function? Also, how about App.PrevInstance, app.EXEName and the other properties of the App object in VB6. I know I can add VB6 compatibility to implement some, but how to do it in a real VB.NET way? Thanks a lot. Eric
len(struct) does nocht work - MarshalAs (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
The VB 6.0 works very well, the size of the struct T2 is 600 bytes. But in the translated code to VB.NET the size of the struct T2 is 100 ??? mybe var3 is a pointer but i need a struct there help me thx uschi VB 6.0 Code Option Explicit Private Type t1 var1 As String * 100 End Type Private Type T2 var2 As String * 100 var3(1 To 5) As t1 End Type Private Sub Form Load() Dim x1 As t1 Dim x2 As T2 Ms...
.NET events in VB6 (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
I've tried creating a Com Class in VB.NET and managed to use this directly from VB6, but this is not what I want to do. I want to create an ordinary class library, not COM, in VB.NET and use it in VB6. This is how I've implemented this: 1. Created a class library 2. Signed the assembly with a strong key 3. Register with regasm, which creates a Type Library 4. Put it in the global assembly cache No...
Currency Data Type in VB.Net ? (7 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, I need to read sime Random Access files created by VB6 Some of these records include Currency data fields. There is no Currency type in VB.net, onlt Decimal. When I try to GET a VS6 record in VB.net that contains Currency data, I get an error to the effect that the Scale factor for the Decimal type is invalid. Is there any way to get a currency type in VB .net? Or, do I have to write VB6 progr...
How do I Give an Application a Version #, VB6 feature gone? (10 replies)
microsoft.public.dotnet.languages.vb.upgrade
In vb6 there was a build option to provide a build no, major minor increment. Also to have it auto increment How do I do this in VB.NET? Please Help... sln
DTS and .NET (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
I have a text file that I want to import into my SQL Server. It is comma delimited and puts quotes around those fields that have commas in them. This is a very standard file format that Access likes, Excel likes, etc. but SQL BULK INSERT absolutely hates. Previously we got around this by using DTS. Unfortunately, I can't find DTS in .NET (short of Shelling out and using DTSRun). First Question: Is...
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