There is an OCX called "System Tray Icon". With the Icon on the tray, you can use the built in events as in leftbuttondown
Which then could invoke a ShellExe() to start your application. Then use the Terminate program API to stop it.
User Profile
Collapse
-
You could check the size of the file every second or so.
If it does not increase after 3~5 seconds the file is done being made.
If the "pdftk" program is a seperate program invoked to combine the files, you could use a function that is able to see all the programs running. When it disapears, your done.Leave a comment:
-
There is another type of grid you could use: UBGRID
I don't think the person who wrote this is in buisness anymore, but you may be able to find a copy still out there.Leave a comment:
-
Assuming your have a picture box and a list box that points to picture files, this may help:
Code:Private Sub Command1_Click() 'used as the next button Dim FileName As String If List1.ListIndex < List1.ListCount - 1 Then List1.ListIndex = List1.ListIndex + 1 List1.Selected(List1.ListIndex) = True 'highlights the list item FileName = List1.List(List1.ListIndex) Picture1.Picture
Leave a comment:
-
How to get Outlook Calender events
I'm setting up a program that needs to know when calender events have been reached. i.e. "Out to lunch" Staring 12:00 PM, Ending 1:00 PM.
I did find some code that referenced the Default folders but each time it did a "Set objExplorer = objFolder.GetEx plorer()" a new incidence of Outlook would startup. I do get the info I'm looking for, but would have zillions of Outlooks running this way.
TIA,... -
If there were OCX files in the application folder that arn't in the distibution file, that could cause this error.
Was the application simply copied onto Win7. If so, you would need to "Install" the applicaiton to have the registry set the OCX mods locations and/or to register the DLL's.Leave a comment:
-
In the properties section for the FlexGrid, look for "WordWrap" at the bottom of the list. This will wrap text in the cell as well as allowing vbCRLF to work.
Can also be set at "run time"Leave a comment:
-
Move the program to anther folder outside c:/Programs or c:/Programs(386)
This does sound like a permissions issue. Seen it before.
Create a folder of the c: drive (C:/myprogram/) and copy all your files to it.Leave a comment:
-
IraComm replied to How to link two computers so that when an action is taken on one it saves on the othein Visual BasicYou would need to create connections using the Winsock.OCX.
ON the Server side it would be set to "Listen" and when another computer attempts to conntect the server would create another winsock object and alow it to "Accept" the connection.
Of course the is a crude instruction and would take some time to write the solution.
Let us know what you have so far as to winsocks or your Idea on how one...Leave a comment:
-
It sounds like you may have bound the FlexGrid to the recordset.
I would remove the bound and ".MoveNext" threw the recordset adding each item with .TextMatrix(r,c ) or .AddItem(...)Leave a comment:
-
Assuming the data is already in the listbox:
Code:Private Sub Command1_Click() Dim f as interger Dim a$ For f = 0 To List1.ListCount - 1 a$ = List1.List(f) a$ = Format(f + 1, "00") & " " & a$ List1.List(f) = a$ Next End Sub
Leave a comment:
-
Here is some code called "GetString" which alows the user to define where in a string they want to retrive some portion of that string.
As in the example above, I would use "Line Input #ff,a$" to get the line from the file. Next invoke GetString
Ret = GetString("",,, " ")
This will get whatever is at the beginning of the line up to the first space. (non-inclusive)
...Leave a comment:
-
Code:Picture1.Picture = LoadPicture(PictureFolder & "\" & a$) For h = 0 To Picture1.ScaleHeight Step Picture2.ScaleHeight For G = 0 To Picture1.ScaleWidth Step Picture2.ScaleWidth For x = 0 To Picture2.ScaleWidth - 7 Step iStep DoEvents For y = 0 To Picture2.ScaleHeight - 7 Step iStep 'get color
Leave a comment:
No activity results to display
Show More
Leave a comment: