Hello.
I have specific problem determine on which platform my program is running: win32 or x64.
I tried using GetSystemInfo but its output on x64 platform is wrong - shows that is Intel Win32 platform. Also, I tried with GetNativeSystemInfo but this function just return right value for WinXP or...
Hello all.
Let me explain my solution:
I have similar problem: I want to validate each text box by their own function. So I use inheritance and encapsulation:
First, I create a class which inherits System.Windows.Forms.TextBox. Into this class I override (in my case) "OnValidating" event. Also...
Thanks JurkMonkey for replay.
This is very rough idea and I think is not so good.
I'm searching for something that can destroy events before got focus in next control in a row.
Well, at the moment I have implemented this by one global variable which on error in GotFocus method return focus...
Hello.
I have a problem regarding events:
When I want to leave (for example) textbox I catching Leave event of that control and do a check if I can leave this control. In a case that control must not be leaved I fire event to set focus to this control again. The problem here is that the next...
ArkM, thanks. I found these functions in MSDN yesterday and I thought they're used for other purposes.
Now I tried and works just as I wish.
Thanks.
Best regards
Andreo
Hello.
Does anybody know how to programme in C++ a part of code to run under different credentials (ie. Administrator rights).
For example: an .exe is running under momentary account credentials. In some part of code program needs Administrative rights to finished its job. So I have Admin...
This is my class to get EXIF info from regular .jpg picture
using System;
using System.Text;
using System.Collections;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
namespace CreateHTML {
/* This classs was rewrited from EXIF.py script from Gene Cash
Contains code...
Hello.
I got the same problem. I running W2000. Searching on www I got one microsoft page (sorry I forgot the address) that running Win2000 without "Client for Microsoft networks" installed throws this error. This error occurs just in case that you have one .exe file which call ActiveX .dll file...
I have one form with four CommandButtons putted in an array (Cmd(0), Cmd(1), …)
I have also one class which operate with these buttons. I have a problem, how to pass reference of button array to one class's method.
Example:
Class clsBtn:
Private mBtn(4) As CommandButton
Friend Sub...
Hello.
We know that we cannot pass private User defined types (UDT) as a parameter to one method in AciveX DLL and for example, ADODB.Recordset can. Therefore I was wondering, I will pass my own object created from one class which has just properties, as a parameter.
Can someone tell me if...
I prefer
Public Function FileExist(a_file As String) As Boolean
On Error GoTo FileExist_Err
FileExist = False
FileExist = ((GetAttr(a_file) And vbDirectory) = 0)
On Error GoTo 0
Exit Function
FileExist_Err:
End Function
which return true if file (with full path)...
JohnYingling has delimited wright. Add those 5 lines before End sub statment in Sub Form_Load
If Not Form2 Is Nothing Then
Debug.Print "Form 2 is NOT Nothing"
Else
Debug.Print "Form 2 is Nothing"
End If
You got
After 2 Unloaded
Form1
Form 2...
Hello.
I start programming in VB and I'm little confused about getting MTS.
I try to found out where can I get Transaction server: Can I downloaded it from web, or I have to buy it.
I found some pages on web (also on Tek-tips!) explained that I can get MTS from web but just for Windows NT or...
Thanks for fast info.
Just about concurrent users: are they really accessed DB at the same time or they're just connected to database and access to DB was periodical?
Thanks
Andrej
Hello.
Does anybody know the limits of MS Access 2000 database: max tables defined, max fields per tables, max size of table, max size of database, max connections opened simultaniously, ...
A link of these values also make me happy.
Thanks Andrej
Here is one example of function, which retrieve all data from table as recordset.
Hope this help.
' Declarations
Private m_objConnection As ADODB.Connection
Private m_objComm As ADODB.Command
Private m_ConnProvider As String
Private m_Path As String
Private strSQL As String
' Function has...
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.