vb

Is there any way to make the AxAcroPDF Library work in 64 bit environment?

We have created an application which we want to run in a 64 bit environment. The issue we have is one of our forms uses a pdfviewer. The rest of the application works fine in a 64 bit environment. However, the only way the form with the pdf viewer (AxAcroPDFLib.AxAcroPDF) will work is if we make the whole application a 32 bit applicati...

How To Create File System Fragmentation?

Risk Factors for File Fragmentation include mostly full Disks and repeated file appends. What are other risk factors for file fragmentation? How would one make a program using common languages like C++/C#/VB/VB.NET to work with files & make new files with the goal of increasing file fragmentation? WinXP / NTFS is the target Edit: Wou...

SQLDataReader: Dealing with null values

Some tables I am dealing with have null values and are throwing errors. So far ive tried a few solutions to deal with the nulls with no success. Here are the code samples from my efforts so far; If (r("datemodified").Equals(DBNull.Value)) Then datemodified = String.Empty Else datemodified = (...

How Pass ADODB Connection object from VB Components to C# with asp.net application

Hi to all, I am executing multiple vb6 components that accesses different database engines such as access (mdb), sql server, etc from within asp.net. These components are already compiled dlls in vb6 and added as referenced assembly in asp.net framework 2.0. Each component has several functions that passes the adodb.connection object a...

Need to use COMM port 2 to get information from a device. .Net doesnt support it though

I am writing a vb.net app that has a piece which needs to send a small command to comm port 2 and get the return result. The problem is .net doesnt have any support for serial communication seems like. Please help. I just need to send the command "headtype" and get the result. ...

Loop with Unique ID?

Hello fellow nerds, I have a database (using Sqlite) that has ID has a primary key with autoinc, that loads the values into a listbox control. If I loop through the database normally, adding the values of the database into my listbox, I can't get the ID by using SelectedIndex because the Index will not always be the same as the ID, and ...

Visual Basic 6.0 UML Diagram generator

Are there any free UML diagram generator that could convert a VB6 source code into a UML diagram? ...

SQL Exception Data

I have written a program which uses a SQL exception class and then use it show custom messages for the primary key violation. Also i want the primary key value that caused the violation. How can i get all the primary keys which generated the exception from the sqlexception object. Catch se As SqlException For i As Integer...

Any Performance overhead if the application has more 5000 COM objects?

We do industrial automation application and we need to use VC++ application. As part of that we need windows controls which shall be developed in Visual Basic 6.0. When we run the application with tabbed interfaces, we have approximately 5000 COM objects together. COM object count is expected to grow. Are are any performance overhe...

Font size differences between VB6 and VB.NET

When setting a point 10 font size in VB6: Me.FontName = "Verdana" Me.FontSize = 10 Debug.Print Me.FontSize The reported font size is 9.75. However, when the same is done in VB.NET: Me.Font = New System.Drawing.Font("Verdana", 10) Console.WriteLine(Me.Font.Size) The reported size is 10. Can someone explain the difference here? My hu...

vb.net - what different of Dim files() As String and Dim files As String()

for example: Dim files() As String = Directory.GetFiles("C:/") Dim files As String() = Directory.GetFiles("C:/") what different of them?? thanks you ...

Listbox Control Item (ugh) Multiple Names?

Okay, so the title was horrible. I know that. Here's what I'm trying to do: I have a lot of data that's coming from a database and being adding to a listbox. The data that's coming from the database is a unique ID, and a name. Is there any way I can make the item contain both the ID and name? I know I can append it, that's not what I'...

Subversion Protocol

I'm researching the feasiblity of building the ability to browse a subversion repository from my web app. I'm developing in asp.net. I've read some mentions of WebDAV, but nothing that seems particularly concrete. Does anyone know anything about the protocol that is used to communicate with SVN? Or even better, a .net library that ca...

SQL TOP 10 Ranking Query Help Required

Hi Everyone I have the code below and I am trying to find out the top 10 servers used in the last month, but having issues, not very good with SQL. Need some help or advice if possible. I got this working on top 10 Apps but cannot figure out how to make this happen for top 10 servers. SELECT TOP 10 dbo_LU_SERVERNAME.SERVERNAME, Count(...

visual basic, filtering and finding records

I have done coding the AddNew Delete Update Refresh This is my code DataEnvironment1.rsSubject.Addnew DataEnvironment1.rsSubject.Delete etc. Now I'm having a hard time filtering and finding records using Data.Environment1.rsSubject.Find or Filer. . . Can anyone help?? ...

RegularExpressionValidator or No validator at all (just a label)?

suppose I have a boolean function in my ValidationClass that checks user input for txtState (a textbox that contains the 2 letter abbreviation of a state), what should I put inside the if statement to activate Validation Summary displaying that user input for the state textbox is bad? Thank you! if isState(txtState.txt) = false then ' n...

How to get my VB.net form to focus above existing users windows and applications?

I have a Visual Basic .Net form (launches after the splash screen tests database connectivity) and it is not focusing above other existing windows on launch. How do I get it to focus above all existing windows and Windows Explorer windows? ...

Drag & Drop from Form to Windows; get drop destination

I have been developing an app in VB.NET which requires a control object (for example, a ListViewItem) to be dragged out of the form, and to a user-specified location (for example, on the desktop, or in a folder). However, The file that is intended to be 'copied', as the 'ListViewItem' represents, does not yet exist. It needs to be downl...

Read XML in VB.net

Guys I'm dying here. I have googled for the last hour or so with no luck (I'd like to think I'm a great googler too!), so here I am. I have an XML file that I'm using for my programs settings, it looks like so: <?xml version="1.0" encoding="utf-8"?> <config> <store> <number>0323</number> <address>address</address> ...

Localization .NET; Fallback language when using ResourceManager

Recently I was delving into Localization with .NET. Essentially, I learnt how to customize a form (using the Language and Localizable property) and then change the culture accordingly. However, I found that when migrating my hard coded English strings into the auto-generated resource files, and use .GetString("Key") -- well, let's just ...