microsoft.public.dotnet.languages.vb.upgrade Archive - October 2002
Post a message to this list
Messages
Page: 1
VarPtr Question (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
For the past few days, I've beein trying to port USB HID code from VB 6 to VB.Net. I'm running into a problem with an API function call (see code below). The VB 6 implementation used a VarPtr to pass in a pointer to an array of bytes. I've tried several patterns (e.g. passing in the first byte of the array by val and by ref., etc.), but none of these permutations worked. Is there an alternative to...
How to get the erred line number? (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
HI How to get the error line number? I'm using Try .. catch block. I want to log the error and the line which raised the error. Sample code : Dim cmd as sqlCommand Dim con as sqlConnection Try cmd.connection Con cmd.commandText "S * from Employee" ' Error in select statement cmd.ExecuteScalar() Catch e as exception Write2Log(e.error) 'Here i want to log the line number too. End try Can anyone help...
Image in application background PLEASE! (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
I'm working on an application in VB.Net I need to put an image in background behind my forms The problem I have is : If I click on the background form, the one that I use for my image, this form comes infront I tried Topmost True for my application form, but when I execute a PDF file from my application, the form stays in Topmost above the acrobat reader I would like this image to stay in backgrou...
Treeview control's property (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi all, In VB6, my software uses the Treeview control contain and show some data from the database. For each Node in the Treeview, it contains a Text value and a Key value. I noticed that in VB .NET, this Key property for the Node is removed. I really need to store this Key value(property) for each Node in my Tree. Is there any way/suggestion? Can I add the Key property to the Node object class? A...
PropertyBag equivalent in .NET (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
I'm trying to port an VB6 ActiveX user control to VB.NET but I can't find a way to port a property bag. Suggestions? Brad Waite brad at wcubed dot net
Mask Color in VB.NET (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
I just ran a simple VB6 project through the upgrade wizard. On the VB.NET side, all of my buttons which use MaskColors are hosed up, and I can't find any equivalent to MaskColor in VB.NET. Is there anything I can do?
Setting value by name in .NET (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
In VB6 the command: CallByName CallingForm, field name, VbLet, CStr(RTrim(IIf(IsNull(SQLRecordset.Fields(column no).Value), "", SQLRecordset.Fields(column no).Value))) allows me to set a textbox control or a public variable. The converted code for .Net seems to error when setting a textbox (have not tried a public variable yet). What is the .Net equivalent for setting either textbox.text or public...
Forms Collection (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi Can any one tell how we can load form by passing form name as variable. I have seen many aritcals on forms collection but all passed form as form object. Thanks
Events from .Net Com-object to VB6 (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, I've made a Com component from a .net class so my VB6 client can also benefit from this new code. I've done this by implementing an interface definition of the .Net Class. My prblem is; what to do with events? The event declared in the interface show up in VB6 as functions like: Add OnError() and Remove OnError() ,while the .Net event in the interface and class is declared as: Public Event OnE...
Non-moveable Form (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
How do I make a Form non moveable ??? Regards Abhi
Writing to a file causes unauthorised access to path (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hello, I am using VB.NET. How do i gain enough permissions for the folders and files in VB code? Thanks Simon jefferies simon@hotmail.com "Sebastien Bovo [MS]" sbovo@online.microsoft.com wrote in message news:OS2toraTCHA.1648@tkmsftngp09... Hello, If you do not use authentication, is ASPNET account which is used. You should verify that ASPNET account has enought permissions on the folders and file...
API call with AddressOf operator (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
I am having trouble with the AddressOf operator in the following API call: SetWindowLong(hWnd, GWL WNDPROC, AddressOf pSubclassWndProc) the error states that "addressof expression cannot be converted to integer because integer is not a delegate type" how can i fix this?
Image Class (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi All, I have a control that gets image from ImageList (in VB6), when converting to VB .NET, there was an error to get image from the ImageList. I tried to remove the old ImageList, and put .NET imagelist, when I try to get the image an exception of type InvalidCastException occured, saying it can convert Image to stdole.stdPicture Can anybody tell me how to convert an Image class to stdole.stdPi...
Array issue with upgrade (2 replies)
microsoft.public.dotnet.languages.vb.upgrade
In vb6 I had: Public Property Let CallFrameInput(InputArray() As Variant) Dim icount As Integer If InputArray(0, 0) "r" Then InputArray(0, 2) Null End If... After the upgrade wizard, I have: Public WriteOnly Property CallFrameInput() As Object() Set(ByVal Value() As Object) Dim icount As Short If Value(0, 0) "r" Then Value(0, 2) System.DBNull.Value End If... and the follow compile error... Number ...
Accessing members of a derived class (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi, My VB6 project group includes a DLL that is used by five executables. The DLL contains a class that manipulates controls on forms that are contained in three of the calling executables. I pass a reference to the form from the EXE into the class in the DLL, and then access the controls on that form via FormReference.ControlName. Since the forms themselves are contained in another project, they ...
Trouble with Wininet (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
I have a class that uses the wininet dll to connect to the internet grab the first 1000 chars of a html page into a buffer and then do some vaildation on it. The code was originally written in VB6, but now I am trying to rewrite in vb.net. Problem is that I am getting an empty buffer back for validation! The function ReadFile(hFile, sBuffer, 1000, Ret) usually writes header info to sBuffer (in VB6...
Design suggestions for dynamically added controls (4 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hello, I'm working on a small project that will require me to generate some controls on a form at runtime. Basically, here's the breakdown: The top level object is the survey. It contains a collection of Section objects, each of which contains an array of some child class of the question object (this code has already been written, so no big deal). Now, I'm displaying this entire structure on the l...
Data Type Conversion Problem (3 replies)
microsoft.public.dotnet.languages.vb.upgrade
I'm porting some VB6 code to VB.NET and I've run into what I believe is a data type conversion problem. I'm trying to make an API call to HidD GetHidGuid which returns the GUID for the HID class. Here is the code that defines the GUID structure and the declare for the function call: Public Struture GUID Public Data1 as Long Public Data2 as Integer Public Data3 as Integer Public Data4() as Byte ' i...
Button_click_1? (6 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hi I have a program I imported into .net from vb6. I have a button (actually several) when I double click on to view the code, it goes to button click 1 instead of the code I already fixed button click. I put a new button and compared the two to see what setting I didn't see any difference. Could someone tell me the difference between these and/or what I am doing incorrectly? Thanks Janet
QueryInterface failure of vbSqlDMO.NameList (6 replies)
microsoft.public.dotnet.languages.vb.upgrade
I'm upgrading a vb6 application to vb.net. I got errors that mostly are "System.InvalidCastException" & QueryInterface failure of vbSqlDMO.NameList. I'm sure that the sql server 2000 service pack 2 has been installed well. (version 8.00.534) And I have try to register the dll again using 'tlbimp' command. It can't work finally. During the upgrade process, there several dll files has been created, ...
How in VB .NET to apply ImageAnimator.Animate Method? (11 replies)
microsoft.public.dotnet.languages.vb.upgrade
Hello. I ask to answer the following question: In Help of Visual Studio .NET in section .NET Framework Class Library, ImageAnimator.Animate Method the following example is given: Imports System Imports System.Drawing Imports System.Windows.Forms Public Class animateImage Inherits Form 'Create a Bitmpap Object. Private animatedImage As New Bitmap("SampleAnimation.gif") Private currentlyAnimating As...
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