Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: GlynA
  • Content: Threads
  • Order by date
  1. GlynA

    Error not raised correctly.

    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...
  2. GlynA

    Passing sorted ADO.NET dataset to Crystal Reports

    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...
  3. GlynA

    Closed event not fired when form hidden.

    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...
  4. GlynA

    Cannot Access a disposed object

    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...
  5. GlynA

    How to centre one form on another?

    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?
  6. GlynA

    Problem with Listview 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...
  7. GlynA

    Assembly attributes

    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.
  8. GlynA

    Application lifetime

    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...
  9. GlynA

    AcceptButton & CancelButton

    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...
  10. GlynA

    html help not working

    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...
  11. GlynA

    NativeError property in RDO

    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...
  12. GlynA

    API calls to get terminal name

    Can someone please remind me what API calls are required to get the name of the terminal in use. Thanks. Glyn.
  13. GlynA

    How to determine if in EXE or DLL

    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.
  14. GlynA

    Time in milliseconds

    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?
  15. GlynA

    Failed getting rowset(s) from Activex exe

    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...
  16. GlynA

    AppActivate not working

    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...

Part and Inventory Search

Back
Top