OptionBox / CheckBox state
Hello, 
 
I'm developing a basic skin engine for all VB6 common controls. 
 
A problem has appeared with Option/Check boxes (with Style=Standard) in 
 
a particular case: 
 
I have no idea how to determine a change (.Value property) indirectly. 
 
I mean, for example: 
 
Check1.Value = 1 
 
or 
 
Option1(3).Value = 1 
 
will force a repaint which I should avoid. In other words, I need the 
 
target hWnd. 
 
Any ideas? 
 
Thanks.
Read Entire Conversation

code to click button on webbrowser File Download dialog almost working but not quite
I'm using a webbrowser in VB6 to download pdf files from a website. I 
 
build the URLs dynamically and when I navigate to a url the server 
 
allows me to download a pdf file. I want to automate the process so I 
 
watch for the "File Download" window then get the hWnd of the "Save" 
 
button and try to click it using the 2 code approaches below. I'm not 
 
sure what I'm doing wrong, I see the button depress then raise again, 
 
but the dialog doesn't negotiate the button click. If I click the  ...
Read Entire Conversation

Resource File and Text Handling
Hi all 
 
I have looked into a lot of documentation and tutorials on how to use 
 
VB Resource Editor. But all of them explain loading of 
 
icons, gif files, jpg files in detail and conveniently just say 
 
text/string files 
 
also work similarly 
 
This is quoted from a tuto 
 
************* 
 
LoadResData - For loading AVI and WAV files. These are stored as binary 
 
arrays. 
 
LoadResPicture - For loading the icons, bitmaps, and cursors 
 
LoadResString - For loading those unique message bo ...
Read Entire Conversation

3wGift Software, lowest price!
=====CONTACT=============== 
 
http://www.3wgift.com 
 
=====HIGH LIGHTS=========== 
 
*2500+ discount software. 
 
*100% passed manual test. 
 
*customer oriented. 
 
*100% positive Customer feedback. 
 
=====COMMENTS=============== 
 
*VOL Verison. (Volume Licensing for Organizations) 
 
*NOT require to activate. 
 
*Free and smooth update. 
 
*100% full version, 100% useable,100% updateable,100% safe 
 
=====END OF THE AD========
Read Entire Conversation

Accessing Folder Picture/Thumbnail
Is there a way to access the picture that XP Pro can use as a thumbnail 
 
for a folder? 
 
I.e., if you right-click on a folder, choose properties, and click the 
 
"Customize" tab (see image below). 
 
http://img186.imageshack.us/my.php?image=folderpicturegl1.jpg 
 
I've gone through the MSDN and Automation libraries, but haven't had a 
 
lot of luck...although I admittedly dont' know *exactly* what terms I 
 
need to use. I'd like to write a small program to set the image for 
 
multiple folders. 
 
Any ideas? 
 
Thanks
Read Entire Conversation

VB6 Timer with out form
hi  can i have a code like this 
 
Dim mytimer  As Timer 
 
Public Sub Main() 
 
mytimer .Interval = 10 
 
End Sub 
 
Private Sub mytimer _Timer() 
 
msgBox "Timer Event" 
 
End Sub 
 
-- I am Getting Error Message " Object Variable or with  Block Variable 
 
is not set" 
 
While Setting 
 
mytimer .Interval = 10 
 
in main. 
 
-- I don't have any form  in my  project
Read Entire Conversation

VB6 Timer with out form
hi  can i have a code like this 
 
Dim mytimer  As Timer 
 
Public Sub Main() 
 
mytimer .Interval = 10 
 
End Sub 
 
Private Sub mytimer _Timer() 
 
msgBox "Timer Event" 
 
End Sub 
 
-- I am Getting Error Message " Object Variable or with  Block Variable 
 
is not set" 
 
While Setting 
 
mytimer .Interval = 10 
 
in main. 
 
-- I don't have any form  in my  project
Read Entire Conversation

VB6 Timer with out form
hi  can i have a code like this 
 
Dim mytimer  As Timer 
 
