Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score NOTIFYING Windows about a Conrol Panel change
teo - 14 Apr 2007 8:07 PM - 4 messages
Hallo, I'm with Windows 98 I'd like to change a given setting in the Control Panel and then I'd like Windows to be notified about the changed setting (and act accordingly) The setting causes a pair of values in the Registry to change, ...
Score Help Required
Ron - 14 Apr 2007 3:10 PM - 4 messages
Hi I use the following code to retrieve a stored Path in the registry and put the Path in a Textbox:- Private Sub Form_Load()     Drive1.Drive = GetSetting("MyappName", "Path", "drive", "c:")     Dir1.Path = GetSetting("MyappName", "Path", "folder", "\") ...
Score COM-RPCServer - New Version
Schmidt - 14 Apr 2007 1:56 PM - 7 messages
Hi, just finished a general overhaul of all of my free COM-tools. The "flagship" of them is the RPCServer (now in Version 2.1), wich makes use / integrates many of my other free COMponents (e.g. the dhSQLite-Wrapper or DirectCOM). ...
Score Problem with reference counting
Andy - 14 Apr 2007 1:46 PM - 23 messages
Help me out here please - I need some good strategy. I'm working on an n-tier app, and its object model is huge, in terms of (1) the number of distinct objects (several hundred), (2) the number of potential ...
Score Detecting mouse click
Ole Engvoll - 14 Apr 2007 1:20 PM - 9 messages
Hi! Is there some way to return the control name wherever a user click on a form? Its not possible to use the form_click event since it is not triggered if clicking on a control inside the form. I know this can be ...
Score Intermediate program to hold object reference
Todd Ludington - 14 Apr 2007 2:58 AM - 13 messages
Hello I am having a problem with a third-party DLL that I think I have a work-around for but am not entirely sure how to approach.  This third party DLL works fine when I call it from the application I have written ...
Score Visual Basic for Excel Macro Question Joining multiple cells from different rows and deleting origin
taf_cjn - 13 Apr 2007 9:12 PM - 5 messages
I'm trying to create an Access database from an export from another database.  The original export was into a .CSV file to get all the data contained in fields exported.  Unfortunately if there was a text "carriage return" in the text a new row got created in the .CSV file ...
Score Just an off the cuff question...
Dave - 13 Apr 2007 8:30 PM - 7 messages
Who's responsible for a user's (a VB Developer) system to be backed up....the Network Admistrator or the user? I'm not talking about my data and program files, I'm talking about the Windows OS and the ability to recover after a full system crash. ...
Score Re: Using string to refer to object name
dbMaker - 13 Apr 2007 8:11 PM - 5 messages
Mike & Bob, Very helpful.  What you explained makes a lot of sense.  I was excited to try it but VS2005 is different.  I can't Edit | Paste and get an option to create as an array nor can I set a TextBox's Index ...
Score Determining Access Database format
Tim - 13 Apr 2007 7:02 PM - 2 messages
Does anyone know a way to tell in code how to tell if an Access database format is Access 2000 or Access 2002/2003 format? ...
Score clearing a collection
greg - 13 Apr 2007 6:12 PM - 4 messages
Is there a good way of clearing an entire collection? besides doing this         For iLoop = 1 To xCol.Count             xCol.Remove (1) ...
Score _StdCall Compiled DLL and Strings.
Lance Wynn - 13 Apr 2007 5:19 PM - 18 messages
Hello again. I thought I'd post a new thread for this one.  I got VB6 to compile a DLL correctly, and all is well.  All except that it is funking with Strings.  If I have a method that takes a String as a parameter, it appears that the ...
Score Using string to refer to object name
dbMaker - 13 Apr 2007 4:47 PM - 6 messages
I am building a query-by-form Form.  It has many TextBox objects for users to specify criteria.  They are named TextBox00, TextBox01, etc. On the 'Query' button, I want to attach code that will loop through the TextBox names and retrieve the contents of each text box object. ...
Score Batch File
Anna - 13 Apr 2007 4:21 PM - 7 messages
Hi:Can any one please tell me how to i pass two file parameters thru batch file (One for input file name and the other is for output). I mean VB6 program will be accept the input and output file parameters ...
Score contrast and picturebox
PierreVal - 13 Apr 2007 2:16 PM - 12 messages
Hello, sorry for my level in english........ I'll want make a program (in VB6) which change accurately the contrast for an picturebox with a value of a textbox. But i don't understand the fonctions "getpixel", "setpixel" and "point".... ...
Score fitting images(on printer)
newbie in hell - 13 Apr 2007 1:20 PM - 6 messages
Hi, I need to print an MSCHART image on a letter sized page. So far, I have the follwing code:         Clipboard.Clear         chrtGrafico_RF.EditCopy         Printer.Print " " ...
Score Log file gets corrupted
Elena - 13 Apr 2007 1:12 PM - 2 messages
My application writes to two different log files.  The log files are just text files in the same directory.  The application opens the application, appends a line of text, and closes it.  The logging occurs in bursts of up to ...
Score On Errror issue
Temp795 - 12 Apr 2007 11:14 PM - 8 messages
Vb6 sp5 Win2k sp4 -------------- Been using vb for a long long time now and I thought I had solved this problem before but now it has come back and bitten me in the rear.  This isn't the actual code but you'll get the idea of what i am doing. ...
Score Topmost form
Karl E. Peterson - 12 Apr 2007 10:43 PM - 35 messages
Okay, now that I have your attention... <g> I seem to recall some trick, from long, long ago, whereby you could "easily" find the topmost form in your application.  The only method that's actually coming to ...
Score Module Error
Dan Oakes - 12 Apr 2007 10:25 PM - 3 messages
Why am I getting this error msg? "Compile error: Expected variable or procedure, not module" Here's an example of what I'm doing, is this wrong? Private Sub cmdOk_Click() If opt1.Value Then    Call module1 End If ...
Score Visual Basic + Excel Variable Help
bpotter - 12 Apr 2007 7:55 PM - 5 messages
Private Sub Form_Load() Dim Exapp As Excel.Application Dim Blaylock1 As Excel.Workbook Dim AlarmCryout As Excel.Workbook Dim myoutlook As Object Dim mymailitem As Object Dim Alarm1 As String Dim alarm2 As String Set Exapp = New Excel.Application Exapp.Visible = True ...
Score Compiling a dll to export _stdcall
Lance Wynn - 12 Apr 2007 6:26 PM - 8 messages
Hi all, I recall reading here that this may be possible in VB6 with some add-ins.  I found one at [link] but it says it is no longer available.  I also understand the PowerBasic can compile such a DLL. ...
Score VB6 WinXP How to check if another app is running
Jennifer W - 12 Apr 2007 3:11 PM - 6 messages
Hi Guys, I really spent some time looking for this answer but could not find it... How can I tell if another app is running from within VB6 ? Thanks, Jennifer ...
Score Activex EXE Crashing,
Darren Gulliver - 12 Apr 2007 12:50 PM - 14 messages
Hi, We getting crashes with vb6 ActiveX EXE. The Error is "Unexpected Error, Quitting". We have found this is because the exe is registering itself  on 1st time use and the user has not got admin rights. Where does the exe write to in the registry? ...
Score how can i do this?
Jerry - 12 Apr 2007 11:11 AM - 2 messages
hello everyone. with webbrowser control, how can i reach links in the webbrowser control?? for ex. you open a website by: webbrowser1.navigate "[link]" my question is how will i be able to reach the links in yahoo.com in ...
Score Word in background in Vista
TommyD - 12 Apr 2007 10:56 AM - 9 messages
Hi, I have a vb6 app which opens Word and inserts some text into the Word document. When using Win2k/WinXp Word opens in front but when using Vista Word opens in the background of my app, why? This is the code I use: ...
Score Where can I download (or buy Visual Basic 6)
patrickfx - 11 Apr 2007 9:10 PM - 24 messages
Hello everyone,     I'm currently confuse about this request.  I could find anything about Visual Studio .Net and all this new stuff but my reel need is to download a version of Visual Studio 6 or Visual Basic 6 to debug an existing application ...
Score Dragging Images in Visual Basic 6
jadeandandrew - 11 Apr 2007 7:59 PM - 6 messages
Hi all - What's the simplist way to be able to drag an image while the image is visible during the drag? I have found a few ways via Google that look very complicated by retreiving the MouseX and MouseY co- ...
Score Run-Time Error 3622 with a CurrentDb.Execute command, then a Expected: = if i try to fix it
mgworek - 11 Apr 2007 7:08 PM - 4 messages
I am running Access XP with a odbc connection to a SQL server This is the code where I get the Run-Time error strSQL = "UPDATE [SERVICE LOG] SET [TECH MONITORING]= '1' WHERE [TICKET NUMBER]  = '20086'" CurrentDb.Execute (strSQL) ...
Score DLLRegisterServer failed with error code 0x80040200
fniles - 11 Apr 2007 5:11 PM - 12 messages
We can not register an ActiveX control on our Vista 32 bit machine. When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party ActiveX control), we got an error: citcp.ocx was loaded but the call to ...
Score Error Message VB6
Ron - 11 Apr 2007 4:56 PM - 17 messages
Hi I have a textbox(txtPath) into which I enter the path string I want to go to when the form is loaded eg:- Documents and Settings\Me\My Documents Private Sub Form_Load() If txtPath <> "" Then     Drive1.Drive = GetSetting("MyappName", "Path", "drive", "c:") ...
Score Can't open VB6 form designer window
Stan Hilliard - 11 Apr 2007 4:54 PM - 5 messages
When I attempt to open a form in the form designer the VB6 IDE aborts. This whether I try with double click or right-click. The problem is with the form view only. The code window of any form will open with a right click. ...
Score VB6 and Windows Media Player
Ron - 11 Apr 2007 4:38 PM - 3 messages
Hi I want to be able to call the Windows Media Player from a FileListBox in my VB Program (VB6)  The same as can be done if you click a *.wma file in My Music.  I have looked on Google but I am not sure if it is safe to use the ...
Score Error msg when trying to execute a vb file
Lavida - 11 Apr 2007 3:36 PM - 5 messages
Hi All I get this error msg "there is no application associated with 'Project'. Run the application first, then open this file from within the application" when trying to execute *.vb files on a pocket pc running Win CE 5.0. ...
Score Out of memory error when bring up a VB6 form
fniles - 11 Apr 2007 3:28 PM - 3 messages
My machine has 512 meg of RAM, it is a Pentium 4 with Windows XP SP2. I had no problem with the VB6 project so far until yesterday. When I tried to bring up 1 of the form (this form has many controls in it), it says "Out of ...
Score Re: Thanks for all the help!
mayayana - 11 Apr 2007 2:15 PM - 31 messages
   And what are we to think of dotnetters who come to the wrong group, answering the wrong question, just for a chance to proselytize on .Net? Could there perhaps be a relevant clue here in the fact that so many formerly ...
