SHelton,
Thanks for your clear answer, I only wonder, the case presented in my program is extremely simple yet DoEvents failed. Is it VB.NET problem? I don't think this problem exists in VB6!
Dan
I have tested and retested the program, debug and release configs, on two machines, and it always needs two clicks.
I'm using XP pro and .NET Framework 1.0.
Would you agree that I'll mail you the 10k exe file to test on your machine.
As you can see I don't have anything else on the form (beside the TextBox). Yes I have to click Button1 twice.
Can you try the progran and let me know.
Thanks
Dan
Rebecca,
Thanks for your reply but the issue is that after the first click End or Exit() do not get a chance yet to run. Only after the second click the Button1 sub gets the CPU.
What I found in the mean time is that the first click moves the Focus to Botton1, so is I do Button1.focus in Button2...
Hi,
In the following program 2 clicks on Button1 are needed to get his attention (even minutes apart). The first click is always ignored.
Any Idea why?
____________________________________
Imports System.IO
Imports System.Windows.Forms.Application
Public Class Form1
Inherits...
Thanks it works but I had to chane to:
e.Graphics.DrawString("Hello", New System.Drawing.Font("Arial", 16), New SolidBrush(Color.Black), 10, 10)
for some reason.
FontStyle.regular cause me syntax error.
Thanks again
Dan
Thanks a lot, it works. I actually don't know yet how to override the OnPaint event with this sub but I made it work by calling the sub from an command botton click event.
How one create a form (baseform) OnPaint handler?
Thanks again
Dan
I'm trying to draw text directly on the form like it use to be in VB6 with the PRINT method.
I founf something about this in MSDN:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskprintingtext.asp
but I'm not able to use it.
Can someone help?
Thanks
Dan
The same DB file when being moved from the CD to the hard disk works fine with the same code. On the other hand when double clicking the file on the CD it opens as read only DB after a warning. So I fail to understand the mechanism here.
Thanks
Dan
I have created an MSI file and have used it ok on several Windows 98 machine. One PC does not recognuze the file as an install/setup file and even replace the install 1.1 icon.
Does somthing need to be on the target machine in order to be able to process MSI files?
Thanks
Daniel
Hi,
I'm using:
set x=opendatabase(filename,,true)' read only
to open an Access db on a CD for read only purpuse and get the Error 3051 still.
Any Idea why ?
Thanks
Daniel
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.