Public Sub Main() 
 
mytimer .Interval = 10 
 
End Sub 
 
Private Sub mytimer _Timer() 
 
msgBox "Timer Event" 
 
End Sub 
 
-- I am Getting Error Message " Object Variable or with  Block Variable 
 
is not set" 
 
While Setting 
 
mytimer .Interval = 10 
 
in main. 
 
-- I don't have any form  in my  project
Read Entire Conversation

VB MSCOMM RS232 communication and manipulation of data
Dear frens, 
 
I'm writing a VB project which will receive data from a device via 
 
RS232. I have a few problems 
 
1) First, I can use VB to capture the RS232 data but what i get is some 
 
characters which i think should be ASCII characters whereas i can 
 
capture the RS232 data with some " SERIAL MONITORING" software which 
 
will display the data nicely in HEX, for eg 
 
A1 23 FE 41 1C 43 
 
My question is how can i convert the RS232 data i captured above to the 
 
HEX i mentioned, ie A1 2 ...
Read Entire Conversation

ImageCombo, What is equivalent of ListIndex of the Regular Combo?
Hi all, 
 
Recently I have started using ImageCombo. I can add items to the 
 
Imagecombo alright. 
 
But I could not find a way to remove an Item specifying its index, 
 
or listIndex or whatever it is. 
 
Also, I cannot do as in Regular combo, say 
 
Combo1.ListIndex=3   '(any number) 
 
How can I read the Current   -------------Listindex-------------- 
 
and again, specify a new  ------------ListIndex------------ 
 
Please give me some short example 
 
for changing the ------------ListIndex-- ...
Read Entire Conversation

Add scheduled task to run every x mins
Hi, 
 
I'm trying to use the Windows schedule service to run a task every x mins. 
 
I'm using the code below that Google found for me which uses 
 
NetScheduleJobAdd. It all works fine for tasks that run on certain days etc, 
 
but I can't find a way of getting a task to run every x minutes as the 
 
AT_INFO 
 
structure does not appear to give you any way of doing this. MSDN isn't 
 
really much help either, yet presumably there is a way as you can do this if 
 
you manually set up a scheduled ...
Read Entire Conversation

QueryPerformanceCounter
How do I call this from VB6 
 
Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount 
 
As LARGE_INTEGER) As Long 
 
What do I use in VB for "LARGE_INTEGER" 
 
-Lou
Read Entire Conversation

OleGetIconOfFile
Hi, 
 
I have problems using the win32 func "OleGetIconOfFile". MSDN states 
 
that it returns a handle to a metafile, but when I try to play it to a 
 
DC or get its bits (GetMetaFileBitsEx) there seems to be no valid data. 
 
I get nothing. No painting and no bits. But the handle returned seems to 
 
be valid. I also tried if it could be a handle of an Enhanced Metafile. 
 
What's wrong with this? 
 
Declare Function OleGetIconOfFile Lib "ole32.dll" _ 
 
