I have a multi-tier application.
Application A (VB.NET) creates security object B (VB6) which then creates a data access object C which raises an error.
When the data access object is a VB6 object then the error is correctly handled by the security object (B) but when I replace it with a VB.NET...
I have a VB.NET DLL which creates an ADO.NET Dataset by executing some SQL which includes an "ORDER BY" clause to ensure data is in the correct sequence. When I look through the Dataset.Tables(0) collection, I can see that the data is indeed sorted correctly. When I use this dataset as...
I have a problem in a VB.NET application where the Closed event is not fired when I used the Close method on a form which has previously been hidden. Simply showing the form again before closing it makes no difference. The form is an MDI parent - I do not know if that is significant.
Also, I...
I have a project with a sub main & two forms (form1 & form2).
the sub main does application.run (x) where x is an instance of form2.
In the load event of form2 there is logic to show form1 as a dialog and if it returns cancel then it does me.close to terminate the application.
This works fine...
I have a form Form1 which needs to show Form2 centred on itself.
This is achieved in VB6 by setting the StartupPosition property of Form2 to CentreOwner. Form1 simply then uses Form2.show vbModal.
How can I achieve the same result in VB.NET?
Has anyone come across a problem using the ActiveX Listview control (as supplied with VB6) in VB.NET?
I put this listview on a form and execute the following code:
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
Dim i As...
Is there any way of retrieving assembly attributes in VB.NET code?
I want to be able to retrieve the AssemblyTitle attribute to display it on forms.
Thanks for any help.
Glyn.
I have a VB6 application which displays a logon form which then shows the applications main form and unloads itself.
This works fine in VB 6, but when I migrate it to VB.NET the application terminates as soon as the logon form unloads.
How should I change the code to make this work as in VB6?
I...
I have an ActiveX control written in VB6 which I have placed on a form in a VB.NET project.
The control contains a number of buttons, one of which is the default and one of which is the cancel button.
Is there any way I can assign these buttons to the AcceptButton and CancelButton properties of...
I have a VB6 application which uses HTML help. This works fine on my Windows 2000 machine, but when I install it on another machine running NT4, the help facility does not work. When I press F1 the pointer momentarily changes to an hourglass but no help is displayed. I can open the help file by...
Can anyone tell me where I can find out what values can be contained in the NativeError property of the Errors collection of an ADO connection?
I know these depend on the provider. I am using ODBC to connect to an Access database.
To be more specific I would like to know what value is returned...
I have an ActiveX component which can be compiled as an EXE or a DLL. I would like the code to run slightly differently in the two cases. Is there a property somewhere I can check to determine the mode at run time? I know I can set compiler flags, but would like a neater solution.
I would like to be able to determine how long a process takes in milliseconds. The time functions in VB only appear to deal with times down to seconds. Are there API functions I can use to compare two times in milliseconds?
I have an application which includes a data report which is dynamically bound to a data source. When this data source is a record set returned by an ActiveX DLL the application works OK, but when I change the DLL into an ActiveX exe I get an error 8577 "Failed getting rowset(s) from data...
I have a VB6 ActiveX exe which displays a form.
I want this form to be activated once it has been populated.
To do this I use AppActivate(formname.caption).
This code appears to work on some machines, but on others the item on the task bar flashes but the form is not brought to the front. All...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.