Score Problem VBscript and DB2 resources
Cdiaza - 11 Apr 2007 1:51 PM - 3 messages
Hi, I have this VBscript function that connect to a DB2 database: Function comprobarResultado (parametro)         EXTENSION=""         TIPO=""     Dim Conn: Set Conn = CreateObject("ADODB.Connection") ...
Score How to marshal things?
Markward Schubert - 11 Apr 2007 1:40 PM - 5 messages
Hi! I wonder, how the declaration of the following c-function must look like in VB.NET STATUS LNPUBLIC ConvertTextToTIMEDATE(     const void far *IntlFormat,     const TFMT far *TextFormat,     char far * far *Text, ...
Score please send me
shanti - 11 Apr 2007 7:18 AM - 2 messages
hi, i want the following paper can any bdy send it to me please its an urgent to me. thanking you. Self-Synchronize Architecture for Stream Cipher R. Razali, R. Abdullah, and A. Samsudin (Malaysia) Regards, Prasanth Thandra. ...
Score Compile Error: method or Data member not found
Srkanpu - 11 Apr 2007 6:38 AM - 2 messages
Private Sub Command1_Click() Inet1.AccessType = icUseDefault 'Inet1.Execute , "quit" 'Protocol to be used Inet1.Protocol = icFTP 'Remote host name Inet1.RemoteHost = "206.54.158.203" 'Server port number, usually its 21 Inet1.RemotePort = "21" ...
Score Text rotation on a form
Laurie Comerford - 11 Apr 2007 1:02 AM - 20 messages
Hi, Is it possible to rotate the text in a text box so that it is read from the right instead of from the bottom of the form? ...
Score VB6sp5 Frontpage Addin error
idoxlr8 - 11 Apr 2007 12:58 AM - 2 messages
I recently went back to some old FP addins that I created around a year or so ago. The addins are working fine but when I shut down my VB environment I get an unexpected eror.  It dumps a file to my temp folder and its around ...
Score current window state(min,max,)
x taol - 10 Apr 2007 9:51 PM - 15 messages
i want to know state of current form window is min or max. for example, a form have a button. and then press the button, msgbox "the current form is maximized." *** Sent via Developersdex [link] *** ...
Score VB for PDA, Tablet and PC
djamila - 10 Apr 2007 8:16 PM - 3 messages
Hello, I work in a big project that uses Visual basic 6 as a programming language and Access as a Database system. This project must be run in different platforms: PDA, Tablet, PC etc. It is the first time that I ...
Score Excel Object Reference Library
cronse - 10 Apr 2007 12:46 PM - 2 messages
The problem that I am having is that some computers in our office have office xp and others have office 2003.  I made and access database that has a bunch of vb behind it in office 2003.  When I got to run it ...
Score Runtime error 2147467259 {8000-4005}
Maryb - 10 Apr 2007 1:34 AM - 3 messages
When I selected to print an envelope from Customer Invoice / print envelope option in quickboks 2007, my office word 2003 opened but then the dialog box popped up saying:  Microsoft Visual Basic             Runtime error 2147467259 {8000-4005}: ...
Score Passing &HFFFF to a function
procreator - 10 Apr 2007 12:22 AM - 6 messages
Maybe this is an easy one, but... I am trying to pass &HFFFF to a function, eg: private function MyFunc(lngParam as Long) as Boolean .. .. .. end sub Call: boolResult = MyFunc(&HFFFF) In the function lngParam shows up as -1. ...
Score Security ID
Super Slueth - 9 Apr 2007 10:08 PM - 7 messages
Hello Does anyone know how i can get the SID of the current user. I'd like to end up with the SID as a variable StringSID=Current_User_SID Many thanks ...
Score Problem with Implementation inheritance
Frank Rizzo - 9 Apr 2007 8:59 PM - 7 messages
Haven't done VB6 for a long time, so this might be a simple question. I have a DLL that has a class that is used as an interface 'IPrintPreview.cls public property let Width (i as integer) end property ...
Score Converting UTC time to the local computer time
Jack - 9 Apr 2007 7:29 PM - 3 messages
Hello, I do not want to set the computer's clock. I want just to convert received data into the seconds passed since midnight.           I am retrieving UTC time from Internet. ...
Score Change screen resolution from VB6
Jennifer W - 9 Apr 2007 7:10 PM - 32 messages
Hi, I was wondering if there's a 'simple' way to change screen resolution from within a VB6 program  in Windows XP ? I have to run an external .exe that requires more pixels/inch than my program is currently set for (to fit in a full screen). ...
Score Gettting volume from mixer
Newman99 - 9 Apr 2007 4:12 PM - 2 messages
I need to adjust the wav in, line in and volume out.  I’m using the example from MSDN with 3 sliders.  Setting the volume works fine, what is not apparent to me is how to get the initial volume settings from the ...
Score Alter table is not working after select
Cric - 9 Apr 2007 11:14 AM - 8 messages
Hi Please review following code of VB 6.0 I am able to establish ODBC less connection for my Dbase files. I am able to get/select all the rows from QUEDIT table and I am showing those in a MSG Box. ...
Score Need to find the number of columns selected in a True DB grid
Valli - 9 Apr 2007 7:07 AM - 2 messages
Hi,     I am using True DB grid 7.0. I need to find the number of columns selected in a grid & their field names.     Is there any  property available to find the number of selected columns ...
Score Using resource file to store images
Jack - 9 Apr 2007 4:19 AM - 31 messages
Hello,             Resouce file allows to store .bmp files. I wonder if there is a way to store .jpg or .gif images (pressumably as a 'custom' files) and load them into Picture object in run time. ...
Score Thanks for all the help!
Aalaan - 8 Apr 2007 11:19 PM - 23 messages
Thank you everyone for trying to help what must be the ultimate newbie! I am now so confused about the various suggestions that I have reluctantly decided that I cannot continue with this. More than one person has expressed irritation that I have not followed advice when I sincerely thought I had. ...
Score Saving last entries from the form
gq_uan - 8 Apr 2007 9:57 PM - 3 messages
Is there a way to save the last entries from a form? Lets say for some reason the power goes out, or the program crashed or something irregular happens and the information on the form needs to be restored back onto the form as soon as it's opened again. How would I go about ...
Score Which API controls Windows "freeze" ?
Jack - 8 Apr 2007 7:22 PM - 2 messages
"Freeze" I call the state when Windows>Start>Turn Off Computer is clicked on. It is not Hibernate and it is not Suspended state. Thanks, Jack ...
Score How to suspend Windows?
Jack - 8 Apr 2007 5:20 PM - 18 messages
When >Start>Turn Off Computer is clicked Windows go into 'suspension' mode until the next button is pressed. How to do that programmatically? Thanks, Jack ...
Score does web page exist
sk - 8 Apr 2007 4:35 PM - 2 messages
which would be the best way to do this? Inet or Webbrowser, API calls ? SK ...
Score Form Position
Ivar - 8 Apr 2007 2:51 PM - 7 messages
Hi all. Anyone got a sub for this they would like to share? On multiple monitor systems, Check which monitor a sizable and movable form is mostly showing in. Then, when this form calls another fixed size form to show, that form is positioned in the center of the monitor the calling form ...
Score How to get the windows version E.g Windows XP, 98
Paul MH - 8 Apr 2007 2:47 PM - 2 messages
Does anyone know an api or a function that will get the windows version e.g. windows xp or windows 2000 or windows 98. ...
Score VB6 and Windows Media Player
Ron - 8 Apr 2007 2:18 PM - 4 messages
I want to be able to call the Windows Media Player from a FileListBox in my VB Program I have looked on Google but I am not sure how to use this information, can anybody give me a guideplease ...
Score SidebySide error with embedded manifest
Steve Easton - 8 Apr 2007 12:47 AM - 4 messages
Anyone else started getting these with embedded mainifests. With an application I have compiled and ran at least 200 times, I started getting this windows warning when I double click the compiled exe: The application has failed to start because the application configuration is incorrect. ...
Next »