(Filename As String, UseFilename As Lon ...
Read Entire Conversation

newbie sendmessage spy++
Hi, 
 
I'm trying to pull the text from a frame on a web page.  At first I 
 
thought it would be possible to do something like 
 
..=2E.frame(x).body.innerhtml but i got an "access denied" error on the 
 
frame I want - the other frames are fine of course :-(   If I do a copy 
 
and paste by hand I get the text so I know this is possible.  Someone 
 
put me onto using sendmessage so I ran the copy and paste through spy++ 
 
and what I got is at the bottom of this email. 
 
Actually what I'd hop ...
Read Entire Conversation

What permissions do I have API
I need an API preferrably with VB6 code to tell me what level of permissions 
 
I have especially if I am a 'Limited User'. 
 
Garry
Read Entire Conversation

Digital signatures for my application?
How to add a digital signature into my EXE, so that when users run it they 
 
don't get a security message box with Publisher Unknown????
Read Entire Conversation

Access Windows Task Manager I/O Writes Under Processes Via VB6
I'm trying to write some code in VB 6.0 to basically access a list of 
 
running applications and running processes similar to what you would 
 
see if you opened the Windows Task Manager utility. 
 
What I'm trying to do is identify a certain process on a particular 
 
computer that throws an error message from time to time during the day 
 
when this particular process runs. 
 
This process is part of a larger process with several thousand Crystal 
 
Report files that are generated in an autom ...
Read Entire Conversation

Running an exe without bringing up confirmation dialogs
Hi all 
 
How can i run an exe in silent mode; that is without the confirmation 
 
boxes popping up. For example i want to run 
 
vbrun60sp5.Exe 
 
from a code within my application.Hoe can i do that without bringing up 
 
the confirmation dialogs 
 
(I gave vbrun60sp5.Exe as an example only. I would be able to any exe 
 
file) 
 
Thanx much in adv 
 
Sneha
Read Entire Conversation

Click on the Save button
Hi all 
 
I am trying to simulate clicking on the "Save" Button that appears on the 
 
"File Download" dialog box. this Dialog contains 4 buttons : 
 
"Open","Save","Cancel","More Info". 
 
When i run my code i failed to click 
 
the "Open" And "Save" buttons but i succes to click the "Cancel" and "More 
 
Info" buttons. 
 
Why does it happend to me ? 
 
What should i do for clicking the "Save" button ? 
 
this is my code : 
 
whwns = FindWindow(vbNullString, "File Download") 
 
If whwns <> 0 ...
Read Entire Conversation

Append text file on Server
Hie , 
 
I need an API that would be able to append an textfile on a server(my 
 
own server)... .?? 
 
Gideon
Read Entire Conversation

Append text file on Server
Hie , 
 
I need an API that would be able to append an textfile on a server(my 
 
own server)... .?? 
 
Gideon
Read Entire Conversation

[again] forcing the CHECKED sign on a menu item
A week ago I asked for a way to put a sign beside 
 
an item menu that has submenu items 
 
in fact, 
 
if an item has submenu items, that item looses its   .Checked  property 
 
and no sign can be put beside it. 
 
I'm simply interested in the sign, not in the  .Checked  property. 
 
I was suggested to use the 
 
SetMenuItemBitmaps   API 
 
but.... 
 
it doesn't work on a item that has a submenu items. 
 
It works for all stand-alone items, but not for items 
 
with submenu (nothing appears). 
 
So any idea?
Read Entire Conversation

Desktop Icon Creating- without WSH
Hi Friends, 
 
Me again, is there any simple way to create an Icon on desktop WITHOUT 
 
USING WSH,(Windows Scripting Host) from a VB6 Application? Please Help. 
 
Thank you.
Read Entire Conversation

WSH Where to find it? And is it RichTxt32-like trouble maker?
Friends, Good Evening. 
 
If my understanding is right, WSH (Windows Scripting Host) is shipped 
 
with Windows XP. 
 
But I could not find it. Somebody please give me a hint, where I can 
 
find it, and how to use it. 
 
Also let me know whether WSH will create problems when applications run 
 
on NON-VB machines? (You know RichTxt32 make a lot of Dependency 
 
headaches!) Will WSH prove to be additional trouble? Thank you very 
 
much in advance.
Read Entire Conversation

Icons on menu[INFO]
Hie 
 
ok , .. i've read all the other post and there seems to be only ONE 
 
conclusion.. 
 
One cant get a bitmap/icon bigger than 13*13 on a menu with API... 
 
but i tried this: (i'm talking vb6 here) 
 
bit = LoadImage(App.hInstance, "E:\open.bmp", IMAGE_BITMAP, 13, 13, 
 
LR_LOADFROMFILE) 
 
Ret = SetMenuItemBitmaps(hSubMenu, 0, MF_BYPOSITION, bit, bit) 
 
And it works Beautifully!!!! . the icon is somwhat resized to a 13 *13 
 
so it looks pretty good....... 
 
ONLY one has to have the ic ...
Read Entire Conversation