Home All Groups Group Topic Archive Search About

Visual Basic General Discussion

microsoft.public.vb.general.discussion
Score problem creating an icon
caver_dave - 6 Jan 2007 10:38 PM - 6 messages
this may seem simple to most people here iam creating a perpetual system tray calendar but i am having problems with the runtime icon creation iam using the following code: SavePicture Picture3.Image, App.Path & "\today.ico" but when i try to use it in my usual sys tray form i get an invalid errror ...
Score Resolving IP address to domain name?
Dale - 6 Jan 2007 6:11 PM - 10 messages
Is there a way to resolve an IP address to its domain name using VB6? Google is not my friend today. ...
Score ActiveControl
Ron - 6 Jan 2007 4:55 PM - 29 messages
Hi I use this code to highlight TextBoxes or MaskEdBox on an Edit form if the box is active, and it works fine. What I would like help with please is if the Edit is cancelled how can I remove the highlight? ...
Score FSO Text document reading problem.
Tom - 6 Jan 2007 4:05 PM - 7 messages
Hello, This is my code (id is a integer, fso is a file system object):     id = Fso.OpenTextFile(App.Path & "\num.txt", ForReading).ReadAll     Fso.OpenTextFile(App.Path & "\num.txt", ForWriting).Write id + 1 ...
Score send a string to serial port to turn on projector
dikmus - 6 Jan 2007 1:21 PM - 5 messages
I am looking for a simple program to turn on and off Dell projectors with its rs232 port. The manual is very cryptic to me, and also Dell support was not be able to help me. I did not know where else to go, so | am posting my ...
Score ByPassing ACLs for a scan of the file system
brian - 6 Jan 2007 5:28 AM - 7 messages
Greetings -- I've got a huge (15tb, 170Million file) file system that I need to enumerate into a SQL db. scanning the FS seems straight forward using either a custom recursive function to walk the tree or just using the ...
Score Circular dependencies
MP - 6 Jan 2007 1:02 AM - 3 messages
I thought I would try the following cDllClass calls fDllForm fDllForm receives events from cDllClass fDllForm sends events back to cDllClass I'm getting error Circular dependencies between modules is that not possible? if an object sends events to another object it can't receive events from the ...
Score Function using ByVal
Anna - 5 Jan 2007 5:48 PM - 9 messages
Hi: Can any one please give me an example with Byval in a function Public Function RemCurrentUser(ByVal cUser As String) Thanks, Anna. ...
Score How to pass events "downstream"?
MP - 5 Jan 2007 4:06 PM - 4 messages
I had a form that created a dll class with events and received events from class to increment progbar and show results of work so events seemed to work fine "upstream"...ie being passed back to the object that created the object which originates the events ...
Score Loading a form
James - 5 Jan 2007 2:20 PM - 4 messages
I have a form that takes a while to load (about 3 seconds).  How do i get it to load in background whiile a splash screen displays? ...
Score ClassFactory cannot supply requested class - Propertybag
Robin - 5 Jan 2007 5:09 AM - 2 messages
I am having a problem with one of my vb applications over the last few days where I am getting the following error from some of my users. (-2147221231) Automation error ClassFactory cannot supply requested class I have traced the problem down to a line of code that creates a new ...
Score Client VB Exe threading model
mdk - 5 Jan 2007 2:45 AM - 3 messages
Hi All, If the ActiveX component uses Free threading model the VB exe works fine (it uses the event call back). If the component uses Both threading model the VB exe crashes when the event is fired. So I wonder ...
Score advice on calling form in dll?
MP - 5 Jan 2007 2:25 AM - 6 messages
I had a project group working using a form in a std exe to call an activex dll the form passed a reference to it's ListView to the dll the dll reported back to the form's listview to display the results of the ...
Score Only last two records shows in MSFlexGrid
Anna - 4 Jan 2007 11:43 PM - 2 messages
Hi: Can any one please tell me why the grid is showing only the last two records as there are total 5 records in it. Is there any settings are required in the grid. I am running program in debug mode and put my ...
Score Moving a Form
Sharrukin Amiri - 4 Jan 2007 10:58 PM - 2 messages
How do you move a Form when when the form's borderstyle is set to none? ie: Form1.Borderstyle = 0 Thanks. Sharrukin ...
Score convert "" to NULL
Matt Williamson - 4 Jan 2007 10:10 PM - 16 messages
What is the best way to convert whitespace to NULL when inserting data into a SQL table? I have a file that I'm parsing parts of into a UDT. Sometimes, the fields I'm parsing out of the file are blank, so that field of the UDT ...
Score Close VB dialog in another procedure
mdk - 4 Jan 2007 8:26 PM - 4 messages
Hi All, I create a model child dialog (coded in dialog1.frm)  in the main dialog (dialog.frm). The main dialog receives callback and I want to close the child dialog (show progress of a process) from there. Private Sub obj_onsomethingdone(ByVal lError As Long) ...
Score Debug .ocx when it is instantiated in a C++ program
Lou - 4 Jan 2007 7:42 PM - 5 messages
How do I debug my ocx (Set break points) in my VB6 .ocx when a C++ app instantiates it. I tried Setting the ocx to start the C++ exe but the C++ exe fails to create my ocx. I also tried "Wait for componenet to be created". Nothing happens when I run ...
Score subclass blows up IDE - MDI form
oaksong - 4 Jan 2007 7:18 PM - 14 messages
I've subclassed an MDI form. When I run the application in the IDE and exit the subclassed form the IDE gets trashed. The unload event does an unsubclass. The screen clears. The IDE has disappeared. Any thoughts? ...
Score help with timer
lubian - 4 Jan 2007 6:37 PM - 7 messages
I have array of shapes.How i can use timer to flash shape for 5 seconds and then flash next shape for same time, and when its finished flashing last one from array return to first one to do same untill something not clicked, then ...
Score disable CTRL + P
ShaneUK - 4 Jan 2007 5:39 PM - 4 messages
XP VB6 Is there a way to disable CTRL + P when using the MS internet control webbrowser? ...
Score Weird infinite loop
augustorando - 4 Jan 2007 5:31 PM - 4 messages
Hi! I have a software server that uses Winsock API and connects to an Oracle DB. The server is located in a dual-core 3.6 Pentium D with 2 GB ram. After some - random - time, sometimes less, sometimes more, the CPU use ...
Score VB app that sends keystrokes starting to fail in some locations
dman - 4 Jan 2007 4:30 PM - 7 messages
Hi. I wrote a VB app that shells out to a few software applications and sends keystrokes - essentially doing what a user would do if he were sitting in front of the computer. It fires off at midnight. O/S is XP. ...
Score VB Deleting records using a ListBox
Zairay - 4 Jan 2007 3:38 PM - 6 messages
Hi All, I'm trying to delete records using a ListBox. The problem is that in the Listbox only part of the text from the field is listed. So trying to find the record using rs.FindFirst doesn't work. ...
Score My VB.Net app prevents windows from shutting down.
michaelcole.com - 4 Jan 2007 9:10 AM - 2 messages
For the life of me I can't figure out why my VB.net app is preventing winxp from shutting down. A frmHidden puts a tray icon in the system tray, then shows hides three other forms. frmHidden's closing event isn't called by windows during the shutdown ...
Score Type mismatch error using Mozilla ActiveX in place of Microsoft WebBrowser
sajin - 4 Jan 2007 8:17 AM - 2 messages
I'm using Mozilla Control 1.0 Type Library (Mozilla Browser control) instead of Microsoft's Webbrowser control because 'm facing lots of problem with IE7. So decided to shift to Mozilla ActiveX control.     It gives "Type Mismatch" error while assigning Document property of ...
Score How to force a User Control to Resize
Brian - 4 Jan 2007 4:35 AM - 5 messages
.... when it's container is resized? I have a dynamically loaded User Control.  The UC is loaded into a picture box on a main form. When I resize the main form, I resize the picture box holding the user ...
Score Binary Append
wxforecaster - 4 Jan 2007 3:15 AM - 3 messages
I have an existing binary file that I need to append data to. Is there a reason why the following code does not work?? Instead of appending to the file at the correct byte location, it overwrites the file entirely with the new data. ...
Score Err: 98 after compiling - but worked before
MP - 4 Jan 2007 3:04 AM - 4 messages
This is weird I had this working in the ide in a project group...I swear!!! :-) now after recompiling it no longer works either in the compiled exe or in the ide  :-( two projects in project group 1) stdExe with form for user interface ...
Score Get/Let/Set
Anna - 4 Jan 2007 12:08 AM - 3 messages
Hi: Can any one please give me a simple example of get/let/set. I want to create three textbox and pass some values thru GET/LET/SET as i think this is easy for me to understand them Thanks, ...
Score exec sp_CurUser_Get
Anna - 3 Jan 2007 9:26 PM - 2 messages
Hi: Can any one please tell me is what is executing in the resultset. Is this is a method? i am trying to debug the old code.     Set cn = CreateObject("ADODB.Connection")     cn.Open "Provider=SQLOLEDB; Data Source=OMS0062K\DEVELOPMENT; ...
Score MDI Child forms
KKingma - 3 Jan 2007 9:16 PM - 9 messages
Hi All:      I have an MDI application that has a control on the left-hand side that acts as a navagation bar.  Each child form that loads moves behind the "navigation bar" instead of on top of it. ...
Score SMS
Habib - 3 Jan 2007 8:54 PM - 4 messages
Hello To ALL How could I send to Iran via VB6.0 number : +989135113 Thanks a lot. ...
Score Folder Size Rehash
Lorin - 3 Jan 2007 8:25 PM - 6 messages
So... I wrote the folder size routine using both filesystemobject (FSO) and FindFirstFile/FindNextFile. Turns out after as many runs as I could stand and using different orders  and folders that the FSO method is slightly (insignificantly so) faster than ...
Score Cannot change .tlb reference location
RonK - 3 Jan 2007 8:18 PM - 3 messages
In the tranferring of ownership of a server based .DLL wrapper application, I need to move referenced .TLB files to directory owned by the new workgroup.  I have copied the .TLB's to the new location and changed their name in the ...
Score New project form1 class missing form1_load( ) method
John - 3 Jan 2007 6:50 PM - 4 messages
I just created a VB 'Windows Application' project under VB 2005 for the first time. When I do this, my form1.vb file looks like this: Public Class Form1 End Class That's it--two lines with no other 'system generated' code to be found. ...
Score Minimizing a modal form to the task bar
Daryl Muellenberg - 3 Jan 2007 6:48 PM - 5 messages
I have a main form which displays several other modal forms. When one of these modal forms is displayed, if I minimize it, it minimizes to the desktop and not the task bar (XP Pro). How can I minimize it to the task bar ...
Score Help in function
Anna - 3 Jan 2007 5:47 PM - 2 messages
Hi: Can any one please tell me how this function works as i am trying to debug the old program. Thanks, Anna. Public Function GetUserObject(ByVal vSAN As String) As Object   Dim oRootDSE As Object   Dim oConnection As Object ...
Score CreateObject
Anna - 3 Jan 2007 5:34 PM - 2 messages
Hi: Can any one please tell me where and what is the use of this method Set oNet = CreateObject("WScript.NetWork") Thanks. ...
Score Help! How do I set the Instancing Property of a VB6 class?
Rico - 3 Jan 2007 5:02 PM - 2 messages
Hello, I have a VB6 project and I have been asked to set the Instancing property to 5-Multiuse.  Every google reference I have states "Make sure your class Instancing property is set to...." but it doesn't tell me the correct syntax ...
Score output parameters
Mike P - 3 Jan 2007 3:40 PM - 5 messages
I am trying to return an output parameter from a stored procedure, and I am then trying to write this value to the screen using Response.Write. Can anybody tell me what I am doing wrong? If Request.QueryString("Approve") = "y" then ...
Score put 'x' in checkbox
sufgi - 3 Jan 2007 6:32 AM - 10 messages
Hi, First sorry for my bad English. Can you please help me? How Can I put an 'x' in checkbox(when value=true) instead of 'v' ? Thank you ...
Score creating data aware class and data consumer class
san79 - 3 Jan 2007 5:57 AM - 2 messages
dear all happy new year i would like to know how to deal with data aware class and data consumer class when i checked up with msdn website it taking me a ride to object oriented programming in vb6 , i heard that using both data aware class and data consumer class ...
Score Another Q for Vista compatibility
Kevin Provance - 3 Jan 2007 1:32 AM - 11 messages
Gents (and ladies if there are any), First, thank you for all the replies in my last Vista thread.  The information was valuable and I even learned a few things.  :-) I have another issue I wanted to get some clarification on, if possible, ...
Score Something like a Project_Activate event?
Stan Hilliard - 3 Jan 2007 1:11 AM - 27 messages
I am looking for a technique to detect when a user makes my  MDI application the active application? For example, when the user  clicks on the application after using another. My purpose is to check the Windows Clipboard at that time to see if ...
Score Problem with edit record code
Darhl Thomason - 3 Jan 2007 12:24 AM - 25 messages
VB6 SP6, Access97 db I have an edit routine that turns off all navigation buttons and unlocks the fields so the record can be edited.  When I step through the code it works properly, but when I run this at "full speed" it changes one of my Option ...
Score Wnen the window is considered as having Maximized state?
Jack - 2 Jan 2007 10:16 PM - 8 messages
Hi,       If the user resizes window manually so the window position and dimension matches Maximized state is that window maximized or not? How to find a difference? Jack ...
Score Clear recent projects list
Chevy - 2 Jan 2007 8:44 PM - 4 messages
Hi, how can I clear or delete the list of recent projects when I start Visual basic 6.0. I was looking for that list in the regedit but there is nothing. thanks in advance. ...
Score Is it possible to edit the font in a single text box?
DORI - 2 Jan 2007 8:06 PM - 14 messages
Dear All, Happy New Year! A text report is generated in Text1.Text. The user wants to be able to change the font so that some texts appear in "Bold" and some in "Italic", is it possible to do this with vb6? ...
Score Object Required compile error
Sam - 2 Jan 2007 6:16 PM - 7 messages
I am fairly new to VB and have what I am sure is a basic question. I have a form with a text box for user input, I am trying to assign the value from the text box to a variable and then the variable is ...
Score Copyright on menuicons of Visual Studio
rosanard - 2 Jan 2007 3:44 PM - 9 messages
Hi everyone, I'm developing a VB6 app with a menu and toolbaar and would like to give it the appearance of Visual Studio 2005. Does anyone know if I may use the toobar-icons from VS2005 in my VB6 app (and still distribute ...
Score Problems with VB6 Printer Compatible Object
Robert Conley - 2 Jan 2007 2:12 PM - 6 messages
I found some problems with the VB6 Printer Compatible Object they released for VB.NET. Who is the best person on the VB.NET team to contact about this? While it is clear the Print method doesn't emulate VB6's syntax it ...
Score Contacts as Outlook Address Book script help
andymarbles - 2 Jan 2007 12:50 PM - 5 messages
Hi, How do I get this script to run as a VBS file.  Basically, I need to change the properties of the "Contacts" so that it is displayed as an Outlook address book. Thanks! Sub ShowAsAddressBookChange()     Dim olApp As Outlook.Application ...
Score Download with progress bar?
Emil Horowitz - 2 Jan 2007 11:12 AM - 5 messages
Hi, with the Inet control I can use the FTP command GET to download files from the Internet. When downloading large files, the user does not get any activity information during the process. A progress bar reflecting the download status would be the right thing. Is something like this possible ...
Score Try get Object so Can get WindowState From Hwnd
RoidsRim - 2 Jan 2007 6:41 AM - 3 messages
Try get Object so Can get WindowState From Hwnd From any program running Can I get any help would be useful for me Thanks VB6 Yes Thanks Year beginning Wishes For you Why Not ...
Score Calling A Windows DLL Function From VBA/VB6
Chip Pearson - 2 Jan 2007 12:44 AM - 4 messages
I have the following function in a standard Windows DLL (this is an example, not the real procedure) int __stdcall SumOf(int Arr[],int Num) { int N=0; int Sum=0; int X=0; for (N=0;N<Num;N++) ...
Score repeat post for passing param from combo to another form or same form
Rajiv Vaishnav - 1 Jan 2007 1:50 PM - 3 messages
Hi there, I have a combo box populated from one database table, now i want to use the value of that combo box to be passed as the parameter to another record set so that the data gets filtered with the value of that combo example which i ...
Score Returning value from a vb6 application
Victor Rosenberg - 1 Jan 2007 7:29 AM - 5 messages
Hey guys I need to return the value from a vb application - something like cpp/c# int main() I tried to use the function main() as int and it obviously didnt work. Anyone has an idea? Thanks in advance Vic ...
Score How to determine if a specific program is loaded?
Stan Hilliard - 1 Jan 2007 4:33 AM - 6 messages
How can a program determine if another specific program is loaded. Stan Hilliard ...
Score Access to internet with VB Express Edition
Tosco - 1 Jan 2007 2:16 AM - 11 messages
I'm new to VB.net and I want to upgrade an application from VB6 to VB2005. The VB6 application uses an invisible WebBrowser control to access some pages and parse the content. Is there a better way with VB2005? ...
Next »