Search:
Type: Posts; User: Shrog
Search:
Search took 0.14 seconds.
-
OK, so you want to make the form to be the shape of the picture...
You will need to use several API calls to achieve this. I have two basic methods: The first uses the CreatePolygonRgn API call to...
-
I don't understand the question - do you mean you want to trim the outer edges of the picture? Are you trying to cut or copy the picture onto the clipboard? Or are you trying to make the form the...
-
I would not take that approach. You are thinking in terms of a file format and trying to design your program around it. You should design the file format last.
What you need to do is design all...
-
The only way to learn is by doing. Of all the courses, books, tutorials, etc. that I have attended, read oe done, my best teacher has always been practical experience.
Get yourself a project (try...
-
vbChecked is not 1 or True, it is just 1. True is -1.
A checkbox control has a Value property. The property can have one of 3 values: vbUnChecked, vbChecked or vbGrayed (0, 1 and 2 respectively)....
-
I think the problem is that you are using the type suffixes. Say "Now" not "Now#" and "FormatD" not "FormatD$".
It's been many years since I've used QB, but i vaguely remember using these...
-
Here are some of the INI file basics. There is a lot more documentation on the internet about this stuff - just do a search on some of these API definitions. The coding below is a good place to start...
-
Both are fine from a design principle point of view, but neither are syntactically correct for VB.
How are you planning to do it in VB?
Shrog
-
Depending on the drag method you are using, you should get the "DragOver" event.
Shrog
-
If you reference any of the Word libraries, then it will not be compatible. E.g. if you go to References and select "Microsoft Word 9 Object Library".
If you then run on a machine with a different...
-
Well, in that case you can use a textbox sitting on a hidden form.
But that does not change the fact that you cannot conjure up a control by Dimming it. You have to dim it to create the reference...
-
Type Libraries are like template classes. They expose the interface to your application, without the coding.
So to use a type library, you must implement it in your form or calss module:
...
-
I would say yes, it is necessary.
You want to be able to do things with the textbox, and you don't want to keep refering to "frmMain.txtName" or "frmRelationship.txtAmount". You must be able to...
-
You can say "Dim txtTest As TextBox" in any type of module you want, but you cannot say "Set txtTest = New Textbox"
And that is basically where you are stuck - you will have to pass the control to...
-
you can actually create your own type library without using the MIDL compiler.
Create an ActiveX DLL project, and create all the procedures and structures you want in your class module.
Go to...
-
Another way is to create a procedure that you call from every event, passing it the event name and array of arguments as paramarray.
Private Sub Form_MouseUp(Button As Integer, Shift As...
-
There is obviously a file missing, that is supposed to come with your installation. Make sure that all required files are included.
-
Create a sub procedure in the class that takes two parameters, one for each control.
-
One of the most important things to specify is the error number and description that you get. The error will tell us what's going on. Without that informations, I might as well gues that it's the...
-
When you work with Random Access files, you can specify a record number when using Get and Put. If you do not specify a record number, the system will use the next unread record number. This way you...
-
This will NOT cause a memory leak. The CopyMemory function does not allocate the memory, so you don't have to deallocate it afterwards. I just moves to an area of memory that may or may not be...
-
Yes, what Megatron says.
But if you are going to use the Select statement, remember that yo can combine values:
Select Case strPressed
Case "0" to "9", "/", "*", "-", "+"
'Do Stuff
Case...
-
You have to remove the icon from the SysTray. You can use these three subs to do whatever you need to:
Public Sub AddTrayIcon(vHwnd As Long, vIcon As StdPicture, vTooltip As String)
' Install...
-
What version of Windows are you running? A couple of years ago, I used to run WinNT and had the same problem. It was not a virus, but a bug in NT. There was a utility available that solved the...
-
You must be running one of the new "Let's-hide-information-that-the-user-expects-to-see" versions of Windows. This is a new fancy feature of Win2000, WinME, etc.
Right-Click your desktop and...
-
You will have to start off with an instance of the control you want to use, i.e. you will need to add one of each control to a form. You don't have to show the form, you just use it as a holding...
-
The Single datatype gets its name from "Single Precision Floating Point Number" and Double get's its name from "Double Precision Floating Point Number".
So the trick is in the precision. If you...
-
The structure I was describing is in fact in source safe.
The Version tracking in SS is however cumbersome and not a professional tool, so with each release, we make backups which are frozen (you...
-
You will be running into problems if you use the "Now" function to get today's date. "Now" will contain both the date and the time. To get just the date without the time you can try on of these two...
-
You may be able to use the error to your advantage:
Public Function IsRedimmed(vArray As Variant) As Boolean
Dim X as Long
On Error Goto Handle
X = UBound(vArray)
IsRedimmed = true...
-
Small=arrNodes(0,1)
For Row = 0 To 19
For Col = 1 To 2
If arrNodes(Row, Col) < Small Then
Small = arrNodes(Row, Col)
End If
Next Col
-
This is what I've been using, but I cannot find out how to get the dialog window to start up at a specific directory.
I want to be able to take the user directly to the last selected directory,...
-
VB will use a temporary "variable" as a work area for calculating. The datatype of this workspace is determined by the datatype of the items involved in the calculations. E.g. if you are multiplying...
-
Each VB project goes into a folder with the same name as the project. The projects are normally components that make up the products that you create. Some components belong to one product, others can...
-
This is actually a "feature" of the image control - it cannot be "in front of" other controls. For example, you cannot cover a textbox or commandbutton (or a picturebox) with an image control.
...
-
That is not quite true - it does in fact unload the form.
If you say in your coding: "Unload Form1", the following 3 events should happen in this sequence:
QueryUnload
Unload
Terminate
...
-
I am surprised that you got any reaction at all, even after 3 clicks - this property is supposed to be read only at run time. That means you cannot set it at run time.
Shrog
-
Whistler is based on Windows 2000. That means that Windows 2000 is Whistlers Mother!
Get it? Get it!? Whistlers mother! Bwhaa-ha-ha-ha!!!
ok. i'm tired and i'm going to bed now. sorry.
-
The .ico format is a Windows specific file format, so many of the free icon sites supply these in GIF format. That way it shows up correctly in all browsers, and can be used by anybody with a...
-
If the file contains any control characters, it's a binary file. Controls characters are all characters smaller than Character 32 (space). Just be aware that text files may contain characters 9(TAB),...
|
Click Here to Expand Forum to Full Width
|