|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
How to zoom using Me.Scale?
Co -
14 Oct 2006 9:53 PM - 2 messages
Hi All, I draw some pictures and like on a form. The object should be in the middle of the form (Me.ScaleWidth \ 2, Me.ScaleHeight \ 2). Now I want to use the Me.Scale function to zoom in and out. ...
Tooltip problem and MouseOver
Co -
14 Oct 2006 6:26 PM - 2 messages
Hi All, I have a rather complicated problem. I have a form on which I draw some pictures: [Class Box]: Public stdPic As StdPicture, X As Long, Y As Long, Text As String, Text2 As String, Id As String Public Sub Draw(Obj As Object) 'vbWhite ...
detect ActiveForm.ActiveControl.SelText <> ""
Co -
14 Oct 2006 11:51 AM - 3 messages
Hi All, I have a MDI form with four buttons Copy, Paste, Delete and Cut. The buttons are disabled to start with. Now I open a Childform in the MDI with some textboxes. Is there a way to get the buttons enabled automatically when a text on ...
Problems extracting picture data from Access database
Faraz Azhar -
14 Oct 2006 8:31 AM - 9 messages
Hello I saved a picture into a database. I had a Data control and a picturebox bound to it. Data control had been told the location of database, etc. A created a new record in the record set and loaded a ...
Parameters by Reference?
The Watch Dog -
14 Oct 2006 7:50 AM - 5 messages
I am using the VBA that came with my Access 2000. When defining and calling custom functions and subroutines, is there a way to pass parameters by reference, so that the function/subroutine can change them? I know I can get roughly the same effect by using public ...
Meaning of ampersand in Constant definition
Nobody -
13 Oct 2006 9:47 PM - 8 messages
[I am C++ programmer, not too familiar with VB] I am looking at the code snippet at [link] It contains these lines: Const SW_SHOWNORMAL = 1 Const SE_ERR_FNF = 2& ...
Unneeded Blank Last Lines
Darrell -
13 Oct 2006 6:35 PM - 32 messages
The following code places a record in multi-line form into a text box, then "tacks" additional records on a necessary. The problem I need help with is making sure a blank line separates records, but isn't left hanging after the last record is added. ...
Which API function to use for monitoring keypress
Armini -
13 Oct 2006 5:28 PM - 3 messages
I have a tool in my form to preview PDF files (it is from a third party company, not Adobe itself.) When running the application and previewing a PDF file, if user clicks on the previewed PDF file and presses F1, it will bring ...
IDE Project | Reference ... Item disappear
Wyne -
13 Oct 2006 4:52 PM - 2 messages
I am using a VB6 enterprise edition IDE. In its "Project" drop down menu, there aws a "Reference..." item originally. But this item now disappear. I tried change Options, but still couldn't restore it. Can anyone help? Thanks. ...
Export to MS Project
cowznofsky -
13 Oct 2006 3:46 PM - 2 messages
I have an app that presents a list of project items in rows in a grid, with columns representing time periods that show when each item is dealt with. Much like MS Project, which is where I would like to export the data. ...
Trying to install VB6 in Vista
Martin -
13 Oct 2006 3:40 PM - 10 messages
I've installed Windows Vista (RC2 - build 7544) on a machine to experiment with. Now, I'm trying to get VB6 itself up and running. I installed VB6 - that seemed to go ok. But, now when I try to install ...
Running VB3 apps direct off CD-ROM?
MM -
13 Oct 2006 3:35 PM - 12 messages
Can someone refresh my memory as to what is possible? I'd like to write an app that needs NO installation on Windows from 95 thru XP and runs from a CD-ROM. I seem to remember that this was possible using ...
How to enable cross-process dragdrop?
Wyne -
13 Oct 2006 12:44 PM - 5 messages
Hello, Within Windows Operating System, we can drag-drop an icon from deskrop (or Windows Explorer) into another runing application. For example, if I drag a JPG file to an opened Paint application window, the latter will automatically load the image. This is a very convienent feature. ...
Howto create a shadow underneath a form using VB6
Bart Steur -
13 Oct 2006 11:27 AM - 22 messages
The subject says all. Thx. Mike ...
Regarding OCX and DLL registration
Kjell -
13 Oct 2006 8:52 AM - 2 messages
Hi I'm trying to move away from the built in P&D setup wizard and found Inno to be much more usefull and flexible. However, flexibility means more options you need to understand. 1 How can I tell that a resource file (OCX, DLL aso..) must be registred on ...
Unintended rounding problem
Mark Micallef -
13 Oct 2006 4:40 AM - 16 messages
Hi, I'm having a problem with unintended rounding of decimal values which I'm retrieving from a SQL Server 2000 table. The table contains a decimal column defined as 9(16,8), and which contains values very close to 1, such as 0.9996. ...
How to set function to nothing
hon123456 -
13 Oct 2006 3:16 AM - 8 messages
Dear all, I got a function like follows: Public Function GetRecordsetBySQL(ByVal strSQL As String) As ADODB.Recordset On Error GoTo ErrGetRecordsetBySQL Dim objRS As ADODB.Recordset ...
Question for Larry Serflaten...
Co -
12 Oct 2006 8:54 PM - 13 messages
Hi All, I once obtained following code from Larry Serflaten to draw images and lines on a form or picturebox. I was just wondering if there were any chance of having a zoom option with this? ' [ Box Class ] Public X&, Y&, Color&, Text$ ...
VB6 MSXML2
William Cole -
12 Oct 2006 7:57 PM - 2 messages
I am trying to set the timeout period for my MSXML2 object but my code is failing. Does anyone see a problemwith the following code? Dim objXMLHTTP As MSXML2.ServerXMLHTTP Set objXMLHTTP = New MSXML2.ServerXMLHTTP ...
VB6 - Out of memory error opening form in IDE
Clay -
12 Oct 2006 7:28 PM - 8 messages
I am getting an "out of memory" error when trying to open a form in the VB6 IDE. I can open the code view of the form but if I try to open the designer view of the form or compile the project, I get the out of memory error. This ...
Using adodb to create tables and fields in ms access db
Andrew -
12 Oct 2006 6:44 PM - 4 messages
Does any body know of a good reference for creating tables and fields in an ms access db using adodb? ...
Memory Question
NeedHelp -
12 Oct 2006 3:04 PM - 2 messages
We run a complex program with a lot of elements. When many other programs are running we sometimes get an "out of memory" error which when we attempt to debug can occur on loading of any of a number of ...
Problems with PDF Writer Software....
John Morley -
12 Oct 2006 2:58 PM - 7 messages
Hi All, I recently added PDF creation capability to my application using some code I found on the net. It seems pretty straight-forward, using a Class Module, and apparently having no dependancy on an actual Adobe PDF Writer installed. The problem is that this code works great on my ...
Bring the form to the foreground
Arpita -
12 Oct 2006 11:11 AM - 3 messages
suppose i load a form once and the user doesn't close it. Then he tries to open that form again from the menu and it doesn't come up because it's already open. How can i bring it to foreground? ...
How to know if an executable is finished in vb code?
kang_feng_111 -
12 Oct 2006 10:18 AM - 3 messages
Hi everybody, I am working on a vb code. In my code, I need to know if another executable is finished to decide next step. I have tried code like below: pcnt = Process_cnt("a.exe") Do Until pcnt < 1 ...
DataReport: printing to non-default printer ?
cnlai -
12 Oct 2006 9:52 AM - 3 messages
Is it possible to send DataReport to a non-default printer using VB codes ? This statement does not seem to work : Set Printer = Printers(x) Thanks. ...
command button problem
Claudia Fong -
12 Oct 2006 8:48 AM - 9 messages
After reloading the form, the picture I have in my command button will disappear.. and I don't know why..does someone know? The reason I unload e reload again is for the users to continue submit the details, without the need to go back to the main menu and go back to ...
Detect name of PC?
Damon -
12 Oct 2006 8:43 AM - 7 messages
Hi, How can I detect the name of the pc my VB6 app is running on? I am on a network. Appreciate any help on this Thanks ...
How to save a form in .pdf or .jpg format?
DORI -
12 Oct 2006 8:03 AM - 9 messages
Hi All, I have an application with about 150 controls on form1 including some images. I want to save form1 in .pdf or .jpg format just the way the printer would print form1 with code: Form1.PrintForm. How can I do that? ...
How to save a form in .pdf or .jpg?
DORI -
12 Oct 2006 8:02 AM - 4 messages
Hi All, I have an application with about 150 controls on form1 including some images. I want to save form1 in .pdf or .jpg format just the way the printer would print form1 with code: Form1.PrintForm. How can I do that? ...
How to save a form as .pdf or.jpg?
DORI -
12 Oct 2006 7:46 AM - 3 messages
Hi all, I have an application with several forms which contain multiple controls including some images (VB6 SP6 WinXP). Can anyone give me some directions on how to save for instance form1 or form2 with all their controls in a .pdf or .jpg format? ...
create label using code
David Pick -
12 Oct 2006 4:54 AM - 2 messages
I am currently switching from vb6 to vb.net. I know in vb6 in order to add a control such as a label you would use code such as me.controls.add("Forms.Label.1"). Could someone please tell me the ...
file size, last modified info of files on remote server
prameela.rao -
12 Oct 2006 3:20 AM - 4 messages
Hi all I'm working VB6.. For a project, kind of FTp, i wanna read file info of files on remote server (Win NT server), file size, last modified date & time Without downloading them. May b INET control?? what's right approach--simple ...
DataGrid
Gunawan -
12 Oct 2006 2:17 AM - 2 messages
Hi there, I would like to use a freeware of DataGrid ActiveX that can have an unbound DataGrid and have an Array Object just like True DBGrid from component one. Do you have any suggestion? TIA Gun ...
newbie question
wasted wanderer -
11 Oct 2006 10:47 PM - 4 messages
I am just starting to learn to program in VB and have a question. Can a program designed in VB be used by computers that do not have VB? If yes, how is that done? Thank you ...
Array() problem with pictures
Co -
11 Oct 2006 8:50 PM - 3 messages
Hi All, I'm working on some code displaying images and lines on a form. The number of images is different every time so I created an Array but the problem is that the code is not excepted. Anyone know what I'm doing wrong? ...
DoCmd.OpenQuery question
peashoe -
11 Oct 2006 7:12 PM - 2 messages
I have a field: txtTotal that I need to SUM in the Form_Current event. I created a query: SELECT Sum(Attendees.[Room Price]) AS SumOfRoomPrice FROM Attendees, Registrations WHERE (((Registrations.[School Or Organization])=[Forms]![Registrations]![School Or Organization])); but I need it to total in the txtTotal text box. Any ideas how I do ...
Storing data in SQL database
Jack -
11 Oct 2006 5:02 PM - 5 messages
Hello, I was asked to modify my application to allow it storing data into SQL database. I do not have any idea how to do that. Any pointers are welcomed. ...
Unwanted rounding of single precision values
Steve Zurlo -
11 Oct 2006 4:12 PM - 11 messages
This is really odd. Not even sure why I have not run into this before....... My app has a sub that needs to determine if one number is evenly divisible by another. So I jumped on Mod, obviously, but then discovered that mod drops the ...
Getting selected values from Checkbox Style ListBox
Sreedhar -
11 Oct 2006 3:57 PM - 7 messages
How can we retrieve what items are selected in a checkboc style ListBox ? I tried the following code, but it seems to be very indirect. For i = 0 to List1.SelCount - 1 If List1.Selected(i) = True Then ...
Compiled, Tokenized or Interpreted?
Bill Martin -
11 Oct 2006 3:29 PM - 9 messages
I've been using VBA to do some fairly intense computations in an Excel spreadsheet. Unfortunately, it's just getting too big and too slow due to the tokenized and interpreted nature of VBA. So I'm going to need to move ...
Design
Bob -
11 Oct 2006 3:19 PM - 3 messages
Hi, I am currently designing an application and I have in place a multi-layer design (UI, Service/Facade, BL and DL). My questions is regards to my facade interface between the UI or BL. I have a form where a user has alot ...
CreateProcess not starting app
cs_hart -
11 Oct 2006 12:38 PM - 9 messages
I'm trying to execute an exe from a vvb6 program. Using the definitions and code below, I get a 0 from the CreateProcess function. I've looked at a lot of posts but can't find anything. Any help appreciated. thanks...charlie ...
VB 2005 not .NET
Lenny Abbey -
11 Oct 2006 12:07 PM - 78 messages
I notice that VS (and therefore VB) 2005 are not ".NET " products. Does this mean that the gentlemen of Redmond have come to their senses? Perhaps the next version will be VB7! Lenny ...
time and date
Carlo -
11 Oct 2006 8:36 AM - 7 messages
Hi i need to determine the number of seconds since 1970-01-01 from a date, ex. Dim nSec as long Dim MyDate as date nSec = ???funct??? (MyDate) do you know if this function exist ??? thanks Carlo ...
VB.NET UDP Clinet On Windows Terminal Service Session
zrgtech -
11 Oct 2006 7:44 AM - 2 messages
Hi Friends, i am Using VB.NET 2005 Application as UDP CLIENT on Windows Terminal Services, on first session i am able to run my application, but on all others i am getting error message "Only one usage of each socket ...
Finding text on combo box by typing some letters
Charles -
11 Oct 2006 7:33 AM - 6 messages
I have 100 more sorted items on my combo box. I want to search some item that located in the middle of the list by typing some letters. for example if i type the leter 'G' on the combo box it will autmatically goes to text with ...
Zoom in and out with graphics in VB
Co -
11 Oct 2006 5:13 AM - 8 messages
Hi All, I have an application in which I project images and lines on a VB form through so called Ropes and Boxes: Boxes: Public stdPic As StdPicture, X&, Y&, Text$, Text2$, Id$ Public Sub Draw(Obj As Form) 'vbWhite ...
Problem reading value from Excel spreadsheet
Jack -
11 Oct 2006 3:35 AM - 4 messages
Hello, My code imports data from Excel spreadsheet. The line of code is: oExcelWS.Cells(Row, Column).Value All is fine when cell contains text or number, however one cell contains ...
Passing Array with CreateThread?
vidguide -
10 Oct 2006 10:40 PM - 10 messages
Ok, If i do this: TestThread (localNodes) it works (not threaded, obviously) But if I do: lThreadHandle(i) = CreateThread(ByVal 0&, ByVal 0&, AddressOf ...
Detecting and Active Firewall...
Vincent777 -
10 Oct 2006 7:51 PM - 2 messages
Hello Friends, I have an app which uses the WinSock control. The app runs fine except when a user is behind a firewall, the app crashes real hard. It seems when using the WinSock control in an attempt to make a remote connection makes this ...
Crystal Reports in VB 2005 Express?
everymn -
10 Oct 2006 6:36 PM - 2 messages
Hi, I have CR11 Developer, and I'm trying to get VB Express to work with the RDC Designer library. The book I have states that you should add the support from Project | components | Designers in VB. However ...
Custom File Properties
Craig Buchanan -
10 Oct 2006 6:20 PM - 4 messages
Is there a way to add custom properties to a file? I've tried the "DS: OLE Document Properties 1.4 Object Library (DSOleFile)", but it only works for Office documents. Thanks for your assistance, Craig Buchanan ...
Access2003 with VB6
Sreedhar -
10 Oct 2006 4:55 PM - 2 messages
Hi, New to VB6. Familiar with Access and VBA. Trying to build database with VB6 and Access 2003. Visual Data Manager says cannot recognize file (.mdb) while trying to connect to Access 2003. Can somebody please tell me what's wrong ? ...
Calling a batch file from a vbs script
Dane Newman -
10 Oct 2006 3:59 PM - 3 messages
I have been unable to find any resources on how to call a batch file from a vbs script could you please help? Dane Danew***@ahrc.org ...
Reassigning arrow keys
Martha Hoffmann -
10 Oct 2006 3:44 PM - 17 messages
Can I make my right and left arrows keys perform like tab and back tab with VB 6? Thanks, Martha Hoffmann ...
VB instalation error
Claudia Fong -
10 Oct 2006 2:02 PM - 6 messages
Hi, I used the VB package and deployment wizard to get the setup packages and then I installed the application in the user pc. But during the instalation I got this error message..I don't know why, because it never ...
Numeric Output
jcrouse1 -
10 Oct 2006 1:38 PM - 2 messages
I am writing label attributes to a text file. Why is it that text lines have no leading or trailing spaces, just the text and a carriage return, but numeric values have a leading and trailing space? Here is the code: ...
Collapsing Code in VB6
Charles Law -
10 Oct 2006 1:29 PM - 5 messages
Does anyone know of an add-in for VB6 that allows sections/regions code to be expanded and collapsed, like in the .NET IDE? Charles ...
Microphone Input
Frank-René Schäfer -
10 Oct 2006 12:47 PM - 2 messages
What is the easiest way to capture Microphone Data in Visual Basic6? Thanks for any help. Frank. ...
Threading in Visual Basic - Many threads
vidguide -
10 Oct 2006 4:09 AM - 14 messages
This problem becomes apparnt on faster systems, the faster it is, the quicker it will crash. Basically my program logs onto a DB, retrieves a series of IP addresses, and then sets about pinging them all. Due to interface animation/responce, the pinging is to be done in a thread. All data ...
VB crashed when I tries to end my programme
kwng -
9 Oct 2006 8:54 PM - 2 messages
Hi. Here's my programme to automatically create new controls during runtime in VB 6.0 SP6. However, when I clicked "finish" button or FinishCmd_Click or tries to terminate the programme using normal VB stop, VB 6.0 crashed (error and exit). Please advise. ...
Smooth lines in Picturebox
RB Smissaert -
9 Oct 2006 8:13 PM - 32 messages
Wrote a dll to make graphs from 2-D arrays. It simply is a form with a picturebox and the lines are drawn like this: Picture1.Line ((ColOffset + sFirstXWidth / 2) + _ (.Width - (ColOffset + sFirstXWidth)) * ...
i want this condition to be satisfied if Combo(index=2) ="" then depending on msgbox value i want e
Mallus CSE -
9 Oct 2006 8:10 PM - 3 messages
Hi there....I am a beginner in Vb6.0......I am using combo1(index) in my project ( total index =0 - 5).......I want to check for a condition ... just imagine combo1(2) is having some text and i am using BACKSPACE or ...
how to retrive the name for the previous active wondow programmall
gtea -
9 Oct 2006 7:34 PM - 2 messages
Hi there, I have multiple forms open at the same time in the applicaton. The user can swich focus between them. For example, I have form1 open, then I open form2 (while keep the form1 opening), now the form2 is the active window, I would ...
LDAP Query fails on upgrade Windows 2003 Server - Using OpenDSObje
Yong -
9 Oct 2006 7:10 PM - 2 messages
I had a piece of VB6 code which worked fine on the Windows 2000 Domain. But since we upgraded to Windows 2003 (Service Pack 1, Servers running in mixed mode). My code no longer works and just returns the error: ...
SP5 & SP6 Caused DataGrid Problems
AMC -
9 Oct 2006 5:42 PM - 2 messages
My application has been running for over a year now. I designed it in VB6 with no Service Packs installed. The program interfaces with a MS Access 2000 database. Today I installed SP5 and ran the program again and received the ...
Create Shortcuts without using WSH
Anthony -
9 Oct 2006 5:31 PM - 10 messages
I need to create shortcuts in VB6 WITHOUT using the winsows scripting host. Although its easy to use WSH, symantec (and perhaps others) slaps a big red "malicious script" popup box when it tries to run - I don't need users ...
window2003 server and interDev 6
jingsheng.zhou -
9 Oct 2006 3:32 PM - 2 messages
My Win 2000 with IIS and interDev 6 worked fine. I installed Win 2003 server and interDev 6 (together with bachoffice componets "MD Data Access", "Remote Machine Debuging", "Frond Page Server Extensions" and "Visual InterDev Server" as I did in win2000). Now after starting ...
Seek statment on very large file
GJCV -
9 Oct 2006 2:07 PM - 5 messages
I would like to use something like "Seek [#]filenumber, position" (VB5 Pro) on a file of ~3GB. In this statement Position should be a long integer (range 1 – 2,147,483,647), and my file is longer than this range. Any ideas for a ...
User-friendly tool to graph data?
Vincent Delporte -
9 Oct 2006 1:33 PM - 8 messages
Hi I've taken a look at components to chart data, whether MS Chart or bigger tools like Crystal Reports, but they're not exactly what I'm looking for. Ideally, I'd like users to be able to open a data source (SQL server ...
Problem in Writing Data in MSWord in vb6.0
Rakesh -
9 Oct 2006 11:05 AM - 2 messages
Hi all, I want to prepare a report in vb with the help of MSWord.I am drawing a table at run time in word but there are 31 columns in table ,only 13 or 14 columns are displayed and rest are cutoff from the page. ...
For next loop
jcrouse1 -
9 Oct 2006 12:31 AM - 16 messages
I am running a bunch of If...then...else statements inside of a for...next...loop. If on of the statements is true I want to increment my counter (restart at the top of the loop) and process the logic ...
IDispatch Interface
Jim Carlock -
8 Oct 2006 11:18 PM - 40 messages
Anyone here have some information about what an IDispatch Interface exactly is, and how to tell if a file exposes such an Interface, and if this something doable within VB? I've taken a look through a few DLLs, specifically some data- ...
Visual Basic 6.0 SP5 buy
umeshu7 -
8 Oct 2006 10:43 PM - 19 messages
Hi, I wonder if anybody can help. My son just started Programming course at school and they use Visual basic 6.0. They are currently using SP5. i want to buy exactly the same version, so that he can work at home. ...
How to get info from a network at work?
DORI -
8 Oct 2006 8:15 PM - 6 messages
Hi All, I have made an application using VB6 SP6 on my XP computer. The application stores several data related to medical imaging tests performed in a radiology department. The application requires the operators to enter the patient identification data (including type of exam, patient name, ID number, ...
uncleared code
vijaiyanb -
8 Oct 2006 1:05 PM - 6 messages
please explain the following code Dim rt As String = "{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}\viewkind4\uc1\pard\qr\f0\fs20 " ...
Visual Basic on Vista: try not to laugh
jameshamilton777 -
8 Oct 2006 8:39 AM - 28 messages
Supported IDEs: * Visual Basic 6.0 (supported) * Visual Studio .NET 2002 (not supported) * Visual Studio .NET 2003 (not supported) * Visual Studio 2005 (supported, but will have "compatibility issues" until some nebulous set of post-SP1 fixes ships) Yes, you read correctly..NET 1.1 is deprecated and will not work. .NET ...
|
|||||||||||||||||||||||