Hello,
I am trying to ignore zero values in my Chart but when a value is NULL the marker always jumps to 0 in the Y-Axis. How can I exclude zero values, so there will be no marker for that value? Is that even possible?
Im writing in VB.
...
Hi
I have VB6 Dll which I am referencing in vb.net ,I am calling the following function in it. It working fine in developemnt environment but not in deployement environment.
Error :
Method not found: 'Boolean MyUtils._MyUtils.LoadMyObjectRecords(ADODB.Stream ByRef, System.Array ByRef)'.
waiting for your valuable thoughts
Thank you...
I am using the following code to save an image created on a Form to a bitmap file:
SavePicture Form1.Image, Output_Dir + Patternname + ".bmp"
DoEvents
Now the image created on the form is a 1600x1200 pixel image (which looks correct);
however, when I save the file using the above code the image is always saved as a 1920x1200 pixel bi...
Hello All,
I am using the CheckTokenMembership Windows API to check if the user is an Administrator.
Here's the code:
Option Explicit
Private Const SECURITY_BUILTIN_DOMAIN_RID As Long = &H20
Private Const DOMAIN_ALIAS_RID_ADMINS As Long = &H220
Private Declare Function AllocateAndInitializeSid Lib "advapi32.dll" (pId...
I am working on a VB6 application. I need to get the regional settings options like
Location information
Standards and formats
Default input language
Language for non-unicode language
Is there any API available for this?
Thanks.
...
I'm stuck with VB6 and I'm using Form.Controls.Add(...) to create a bunch of controls at runtime.
Unfortunately this seems to be a very slow process, with heavy flickering.
Is there any way to speed up the process? Perhaps it's possible to somehow notify VB6 that I'm doing a mass-insert of new controls.
...
We have an application that has a "launcher" app that sits there with a pretty UI while the main app loads in the background. Both of these apps are written in VB6 (sigh).
In Windows 7, if user's pin the launcher program, we get two different icons on the taskbar (one for the main app, and then the pinned icon for the launcher program)...
I have a VB6 project(windows application) and I have to redevelop a module in the existing VB6 project in C#.net.
The module that I develop in C#.net should be a dll and should contain some windows forms. I was able to successfully call a c# console applicaiton dll from my vb6 project but I am facing issues when i try to call a C# clas...
Hello All,
In VB6, I have the following line of code in the Form_Load event:
DOSOMETHING()
MsgBox "Done"
DOSOMETHING() is a buggy function that I expect to always crash. When I run the app, it will do its thing and crash, without showing the MsgBox.
But when I write it using loops:
Dim X as Integer
For X = 0 to 1000
DOSOMETHIN...
I have a classic ASP/VBScript application that needs to call methods in a Java class. I discovered two products that apparently can do this: Java2COM and Java COM Bridge. Can you recommend one from experience, or is there yet another mechanism by which we can do this which is better? I'd rather avoid having to write C++ code if possible,...
We are planning to move a VB6 binary only from one Windows machine to another in production environment.
What type of Windows OS cannot run a VB6 binary?
What type of extra run time application needs to be installed to make sure that a VB6 binary would run on that machine?
Underneath the hood how is a VB6 binary different from a C# b...
I have been tasked with converting an old VB6 program to to C#. One function I have been having trouble porting over is the calculation of a birthdate from a filed that was read from a binary file:
.BirthDate = CDate((CLng(recPatient.birthDateByte2) * 256) +
(recPatient.birthDateByte1 + 366))
The only function...
If I have a collection of forms (myForms) and I want to switch the position of two forms in the collection (say items 3 and 4 for example), I would expect that the following code would work:
Dim temp as Form
Set temp = myForms(3)
Set myForms(3) = myForms(4)
Set myForms(4) = temp
But that doesn't work. It fails at the third line with ...
Is it possible to redefine keyboard shortcuts in the Visual Basic 6 IDE?
Specifically, I want to redefine the "Definition" and "Last Position"
...
I want to move some of the menus around (especially the right-click context menu items) in the VB6 IDE.
...
Hello,
I'm developing memory management program, that the Form1_Load Sub is like this:
Private Sub Form_Load()
HeapSize()
HeapFree()
HeapMax()
StorageSize()
StorageFree()
End Sub
But when I try to compile it, I'm getting this:
Compiling...
frmMain.hbf (1) : error #2000 : parse error before 'end-of-line'
frm...
Hey guys,
I was working on my vb6 project, and I needed my scrollbar max to reach 40000. Though I can assume that the max was around 32000 since the scrollbar max is an integer. How can I change this?
Thanks,
Kevin
...
I've noticed that RTL*Move*Memory seems to work just fine. But when I try to use RTL*Copy*Memory I get: "Can't find DLL entry point RtlCopyMemory in kernel32". Here is my declare:
Private Declare Sub CopyMem Lib "kernel32" Alias "RtlCopyMemory" ( _
ByVal dest As Long, _
ByVal source As Long, _
ByVal bytLen As Long)
...
I have an issue with a third-party COM+ DLL meant to be used from VB6, where it has a function to set a Callback for a hardware event. However, I'm using VB.NET, and AddressOf now returns a reference type instead of an integral type, which means that the setCallback function on the COM+ DLL apparently can't be used.
Is there a way arou...
I have a VB6 DLL embedded in some ASP pages. The DLL hits a Codebase database, an obsure and obsolete database engine (a dialect/variation on dBase) that virtually no-one has even heard of. It takes Codebase nearly a second to initialise a new connection, which is unacceptably slow and so I've created a connection pool, managed by a VB c...