|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Is it possible to use %SystemRoot% in code
MAB -
22 Jul 2006 11:43 PM - 15 messages
Is it possible to use %SystemRoot% in code i.e. automatically converts to the Window system folder (different depending on the Windows OS version)? If it is possible, how is it implemement (code snippet would help)? ...
How to reference (dimension) a distributed DLL in a Sub
MAB -
22 Jul 2006 9:33 PM - 3 messages
If this is not the correct forum for this then which one is? I want to reference a distributed (a purchased) DLL in the subroutine it's being utilized in. I'll use ShellAndWait Win API wrapper routine to register ...
How can I test to see if a DLL is registered or not?
MAB -
22 Jul 2006 2:40 PM - 10 messages
How can I test to see if a DLL is registered or not? ...
Can I use SQL Server 2005 with VB6 Learning Edition?
pcnerd -
22 Jul 2006 2:03 PM - 12 messages
I have VB6 Learning Edition. I wanted to try VB.NET 2005 Express Edition. I got it along with some books on VB.NET. One of the books has the VB.NET software & SQL Server 2005. I installed both. I tried to learn VB.NET, but I ...
What's the difference between MessageBox & MsgBox?
pcnerd -
22 Jul 2006 1:49 PM - 12 messages
I have VB6 Learning Edition. What's the difference between MessageBox & MsgBox? The Help doesn't help much. Are they interchangeable? Thank you. David ...
Package and Deployment Wizard
Mike Williams -
22 Jul 2006 9:37 AM - 11 messages
I don't normally use the VB Package and Deployment Lizard but I've just been giving it a try and I've come across a rather annoying problem. After installing a small VB test program I looked for it in the Control Panel "Add ...
runing VB 3.0 application on XP with MS SQL 6.5
suhas -
22 Jul 2006 8:53 AM - 4 messages
Hi I have a running (client server) Application with VB 3.0 ,Win NT server and Win NT workstation with MS SQL 6.5 I want to Run my VB 3.0 exe on Win 2003 and win XP environment with MS ...
How can I to pass an array in a function argument?
Carlos Villaseñor M. -
22 Jul 2006 3:32 AM - 4 messages
Hi everybody! I finally have success implementing my first DLL function, I have exported a C++ function with a DLL using the "Declare" statement in Basic, but now I have a doubt, how can I to pass an array in the DLL function parameters ...
Copying Files in VB6
Jerry -
22 Jul 2006 2:01 AM - 4 messages
I have created a form that controls the copying of several files. After each file is copied it is added to a listbox. By problem is that after a while the form stops gettin updated. When I move the form I find an identical ...
[vb6] Remove HTML or put it in an RTF format?
zshall -
21 Jul 2006 10:40 PM - 6 messages
When I get a message in my VB AIM client, it is in the form of HTML. <tag><tag><tag>message.</tag></tag></tag> Is there a function that will remove that html so users can see a clear ...
Option Compare Database
me -
21 Jul 2006 10:32 PM - 4 messages
I am working on a project, as an intern, using Access 2003 with VBA code referring to a previous project that is being overhauled. I saw the statement "Option Compare Database" at the top of each fform's Code view. What is it? ...
Copy a file and paste to new location
Andrew -
21 Jul 2006 10:24 PM - 3 messages
Apologies if this is a basic question, but I've found several suggestions through google of how to do this and none of them seem to be working (note: this is in VB6, on a Windows 2000 PC) I want to create an exe where, on the click of a button, a specific file on ...
Word Automation for Check Printing
Tim France -
21 Jul 2006 8:40 PM - 8 messages
I need to create a module that opens a word document template and positions fields throughout the document (for check printing). So the check amount, memo field, etc etc... need to be in pretty specific locations on the document. I have a form that allows the user to test print a check and make ...
How to simulate a dbl click
Ben -
21 Jul 2006 7:16 PM - 3 messages
Hi all, I would like to ask if there's a way to simulate a double click on a icon using something like sendkey or some other means? Thanks for your help. Ben ...
On Error Resume Next Does Not Work In This Loop
Newbie -
21 Jul 2006 6:02 PM - 8 messages
Instead of just moving on to the next control when it finds a control that does not have a Text property, I get a message: Error 438: Object doesn't support this property or method. On Error Resume Next ...
How to call class methods on object of a class that implements an interface?
Levon Levonian -
21 Jul 2006 4:02 PM - 4 messages
Hi All, I have an interface IProduct. Several classes (Window, Door, etc.) implement that interface. I create an object like so: Dim myWindow As IProduct Set myWindow = New Window Using methods defined in interface and implemented in the class is ...
Replace , with ~ in a file
gonzosez -
21 Jul 2006 3:49 PM - 3 messages
I have a file (mine.ini) where I need to replace every "," with a "~". How do this? Thanks ...
Procedure for restoring a menu removed with RemoveMenu
ZipDC -
21 Jul 2006 3:40 PM - 2 messages
Hi I have a menu that I have created in another porcess, but after some time it disappears and I guess that this has been done with remove menu, because the handle is still there. How do I restore it and make it visible? ...
Accessing data for Crystal Reports
jimmy -
21 Jul 2006 2:44 PM - 2 messages
Hi, i have a VB6 application which currently uses a com+ dll to access, update and delete all data. Currently whenever i need to add a new reportt i need to add a new procedure to the dll to pull back the required recordset. should i ...
Drawing 3D surfaces with MSChart control
Emeric -
20 Jul 2006 10:12 PM - 4 messages
hi, I'd like to draw this kind of 3D charts : [link] (get from Excel) with a MSChart control (in VB5). Is it possible ? If yes, how ? I've tried but I can't get any surface, and I can't make any legend appear ...
Printer Object Document Name
Tom Gaughan -
20 Jul 2006 9:35 PM - 3 messages
Does anyone know how to change the name of a document being sent to the VB 6.0 printer object. They are always called "Microsoft Visual Basic". Thanks, Tom ...
Couldn't get process information from remote machine + XP Sp2
Vidit -
20 Jul 2006 8:53 PM - 2 messages
I have the following problem: I'm using the function GetProcesses in the class Process ( System.Diagnostics ) to get information about processes on the PC's I have administration privilegies. Do anyone know what the problem lies ? The error I get is: ...
problem with "On Error" and web queries
Brian in London -
20 Jul 2006 6:55 PM - 2 messages
Why does "On Error" occasionally fail to make a difference with the following web query? Once in a few hundred iterations there will be a timeout or resource not available message that does not seem to get caught by On Error. ...
vbp and installer
Andrew -
20 Jul 2006 5:29 PM - 7 messages
When I open the myapp.vbp it automatically invoke the installer (the msi file), I have to hit cancel several times before I can get to the VisualStudio IDE. Also, when I run from IDE, the installer keeps popup. Questions: ...
VBA Question
josus -
20 Jul 2006 2:21 PM - 8 messages
Hey everybody, I'm looking for VBA source code (using Ms-Word) that would would allow me to: 1- Initialize a variable (ie. "replacement-text") 2- assign content of highlighted text in variable "replacement-text" 3- replace (Ctrl-H) regular text (ie "searched-text") with content of ...
Passing Date type as reference
n3sachde -
20 Jul 2006 1:24 PM - 9 messages
Hi I am passing a Date variable in VB 6.0 to a function and a sub as ByRef When I pass this variable to a sub, despite of my using ByRef the value of the date Variable is not changed, however when I pass the same thing to a ...
VB6 sstab
Atenza -
20 Jul 2006 11:34 AM - 6 messages
Hi all, I have the following code to dynamic create a tab and label: Set m_sstab = Me.Controls.Add("TabDlg.SSTab", "m_sstab", Me) m_sstab.Height = 2000 m_sstab.Width = 2000 m_sstab.Top = 500 ...
unhandled SecurityException in VB 2005 Express
KenEisman -
19 Jul 2006 10:34 PM - 2 messages
I'm trying to read in a text file using code that I copied and pasted from the MS help file. Using Reader As New _ Microsoft.VisualBasic.FileIO.TextFieldParser("c:\bankcheck") ...
VB5 Question
Jesse -
19 Jul 2006 9:52 PM - 13 messages
Hello, I have programmed in several languages, but never VB before (not regular VB anyway). I've got a customer with an old application written in VB5. They only want a few simple changes, so I picked up a copy of VB5, and am ...
How could I launch VBA progammically
newcomer -
19 Jul 2006 8:58 PM - 10 messages
I am testing our VBA macro features. I would like to run my VBA test scripts programmically as a part of automation process. Is there any way to do that? Thanks in advance, ...
SQL SERVER 2000
Rick -
19 Jul 2006 6:49 PM - 2 messages
How can I make a user defined function be called by anyone, not only dbo? I tried with Grant Execute on functionname to public. but I always have to write "dbo." in front of the function when I call it. ...
Setup question before installing VS 2005
Bob Delaney -
19 Jul 2006 5:48 PM - 14 messages
I am sure this queston is asked from time to time, but I have scrolled through this newsgroup, and cannot see it asked or answered recently. I am running a stable copy of Visual Studio 2003. I am planning to upgrade ...
VB.net DDE
Martha Hoffmann -
19 Jul 2006 4:48 PM - 8 messages
I have used netDDE with VB6 in the past to pull data from an application running on another computer on the network. Can someone point me to some instructions on the best way to do this in VB.net? ...
Command Button Style Graphical problem
David Bland -
19 Jul 2006 2:58 PM - 3 messages
Hi all I have set one of my command buttons to Style Graphical so I can place a picture on it, only problem is the text for the button has been pushed to the bottom of the button, is there a way to centre it? ...
web browser control question
spy4phun -
19 Jul 2006 2:53 PM - 4 messages
I am attempting to click a button on a web page through vb. I am using WebBrowser.Document.documentElement.all("textboxname").Value = "something" to fill in text boxes. The button i need to click displays like this in the HTML: ...
Creating ZIP folders in VB
Jonathan -
19 Jul 2006 2:27 PM - 6 messages
Hello all, I want to copy a file into a zip folder in VB6. Right now I'm invoking EXPLORER.EXE with Shell() and doing SendKeys to create the Zip folder. This seems pretty kludgy. Are there any cleaner alternatives? ...
Can Internet Access be Selectively Denied in WinXP Pro?
Dick Sutton -
19 Jul 2006 2:02 PM - 4 messages
I have a small office Lan with 10 computers all running XP Pro. I would like to only allow certain computers access to the internet. We are currently connected via a cable modem & router: all computers have access. ...
MonthView Question
Jim -
19 Jul 2006 1:33 PM - 4 messages
I am using a monthview control. if while the program is running the system date changes (at midnight) the "Today" remains on the previous day unless I close and reopen the program even if I run monthview1.refresh every minute. Am I missing something? ...
Checking password against AD
David DB -
19 Jul 2006 1:00 PM - 4 messages
Hi, Does anyone know of some code that allows a user/password check against AD ? The one I'm using know crashes in some systems. Thanks, David ...
Making frames transparent
David Bland -
19 Jul 2006 10:19 AM - 4 messages
Hi all I have the need to make frames I have on a form transparent so the picture on the main form shows through is this possible? David ...
exception breakpoint
Visual Basic - exception breakpoint.. -
19 Jul 2006 8:33 AM - 3 messages
Hi, I have been getting following error message when I navigate through vb application I wrote a while ago. any ideas why this is happening. any help would be appreciated Thanks! error message: "Application error: The exception Breakpoint. a breakpoint ...
Short cut keys and online tutorials for visualbasic 6.0
vinci -
19 Jul 2006 5:55 AM - 4 messages
hi friends, i am using visual basic6 i want shortcut keys in visual basic (eg. f4 properties, ctrl+spacebar --> display properties and methods). And one more which site free online ...
How to edit textbox that also has dragdrop functionality?
Michael Ray -
18 Jul 2006 11:22 PM - 5 messages
I've not had to deal with drag-drop before and from what I've read trying to find a solution to my problem, it can be tricky at times. However, I'm modifying an existing app that already has drag-drop ...
Can I group enums so I can see them in Intellisense in VB6?
fdeckerNOSPAMM -
18 Jul 2006 8:29 PM - 5 messages
If I have several enums, I want to know what their group is, not just intellisense for what the actual enums under the group are. I need it to be like the .NET languages or Borland languages. In other words: ...
Set top of form higher on screen?
Ed -
18 Jul 2006 7:02 PM - 7 messages
How do I get my form to open higher up on the screen? I tried setting Me.Top = <various values>, and even Me.Top = (Screen.Height - (Screen.Height - 10)), but nothing works. What's the secret? ...
Newest file in a folder
Jonathan -
18 Jul 2006 6:26 PM - 5 messages
Hello, Is there a way in VB6 to loop through the files resident in a folder and determine which one has the latest date? The file-name will conform to a specific format. Any help will be much appreciated. Thanks, ...
Send Keys question
Reply -
18 Jul 2006 5:20 PM - 5 messages
Hi all Is there a way within VB6 to send a keystroke to my own application (which is alive and well, but does not necessarily have focus)? Basically, I have an external device which, when used simulates key presses using the VB6 command "SendKeys". Unfortunately, I have noticed ...
VB.NET Excel interop error "no printers are installed"
Phil H -
18 Jul 2006 4:30 PM - 4 messages
I have a VB.NET console application that uses the Excel PIA. I set it up to run on a W2K box through Task Scheduler, under a domain account that has rights to all of the resources the app uses. I can run this application on ...
Copy commmand replacement
Ben -
18 Jul 2006 4:04 PM - 6 messages
Hi all, I have a batch file which uses the Copy command in DOS mode. I like to know if there is / are something equilvalent in VB. I like to replace the batch file completely. Basically the batch file does a merge of multiple input files and merge them ...
Assembly language and VB 6
Howard Kaikow -
18 Jul 2006 2:48 PM - 18 messages
I'm in a masochistic mood. Is there a book that will bootstrap me so that I can study the assembly language generated by VB? I could plod thru the Intel manuals, but a book should get me going faster. ...
Which type of replication in SQL server is the best to use?
Valli -
18 Jul 2006 2:10 PM - 2 messages
Hi, I am in need of knowing which type of replication is the best to use in SQL server. My application runs at the server place and there are client processes running in remote which gets connected to this server process . ...
Drag N Drop to launch app
vm -
18 Jul 2006 1:35 PM - 3 messages
Is it possible to drag a file on a VB6 icon which will launch the app of the icon and have the file that was dropped on the icon be processed as an input file...I have looked for code samples and have only found drag and drop code ...
scripting RDC
JoJo -
18 Jul 2006 12:41 PM - 2 messages
Folks: Looking for a script (DOS/VBscript/etc ) that would allow me to remotely switch on Remote Desktop Connection (RDC) on a windows XP machine Thanks, John. ...
Forgot to write the subject in your mail ? - Don't worry Here is VB code
CoolDude -
18 Jul 2006 12:12 PM - 9 messages
[link] ...
Setup for VB6 Learning Edition
John W Rippin -
18 Jul 2006 11:05 AM - 2 messages
I have just purchased VB6 Learning Edition. When I try the setup I get an error message saying: config.nt. The system file is not suitable for running MS-DOS and Microsoft Windows applications. Chose 'Close' to terminate the applicaiton. ...
How to implement Drag-Drop
Peter T -
18 Jul 2006 10:36 AM - 6 messages
Hi, I'm trying to re-create in VB(6) how my drag-drop works with my VBA/MSForm. I have a grid of CommandButtons as a ControlArray (in VBA though a WithEvents class to trap button events) On button press and mouse move start-drag. Actually only after X or Y move ...
Accessing LDAP through VB
Pixaar -
18 Jul 2006 8:02 AM - 2 messages
hello.. I am new to VB and really new to LDAP I am trying to write an application for our lunch card system...where a student's card is read by a barcode reader and the information (a string) is sent to the LDAP and some attribute value is accessed. ...
*.RES file and compiling problem
CorfuVBProgrammer -
18 Jul 2006 7:40 AM - 5 messages
Hello . . . ! ! ! I have create an application using VB6 that contain a *.res file. When i try to test the application thru the VB Environment using the run menu start ( â–º Start F5) ...
A memory problem
Wagon -
17 Jul 2006 10:29 PM - 6 messages
I I think I have a resource problem with my VB 6 program. It's a very complicated program with many controls. very rarely,when I attempt to run it with too many other programs open,I get an out of memory error ...
q; find how many day passed
JIM.H. -
17 Jul 2006 8:37 PM - 5 messages
Dim ts As TimeSpan = crun.Subtract(lrun) I am using this to find the elapsed time, is there any way I can do this comparison without time part, such as if lrun=07/16/2006 and crun=07/17/2006 ...
How do I sort a table
Troy -
17 Jul 2006 8:04 PM - 3 messages
Public Sub test() DoCmd.OpenTable ("OSM Table 1") End Sub I'm this far, yes I'm that good. What do I need to do to make it sort the table by ascending order from a field called [Meal Total]? Please ...
Can I make a single-file exe to share?
Ed -
17 Jul 2006 7:25 PM - 16 messages
I have the Learning Edition. My project currently consists of three forms and a text document (contains an explanation of how everything is supposed to work and how to use it like it's supposed to be used). I also see a ...
Timing less than a Second?
Thomas Malia -
17 Jul 2006 6:43 PM - 6 messages
I'm just trying to do some simply profiling on a program that's running slow. I started by wrapping blocks of code in: Dim d as date d = now() '* Block of code debug.print datediff("s", d, now()) This was only giving me seconds which it turns out many of the blocks of ...
Show the field
dokter cinta -
17 Jul 2006 3:38 PM - 3 messages
hi all its me again i have a problem to show legend used checkbox i mean the legend will show if i click the checkbox and show more legend if i click more checkbox please show me the logic or code ...
error using a ms access database ith visual basic 6
MaurizioA -
17 Jul 2006 2:54 PM - 8 messages
I use Visual Basic 6 with an MS Access 2000 data base and jet 4.0 I have the following error: 80004005 - can't open any more table. I know that this is because jet 4.0 is limited to 2048 tableid, and probably ...
Sending an XML file to a website?
Advo -
17 Jul 2006 2:25 PM - 3 messages
Hi there. Basically, i need to be able to send an XML file to a website, this is the information the website has given me: "Requests are submitted via the HTTP POST method, with a Content-Type of text/xml. Sessions are usually synchronous, with the requested XML ...
Select polygon on EMF on MouseOver
belli.luigi -
17 Jul 2006 12:06 PM - 19 messages
I have the following problem, maybe somebody can help me: In a PictureBox control I load an EMF file, then in a MouseMove event, I recognize the polygon in which the mouse cursor is moving, then I color filling it. ...
saving a special variant to disk
PC -
17 Jul 2006 11:43 AM - 3 messages
how can save a variant that contains an array of objects to disk, and retrieve it back sample code: ---------------------------- Class1: Public TheLong As Long Public TheString As String ---------------------------- Form1: Dim TheClass(10) As New Class1 Dim TheVariant As Variant Private Sub Command1_Click() ...
How to fix error 380 Invalid property value.
sm -
17 Jul 2006 9:05 AM - 4 messages
I had a program running fine in VB with Win XP. Suddenly It started giving this error 380. I had not made any change in the code. strSQL_iscompl = "PARAMETERS [VOUCHER_NUM] string;SELECT chq_dd_no,chq_dd_dt FROM " & m_vouch_dtl_table & " " _ & " WHERE (Vouch_No=[VOUCHER_NUM]);" ...
Connectivity to txt file
shweta -
17 Jul 2006 8:44 AM - 7 messages
hello, I want to store data in a text file instead of using database so how can i? Tell me the code. ...
Dll code
shweta -
17 Jul 2006 7:21 AM - 9 messages
Hello, As per my information dialogic card is a h/w and IVRS(interactive voice response system) is the s/w that run on that h/w.I want dll code so i can try to make samething i.e IVRS using VB ...
TextWidth() Alternative?
Jim Carlock -
17 Jul 2006 2:13 AM - 40 messages
I'm parsing logfiles. I ran into a problem with TextWidth(). The length of one of the lines is over 32000 characters in length and TextWidth() overflows. Does anyone know of an API function that might retrieve the length of a line of text? Or perhaps another alternative ...
VB6 and WebBrowser control and setting content using a string
Martin A. Weinberger -
17 Jul 2006 1:24 AM - 7 messages
Hi All, I have the HTML for a document loaded and saved as a string, strHTML. I also have a WebBrowser control, WebBrowser1. How do I set the content to the HTML string without saving to a temporary file and then passing a pointer to that ...
Maximum size of resource string
pcnerd -
17 Jul 2006 12:36 AM - 7 messages
I have VB6 Learning Edition. I want to have some kind of Help & I don't want to go thru the hassle of learning HTML Help or Windows Help. I can use an external text file, but if the file is missing then VB will complain. I'd ...
Displaying output in a list box...
SDwyer -
16 Jul 2006 7:01 PM - 2 messages
I'm still new to VB, so this may be an easy question... I have to generate a business travel expense attachment for an income-tax return. The problem I am having is that I need to display the output in a list box that becomes visable when the button is ...
Centering text vertically in label
Mario -
16 Jul 2006 3:11 PM - 6 messages
Is there way to center the text vertically in a label? ...
Form not being shown
Ivan Debono -
16 Jul 2006 6:49 AM - 14 messages
Hi all, This is what I'm trying to achieve: 1. Application starts through Sub Main. Calls a separate exe to check for Updates. 2. Update checks for any new updates and if any found, displays a form and executes the updates ...
|
|||||||||||||||||||||||