|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Help i m newbie
Pedro -
10 Sep 2005 8:56 PM - 4 messages
I have start learning a few months the Visual Basic (VB) 6.0 language. I have some questions that I didnt find the answer. 1- how can i creat a textbox on a form clean, by typing on Private Sub ...
Deleted
Graham (UK Beginner) -
10 Sep 2005 7:57 PM - 3 messages
I have deleted a form from the project folder. This does not cause problems in the project but when I run the program I get a "file not found" message". Will the message appear when I make the project .exe? ...
Visual Basic and Excel
Jenny Quynn -
10 Sep 2005 7:52 PM - 2 messages
I would like to use an Excel Worksheet in my Visual Basic project. Can you tell me what articles I should read that will explain how to do this? Thank you, Jenny ...
Best NG for database questions
Kasper -
10 Sep 2005 5:54 PM - 6 messages
Hi Again, I forgot to ask.... What is the best NG for anything to do with VB and database (ACCESS) programming. I need to find out what mods need to be made when adding a db to an existing VB program.... ...
two questions
Kasper -
10 Sep 2005 5:51 PM - 4 messages
Hi All, Long time since I did any serious programming.... 1. What's the difference between VB6 SP6 and something called .NET? I assume it's an upgrade and MS want masses of money for me to upgrade. 2. Many years ago when I did a lot of programming there was a small (I ...
Hiding Data in jpg or bmp files
Kahuna -
10 Sep 2005 3:08 PM - 15 messages
Hi Folks I have heard of data being hidden in Bitmap or JPEG Files, usually related to security information. Does anyone have links to resources where I can find out more on how this is done? I can read the headers on bmp's and read the file into a form etc, but I ...
Monitoring Modem Line Activity
Duke -
10 Sep 2005 12:58 PM - 3 messages
How can I monitor the line activity on a modem ? ...
Age of an NT account
vm -
10 Sep 2005 10:53 AM - 4 messages
I use VB6 and ADSI to manipulate accounts in our domain. I have been asked if there is a way to tell when an account was created. The only thing I can find so far is: I can check the age of the password. Obivously when people change ...
How do I specify a multiline string?
BCS -
10 Sep 2005 10:52 AM - 14 messages
Hi group, I want to enter something like dim s as sring = "hello" but instead of "hello" I want to enter a multiline string. Do I need to use a hidden textbox to do that? ...
error'13':Type Mismatch cant pass text+integer while reading text
Snew -
10 Sep 2005 8:10 AM - 2 messages
hi can any one tell me that how can i pass a text & integer combined on this line Open "c:\a.txt" For Input As #rsProduction("Job_No") as im getting error of type mismatch if its integer it work fine but whent ...
Compatability?
Frank -
10 Sep 2005 4:56 AM - 3 messages
Hi group, My company has presently some computer problems, which may be software compatibility related. One of our programs was written in VB 5, we are now up dating our computers from Are they compatible or does the VB 5 program need to be updated? ...
Givea command button top priority
inquirer -
10 Sep 2005 2:40 AM - 7 messages
I have a userform in which a user enters data into various test boxes. It also has a number of command buttons which perform various options and become visible or not, and control the flow of the program. I also ...
Change Mouse cursor/icon in VB6
newnet -
9 Sep 2005 10:21 PM - 4 messages
I'm trying to change the system's Mouse/Icon or Cursor While I'm capturing an Image of an active window. So as soon as the application run; a camera icon appears on the screen, No form are displayed: (Form1.visible = False), that's because I called the ...
Accessing Outlook within VB
Bob Leffew -
9 Sep 2005 9:02 PM - 4 messages
I am using VB6. We have users on a network that all use Outlook as their email program. Is there a way to tap into each persons .pst file and pull emails for a certain email address. Once I get the emails I want to write a record for ...
Please help Urgent
Dib -
9 Sep 2005 4:32 PM - 8 messages
Hi, I am having an error 53 file not found when I file I am trying to copy looks like this f = "C:\pdf995\output\Crystal Reports ActiveX Designer - " & strWhichRpt & ".pdf" the file contains a space between the names and the - ...
Change a local variable in another sub?
Martin -
9 Sep 2005 1:47 PM - 4 messages
Is there any way to modify the contents of a variable that is declared as a local variable in another subroutine? I realize I could do this by making the variable global but I'd rather not do that if I don't have to. ...
Determing if background app ended
Ivan Debono -
9 Sep 2005 1:27 PM - 3 messages
Hi all, I have vb app should launch various setups in silent mode one after the other. The important thing is that a setup must complete before the next one starts. Is there a way to know if the setup completed? Maybe with FindWindow or ...
How do I dig a memory value out?
vintage -
9 Sep 2005 1:20 PM - 17 messages
Hi all, I have a memory address in dim mymem as long I need to see what is the contents of this memory? thanks. ...
How to capture whether CTRL key is pressed to startup your app
Sven Peeters -
9 Sep 2005 12:39 PM - 2 messages
Hi, How can I see whether the CTRL-key is pressed during my Sub Main. This app has no windows on startup, only a Sub Main. Thnx ... ...
Sending CTRL-1 with SendKeys
Mike -
9 Sep 2005 12:37 PM - 7 messages
Is it possible to send a CTRL-1 key combination with SendKeys? Other CTRL combinations, CTRL-W for instance, map as ASCII 23. It doesn't appear that CTRL-1, or CTRL plus any number, has an ASCII map. Can key combinations like ...
Runtitme Error 48
Opyuse -
9 Sep 2005 11:55 AM - 2 messages
I've finish my vb6 application that accesses a informix database and allows the user to work on records. I've used the package software to bundle it all up and have installed the application on a number of users computers. ...
check boxes + drag and drop
Martin D. Jones -
9 Sep 2005 10:43 AM - 2 messages
I have a form which contains a tab object and a number of check boxes. I wish to be able to move these tick boxes from one tab to another. However when when click and holding the pointer over a tick box I am unable to drag and ...
Get File Versoin
Travis -
9 Sep 2005 2:24 AM - 3 messages
Hi , Do anyone what is the code to get the file (exe and dll) version on vb6 ... ? Really appreciate if someone can provide me the code or guideline .. Thanks Travis Tan ...
Menu Dressing
Doug Sanders -
9 Sep 2005 12:35 AM - 5 messages
I'd like to find some examples, with code if possible, of menus with a little flash and pizzazz. Everything I create looks just like I created it, functional but boring. Thanks, Doug ...
DrawThemeBackground fails
Kasia Muniak -
8 Sep 2005 9:39 PM - 4 messages
Hi All, I'm using DrawThemeBackground to try and draw a system button (iPartId = WP_SYSBUTTON), but it fails (nothing draws). Does anyone know why it works for some parts and not others? I'm using Steve McMahon's code from the article 'Drawing with XP ...
Printing
Graham Gibson -
8 Sep 2005 8:45 PM - 10 messages
Hi, I need to send information from a text box to the default printer but dont want (at this stage) to go into advanced techniques or use PrintForm. Any suggestions greatly appreciated. *** Sent via Developersdex [link] *** ...
vb.net fillcolor
jay -
8 Sep 2005 8:30 PM - 2 messages
What is the best way to change this command? I upgraded a code that was in earlier vb to .net and the fillcolor syntax is no long valid. sample code If NumSat = 3 And Color_Code > 2 Then UPGRADE_ISSUE: PictureBox property Picture1.FillColor was not upgraded. ...
DTS VBScript problem...
Richard -
8 Sep 2005 8:20 PM - 4 messages
Sorry about the cross post but M$ apparently does not have a "VBScript sucks" newsgroup... Can anyone tell me how to make this script WORK? I have a deadline to meet and the only thing between me and success is a DTS VBScript error... ...
image control - setting property in code
Rafael Chemtob -
8 Sep 2005 7:31 PM - 5 messages
image1.Picture = "C:\temp\images\img1.jpg" ...
image control - setting property in code
Rafael Chemtob -
8 Sep 2005 6:35 PM - 3 messages
hi, i have a form in a vb app and it has an image control. i need to set the image source in the code. i tried playing around with the picture property but i get a runtime error saying (object required). ...
Reading Low Value 00 hex characters
Emma -
8 Sep 2005 5:00 PM - 3 messages
This is beyond my realm of knowledge and I hope my explanation will make sense. Our mainframe folks are providing me with a text file that I use in updating a SQL database through a VB program. The text file being provided ...
Method '~' of object '~' failed in VB 6 with Excel
Lowell -
8 Sep 2005 3:30 PM - 3 messages
I am having a heck of a time with a VB 6 app. It has been working fine until I recently added functionality using Word. Now, open EXCEL files seems to be broken. I get Err Number=-2147417851 Method '~' of object '~' failed ...
Anyone have a link to DL VS 6.0 SP3?
Denman -
8 Sep 2005 3:22 PM - 7 messages
Seems the page on microsoft says service pack 3, but links to 6. Thanks. ...
Calling DOS batch file from within VB6.0
Wylie C -
8 Sep 2005 2:21 PM - 4 messages
I need to call a batch file Comment.bat from within a VB6.0 project and cannot figure out how to do that. Can someone help please? Thank you. ...
Detect if in Debug Mode
Derek -
8 Sep 2005 2:06 PM - 14 messages
in VB6, how can you tell whether you are in debug mode or running as an executable. This would be from the main form or main sub routine. I know there is something you can use in a control by way of ambientproperties, but ...
VB6 Make Exe no longer enabled on File menu
Dave -
8 Sep 2005 1:14 PM - 3 messages
I can no longer make exe's in VB6. The Make exe item on the File menu is grayed out. I have been creating exe files for at least a year on this machine, but suddenly no go. I did have a few VB crashes when I was working ...
Reading dbx files from vb?
Jamie -
8 Sep 2005 8:27 AM - 12 messages
Hi all, Does anyone here know if its possible to read dbx files from visual basic. Im trying to write a program that can sync all emails between my desktop machine and my laptop. Any advice or guidence would be great. ...
Tab Space in text box
gene kelley -
8 Sep 2005 7:58 AM - 11 messages
Is there any way to enter a Tab Space in a multi-line text box without setting all the other form contols with TabStop property to False? It doen't seem logical that there would be a way, but thought I would ...
VB6 and SMS
Harry Strybos -
8 Sep 2005 12:32 AM - 4 messages
Hi All Does anyone have any code to send an SMS message from VB. I have had a good look around but can't find the barebones code. My thinking is that you would need to transmit: UserName, PassWord, Account, Mobile number and message to an IP address. My ...
listing object and class/members
Joan -
7 Sep 2005 10:19 PM - 2 messages
I want to print (to file or paper) the content of the object browser window in VB6 SP6. to have a good view on all the classes and there members in an object. How can I do this? ...
Image Fade In Code
RC- -
7 Sep 2005 8:49 PM - 2 messages
Does anyone have code that will allow me to fade in an image? I'm currently using the Width and Height properties to give it somewhat of a fade affect, but I'm looking for the real thing. TIA ...
Accessing exceptions thrown in c# from VB6
shesh -
7 Sep 2005 6:15 PM - 6 messages
Hi, We have a Activex exe written in VB6 which references a .Net dll written in C#. .Net code throws exceptions. How can we catch these exceptions in VB6 code? Thanks. ...
Installing on Windows XP
Otto Genf -
7 Sep 2005 4:30 PM - 12 messages
Windows XP-Pro (sp2) Visual Basic 6.0 Professional I have been running Visual Basic on a Windows 98se machine for the past five years, and have recently upgraded to a machine using Windows XP. In that VB6.0 was developed before Windows XP, is there anything I need to keep in ...
Imagelist
Rencie -
7 Sep 2005 3:56 PM - 3 messages
can you give me an example on how to use ImageList to create an effect of a moving object? Thanks ...
No redraw of screen after minimize form
Tom Landon -
7 Sep 2005 3:31 PM - 22 messages
I have written a program that, when minimizing the form, does not redraw the screen area it previously occupied. The area left is colored the color of a standard "button face" (light tan). This program is not very complicated. It is a player for WMP and has an ...
Programing switches
Lloyd Cox -
7 Sep 2005 3:01 PM - 6 messages
I am writing a VB6 app and want to know if its possible to program a switch so if I run the app "myapp.exe /switch". Can this be done and if so can someone point me to an example of how I would run certain code based on the ...
"Whats This?" button getting in the way
FM -
7 Sep 2005 2:59 PM - 6 messages
When right clicking on a picturebox I call the ShowColor dialog box. Unavoidably the picturebox is center screen and when the color dialog shows (center screen) the "What's This?" button keeps popping up as it does when you right click a basic or custom colour. ...
NewLine in an ini entry
denis_browne -
7 Sep 2005 1:36 PM - 8 messages
Hi there, How do you write a newline in an ini file? For Example: [Patient] name=denis details="This is first line This is the second line This is the third line" ...
Get & Lose Focus!
Arpan -
7 Sep 2005 11:43 AM - 3 messages
I have a VB6 Calculator in which I have given users the option to input values using their keyboard (apart from the buttons on the calculator). I also want that when the user presses any number (or any of the ...
Easy way to ping
hamstad -
7 Sep 2005 10:36 AM - 2 messages
Hi. I am on a ship in the oil business, and have internet access via satelite link. I want to monitor the status of the link, and thought doing that by using Ping in a VB application. I am using Visual .Net 2003. ...
save data
Phoon Chee Keong -
7 Sep 2005 10:18 AM - 4 messages
Anyone can help me on this? Because i'm using combo to list the data example: Project/ Decription Test1 - Testing Test2 - Testing2 Test2-1 - Testing3 How i save the project code only. Currently i was using the method tmpProj = InStr(1, CboProjectNo, "-") ...
Terminate ActiveX EXE
Ivan Debono -
7 Sep 2005 8:48 AM - 6 messages
Hi all, A client app launches an ActiveX EXE that displays a form. But when the user closes the form, the exe remains as a process in the task manager. How can I terminate the exe once the users closes the form? ...
Whole Nos!
Arpan -
7 Sep 2005 8:03 AM - 8 messages
I have created a calculator in VB6. The calculator also has a Inverse button clicking which the inverse of the no. will be displayed. Now the problem is suppose I want the inverse of 6. The calci correctly computes the reciprocal of 6 i.e. 0.166666666666667 but when I again ...
API Call to get user name?
Tom_OM -
7 Sep 2005 7:12 AM - 5 messages
Does anyone know if there's an API call that will return the user's Windows login name as a string? If the user has no login name, as could be the case with Win 98 or ME, then the call would just return ...
User-Defined Variable Not Defined
netsurfer802 -
7 Sep 2005 12:51 AM - 2 messages
Hi: I'm trying to use the Data Form Wizard to create a new form from an Access database and it keep giving me the following compiler error everytime I try to run it: User-defined variable not defined and the debugger stops at this line: ...
visual basic exe not working
jay -
7 Sep 2005 12:13 AM - 13 messages
I have a visual basic exe that was working on older versions of windows (95-me). Now I am using XP and I get a run time error '6' overflow error when I try to run the .exe. I think it might be the floodfill command. Any ...
Shell Question
Kyle -
6 Sep 2005 8:52 PM - 8 messages
Hi, I am using the shell command to print an excel spread sheet however I am having a problem when the file name has a space in it. Here is my code: Shell Excel.exe /p C:\issue log.xls ...
Finding Windows temp direcotory
Laurie Comerford -
6 Sep 2005 8:45 PM - 2 messages
Hi, Can some one adivise how I find the Windows Temp directory with VB6? ...
Newbie: Date variables
Newbie -
6 Sep 2005 8:02 PM - 4 messages
Hi, I have the following problem: I want to make sure that a date is entered correctly and like this its "location" independent. I know that a surefire way to do this with constants is : Dim myDate as Date myDate = #04/03/98# ...
Detect If Window is Minimized
abhishek007p -
6 Sep 2005 7:58 PM - 5 messages
Hi, i want to detect when a particular window (of not my app, can be anything like outlook express) is minimized or at normal position? does any body know how to ? thanks, AB ...
hide property values from hex editor in compiled VB6 EXE?
fdeckerNOSPAMM -
6 Sep 2005 6:33 PM - 5 messages
As everyone knows, all you have to do is look at a VB6 compiled EXE in a text or hex editor, and you can see all the property names and values for components or objects you have used in the program. How do you ...
Barcode GIF or JPEG
Ken Webster -
6 Sep 2005 5:54 PM - 4 messages
I've got a barcode font installed on my machine and I'd like to use it to dynamically create a graphics file containing a barcode image. Any ideas on how to accomplish this? Thanks in advance... ...
Error instantiating com plus proxy
Griff -
6 Sep 2005 4:24 PM - 3 messages
I have a two tier environment: * Data tier = Win2003 * Application tier = Win2000 I have created a COM+ package on the 2003 server that contains a simple DLL. [As a test, I've created a simple EXE application that successfully instantiates the DLL] ...
Shell Command Doesn't Create TXT file as expected
Andibevan -
6 Sep 2005 4:20 PM - 9 messages
Hi All, I am having problems using the shell command to write the output of a dos command to a text file. I would be really grateful if someone could tell me why this doesn't produce the required Test.txt file? ...
out of date of dependency file of scrrun.dll
Wyne -
6 Sep 2005 2:58 PM - 6 messages
Hi, When I packge a VB6 app using PDW, it says "the dependency file of scrrun.dll is found, but out of date. To proceed ..." How can I update this dependency file? Thanks ...
Record Source Trouble
Opyuse -
6 Sep 2005 2:39 PM - 2 messages
The sql of my forms record source has "Order by date" after the string but this doesn't do any thing to the order of the records. Why would this be the case? ...
Lost VB6.0 Professional CD
Peter Schoots -
6 Sep 2005 1:00 PM - 33 messages
I lost my VB6.0 Professional CD. When I buy a new computer is there a way to install VB on the new computer from the old computer? Does Microsoft have a service to replace the lost CD? ...
An easy one for good ones
Rick -
6 Sep 2005 12:28 PM - 4 messages
Once you have created and tested a User Control in VB6, how can you unregister the control from the VB Console, so you can place it and registered at another location? ...
"Class Not Registered" Issue
Wyne -
6 Sep 2005 12:28 PM - 7 messages
Hello, I have an application made using VB6. It has been installed in many Windows 98/2000/XP machines and run successfully. But when installed it in a new "bare" Windows XP machine (only operating system installed) and run it. It ...
findwindow and findwindowex terminate function
A. Ahola -
6 Sep 2005 9:33 AM - 5 messages
I have a loop thats supposed to check if a window is closed: While laskutusohi = False Wend ---- the function is here (with debug) Public Function laskutusohi() As Boolean Dim temp As Long laskutusohi = False 'debug, last run step is next ...
Arithmetic overflow error - MoveNext (ADO/SQLServer)
Simon Woods -
6 Sep 2005 8:39 AM - 12 messages
Hi I'm issuing a MoveNext command on an ADO object and the ODBC driver is issuing an error [Microsoft][ODBC SQL Server Driver][SQL Server]Arithmetic overflow error converting expression to data type datetime. I'm running against a SQL Server database. In other scenarios (i.e. if I ...
Column Freeze Functionality
Brian Patrick -
5 Sep 2005 11:53 PM - 3 messages
I'm looking for some guidance as to how to implement column freezing. I'm using a very nice (free) control from vbAccelerator.com called sGrid 2.0 which comes with all of the vb source code. This control has worked brilliantly for all my needs, however one thing it ...
Loading an animated GIF
Rencie -
5 Sep 2005 11:06 PM - 5 messages
Is is possible to load an animated GIF? How do I do this? ...
How can I find which buttom was clicked on the dialog box ?
info_david_enterprises -
5 Sep 2005 8:57 PM - 11 messages
Hi all, I added a dialogbox form to my app, which I show like this my_dialog_form.show true, me But how do I check which button was pressed, i.e. 'Cancel' or 'OK' ? ...
easy one - for experts
Rick -
5 Sep 2005 5:33 PM - 6 messages
How can register a dll(Visual C++6.0) that will run with a VB 6.0 application? This dlls normally can't be registered with regsvr32.exe, and vb6 does not recognize then in the app folder. VB6 standard set up allowed me to place ocxs and dlls with the application. ...
How do I create a sound file on disk -> CD?
lwoods -
5 Sep 2005 4:35 PM - 4 messages
I want to generate a sound file on disk so that I can copy it to a CD for playing in a CD player. How? TIA, Larry Woods ...
Menu example
Junior -
5 Sep 2005 3:57 PM - 14 messages
My aplication uses more than 15 items in a couple menus. Where can i find free menus example for vb 6.0? Thank you ...
Updating a database
Ivan Debono -
5 Sep 2005 2:29 PM - 13 messages
Hi all, This problem is not indirectly related to VB only because my application is written in VB6, whilst the backend is an Access database. The database is also versioned, ie. has a table 'id' with a column 'version' I have the following scenario: ...
exe does not appear in taskbar...
Jan -
5 Sep 2005 1:13 PM - 6 messages
Hi, My project start up object is sub main. When I start the executable it does not appear in the taskbar. When my start up object is a form it appears. Is there a way to let a project (with start up object is sub main) appear in ...
VB6.exe crashes occasionally
jma -
5 Sep 2005 11:01 AM - 4 messages
VB6 IDE crashes occasionally and always when I launch Windows Explorer. This only happens in one project. I have other project that is very similiar with crashing one but it works fine. When I load the project and after that launch Explorer, everything works ...
WMI - Use - Resources
Kahuna -
5 Sep 2005 9:13 AM - 10 messages
Hi Folks, I know there are a number of experienced WMI Gurus on this board (recognised a lot of names from here in other Goggle searches). So I figure you're the best guys to ask: I'd like to understand the WMI in a bit more detail. I have used the MSKB ...
Preparing for .NET Interviews
matungafriend -
5 Sep 2005 8:05 AM - 7 messages
Hi I am fresher what kind of questions are asked during .NET Interviews how should i prepare myself.I have just completed my course from my NIIT and looking forward for real job. I am doing the following stuff 1) Preparing myself for certifications. ...
Compile error: Method or data member not found (but should)
A. Ahola -
5 Sep 2005 6:40 AM - 4 messages
Hello, started creating a new version of an application by copying it to an another folder and changed some code. Somewhere in the process two of the three sub forms the application became unreachable, meaning, that I can see them in the ...
Intellisense crashes IDE
Rob -
5 Sep 2005 6:19 AM - 6 messages
I'm having a problem with the VB intellisense crashing the IDE. From what I can gather it is related to my project using private usercontrols on a form contained in an ActiveX dll. Intellisense works fine before the project is ...
How to extract a string from buffer?
info_david_enterprises -
5 Sep 2005 12:48 AM - 4 messages
Hiya, I need to extract a string from a buffer, my buffer is in dim buf(1023) as byte and I have a string embedded from locations 500 to 600 so I need a quick and simple way to access this area ...
real time help(?)
Sharp -
4 Sep 2005 7:26 PM - 5 messages
I have a moderately complex data entry program written in a language called Force which runs in MSDOS. I want to make a Windows version of it using visual Basic, but have run into one problem (or at least it ...
WebBrowser Use Problem
jim evans -
4 Sep 2005 6:37 PM - 11 messages
I had never used the WebBrowser control before last night. This was my initial attempt--test code. ====================================================== Private Sub Form_Load() WebBrowser1.Navigate "[link]" End Sub Private Sub Command1_Click() ...
POST an XML string to a URL from a windows form
Andreas Kviby -
4 Sep 2005 8:54 AM - 3 messages
I have a HTML-form that I need to be able to POST from my VB.NET client application and store the resulting XML in a STRING or XML-document. This is the HTML-form code: <textarea name="xmlrequest" cols="80" rows="20"> ...
Detecting ComboBox change
Michael Tooth -
4 Sep 2005 3:55 AM - 3 messages
The change event for a standard combo box in vb6, seems only to fire if the text box is changed and not when a selection is made from the dropdown using the mouse. How can I detect and act on an item selected from the dropdown? ...
|
|||||||||||||||||||||||