|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic General Discussionmicrosoft.public.vb.general.discussion
Insert an Icon Into a FRX
Larry Rebich -
17 Jun 2006 11:30 PM - 12 messages
I'd like to replace an icon in an frx using VB6 code. Ideally the VB6 code would open the frx, load the icon from disk, then store the icon into the frx and close it. Something like: Dim Frx as VB.BinaryForm ...
How Can I Get Excel's Default Data File Location?
jim evans -
17 Jun 2006 10:31 PM - 8 messages
I need to know a user's Excel default data file path/location. I understand it's possible to use VB to access something called Excel's Object Model to get things like this. Anybody have a line of code handy that does this? If not, can someone ...
Simple project... Explorer toolbar button to toggle the "show hidden files" setting?
Noozer -
17 Jun 2006 9:31 PM - 2 messages
I'm thinking that this is something that a VB6 programmer may be able to whip up in a few minutes... I'm hoping to find a way to add a button to my Windows Explorer toolbar that, when clicked, would simply toggle the ability to see hidden files and ...
MIXER_SETCONTROLDETAILSF_VALUE
Lorin -
17 Jun 2006 7:38 PM - 3 messages
What is the value? Cannot find anywhere API help, MSDN etc. ...
I think I'm missing something!
Mike Williams -
17 Jun 2006 7:23 PM - 11 messages
In a function I have written I need to check the Object that is passed to it as one of its parameters to see if it is a Form or a Picture Box or a Printer. I can do it, but in order to do so I need to use two different ...
Options Dialog - I've completely lost my mynd!
MyndPhlyp -
17 Jun 2006 11:55 AM - 5 messages
Two quickies (I hope). The default Options Dialog form comes up with a TabStrip containing 4 tabs, four PictureBoxes, and four Frames. The third through fourth PictureBoxes and Frames are not visible anywhere on the form layout but can be referenced ...
How to make a program which would move the mouse cursor...
cosva -
17 Jun 2006 11:16 AM - 6 messages
Hi, I have VB.Net and have worked with it, so I gnow some stuff in general. It woud be great if someone could help me, or give me some advice. I'm visiting a web page, so all the buttons and so on are always on the ...
filter many fields with checkbox
dokter cinta -
17 Jun 2006 8:39 AM - 3 messages
i have good experience with vb but i have some serious problems i have created a mysql with table dss but i`m confused about this i think many people will see this problem in future this is the table of dss ...
Prevent fireing in a Leave Event
William E Voorhees -
17 Jun 2006 3:31 AM - 16 messages
I have code (using the leave event) in a textbox which prevents the user from leaving the box if it is blank. I would like the user to be able to click on the [close] button of the form and close that form without firing ...
Accessing of variables problem
AK -
16 Jun 2006 11:26 PM - 8 messages
Hello, Iam having problems figuring out public vs private variables and accessing them from various places in my program. In particularI have a variable called strFileName that is assigned a value in clsFileOps. In the General Declarations the Class has ...
Remove selected item from a listview
Mike Johnson -
16 Jun 2006 9:09 PM - 5 messages
How do I remove a item that's been selected from a listview? I'm using Visual Basic 2005 express edition. Thanks ...
Weird floating point problem
Mark -
16 Jun 2006 7:26 PM - 4 messages
Hi, A friend is doing a stats class, and he told me about a problem the lecturer was harping on about. He described it as the floating point problem. However, he hasn't really explained it in detail, and I have been both ...
Excel Advabced Filter Scripting Help
Jason -
16 Jun 2006 7:09 PM - 2 messages
I'm new to scripting within Excel, and I am wondering if it is possible to write a script for an Advanced Filter where the Criteria Range is itself a variable. I would like to filter the data in a spreadsheet with the data in ...
Installation Error
wxforecaster -
16 Jun 2006 6:37 PM - 2 messages
I have a user running XP with a 64-bit processor that receives the following error when installing our app. What's interesting is that I have dozens of users with 64-bit processors (including my own) that installed the standard ...
Date Photo Taken
Help me -
16 Jun 2006 4:14 PM - 2 messages
Hello all Using VB 6 how do I obtain Date Photo Taken for a JPG ? Thanks ...
SQL help
JP Bless -
16 Jun 2006 4:10 PM - 4 messages
I have a long date field that stores Date like "6/14/2006 11:30:00 AM" I would like to query this field as short date... like ssql = "Select DateX from TableY where DateX between 6/14/2006 and ...
Exception Handler
Dan Johnson -
16 Jun 2006 3:06 PM - 5 messages
Our app is generating an exception when closing in XP (no problems in all other WIN versions). For puposes of getting a revised version of our app out to a customer who won't wait until we figure out which control is ...
Sort items twice...
Ivan Debono -
16 Jun 2006 2:47 PM - 9 messages
Hi all, I've got a collect of objects that describe appointments. An object has the following properties: StartDateTime - appt start EndDateTime - appt end Order - appt column in the collection StartRow - the appt's time starting slot based on the start time ...
generic text
FreeDBA -
16 Jun 2006 1:42 PM - 2 messages
Bonjour, J'utilise un logiciel pour piloter une imprimante à ticket. Avec ce logiciel, je dessine un ticket avec des lignes d'articles et le logiciel me genere un fichier texte avec tout les caracteres d'echappements pour l'imprimante, a partir du logiciel le ticket ...
Using the CHR function with Chinese Language Windows
Randy -
16 Jun 2006 1:38 PM - 11 messages
I have an VB6 application that establishes serial communication with our hardware by outputting a CHR(1). We sold some hardware to China where they are using Simplified Chinese Language and sending the CHR(1) does not work. ...
SysInfo or GetVersionEx?
MyndPhlyp -
16 Jun 2006 12:13 PM - 6 messages
To determine the platform (Win95, Win98, WinME, WinNT 3.51, WinNT 4, Win2K, etc.), is it better to use the SysInfo control or the GetVersionEx API call? Also, is there an up-to-date map somewhere for parsing out OSPlatform and ...
Migrating reports help
Rachel -
16 Jun 2006 11:01 AM - 6 messages
Hi, I have been given the task of migrating complex reports from one site to another. These reports have a vb2 front end, on top of crystal reports, which extracts data from a Sybase database. Unfortunately I do not know visual basic but i have been informed that ...
TCP/IP Client message area
jerry_ys -
16 Jun 2006 7:02 AM - 11 messages
Can anyone help me with an example to capture the client data area sent from a server over the internet to a client exe, using a separate vb6 program running on the same machine as the client. Thanks in advance. ...
how to kill a running process in vb2005
SpecialK -
16 Jun 2006 4:12 AM - 2 messages
How do I kill a running process in vb2005? I'm coming from a scripting background and can do this with a line of code in a batch file or vbs, but can't seem to find an example for vb2005. ...
Avoiding Overlapped Text
wxforecaster -
16 Jun 2006 2:08 AM - 10 messages
Not sure if this was a graphics question or a general one so I apologize in advance for any unintended cross posting. I have a blank DC (device context) onto which I am placing text (City names) using the TextOut API. No problem there. ...
64bit Development Computer
Ron -
16 Jun 2006 1:33 AM - 4 messages
I wish to purchase a 64 bit development computer running XP Pro (32 bit I assume)to support my current VB6 applications. Will the exe's produced run on 32 bit platform end user computers? ...
ADS_Secure_authentication for password verification
vm -
16 Jun 2006 1:26 AM - 4 messages
I have vb6 code to change local passwords for accounts on member servers {NT, 2k, & 2k3}. A friend had code to "check" domain passwords by using ads_secure_authentication. Basically if the error number returned was anything other than 0 the password was wrong. I was wanting to add this ...
Accurate Sector Count (LBA) using CreateFile/DeviceIOControl
zyborski -
15 Jun 2006 11:00 PM - 2 messages
I am looking for code to accurately establish the number of bytes/sectore on a physical disk but cannot seem to find this anywhere. Unfortunately, most of the API's available provide a rough estimate because they use CHS values and not the accurate LBA value which is what I ...
MSHFLEXGRID
Rick -
15 Jun 2006 10:11 PM - 5 messages
Hi, all. Is there anyother faster way to format MSHFLEXGRID's cell backcolor? It's really slow when you have many rows. I need to set odd rows in light green and even rows in white. So far, I have Iused cellback color property and for this I have to set ...
Visual Basic Freezing Up
Zach -
15 Jun 2006 8:02 PM - 4 messages
Hello, As I copy and paste a group of controls (squares) into a Visual Basic form, my computer freezes up for a bit. This was not a surprise to me. However, as I paste another group of squares onto the form, the lag ...
Sorting control array indexes in order
Zach -
15 Jun 2006 5:58 PM - 4 messages
Hello, I'm making a Visual Basic program with an array of shape controls (squares) on a form. There are going to be hundreds of squares, along with other controls. I'm lining the squares up in columns. So when I ...
This week's critical updates have stopped all of our users from being able to run COM+ components
Rod -
15 Jun 2006 4:02 PM - 13 messages
As you know Microsoft released a boatload of critical updates this week. Well, apparently several of our users applied them on their machines (all Windows XP Pro machines with SP2). Now, none of our applications will work for them!!! We rely upon COM+ components written in VB6 to handle the ...
Q: Is there a way to make a toolbar so it can be moved and docked?
MyndPhlyp -
15 Jun 2006 2:30 PM - 9 messages
Like the subject says, is there a way to make a toolbar so that it can be moved and docked to any border of the main form? Heck, I can't even find a way to enable the drag handle normally found on the leftmost edge. Somebody ...
Getting current file name and Line number
pukya78@gmail.com -
15 Jun 2006 1:43 PM - 4 messages
Hi, I am trying to get the current file and the line number which is getting executed. I used: MessageBox.Show(New StackTrace(New StackFrame(True)).GetFrame(0).GetFileLineNumber) which gives me the line number. Later on, I was trying to write a generalized routine, so that I can ...
Record Navigation and open connection
Sandy -
15 Jun 2006 1:38 AM - 4 messages
Hello - I have a form with navigation buttons and a few combo boxes and textboxes. I establish a connection and the user can happily navigate through the recordset for as long as they like. (I am using VB6 and Sql Server stored ...
Excel dll
Charles -
15 Jun 2006 1:22 AM - 3 messages
Is there a dll that will allow you to create excel files on a server that does not have excel installed in VB6? I found an article on how to create an excel9.dll but it only seems to work ...
Monthview problem
SteveC -
14 Jun 2006 9:56 PM - 4 messages
I've made a simple little calander that I have sitting on my desktop.I use the monthview control with two months showing,1 row 2 cols,and a couple of labels showing local time and another city's time.The one ...
vbObjectError
Bryan Dickerson -
14 Jun 2006 8:13 PM - 14 messages
I have some old code in a program that is a localized error handler. For the most part it has always worked, but there have been and are currently a few 'issues' with it. Before I go making wholesale changes to it ('cause ...
How do I load HTML into an instance of SHDocVw.InternetExplorer?
Dick Sutton -
14 Jun 2006 7:15 PM - 5 messages
I am so close, yet oh so far! Here's the problem: I want to load a string variable that contains HTML into an instance of SHDocVw.InternetExplorer. Here's what I have so far: Function ShowMonTaxes(ByVal bTax As Boolean) As Integer ...
untrappable stack overflow error -- VB IDE disappears -- sheridan active tool bars causing error?
Matt -
14 Jun 2006 7:04 PM - 2 messages
This error occurs in the VB IDE and the compiled version of this app. I have a form with a Sheridan Active Toolbars control and a listview. I've added a rightclick menu to items in the listview. If I right-click on a listview item and bring up the menu, move my mouse ...
Controls.Add a UserControl?
Anthony -
14 Jun 2006 6:47 PM - 2 messages
I have a usercontrol as part of a project (and will wrap right into the exe). I want to be able to add instances using the controls.add command. It is asking me for the ProgID. Any idea where I might find that for a User ...
Reading test file
Joy2006 -
14 Jun 2006 4:42 PM - 8 messages
Can someone post a sample code for this: I want to read a txt file which has about 15 lines. I want to read each line and assign that as an element of the string array. Thanks in advance. ...
Correct Registry Hive to Use
Dan Johnson -
14 Jun 2006 3:20 PM - 26 messages
We're currently saving the user's settings for our app to HKEY_CURRENT_USER. Do I understand correctly that if we want to make our app available to multiple users on one box that we should instead be saving this information ...
Run-time error '5'
Subbaiah -
14 Jun 2006 1:50 PM - 4 messages
Hello, We are using visual basic 6. In this application we are using our own ocx command button. When i create the exe , i am getting the following error The Title of the message box : ChelcommandButton Message : Run-time error '5': ...
RTF to WORD using VB6
Bart Steur -
14 Jun 2006 12:24 PM - 2 messages
I've a RichTextBox Control in my Vb6 app. Now I want to place this text in a Word Document using the Word Object Library. How can I get Word to interpret the RichText coding so the text shows Bold, ...
Activex .exe registration
BAHarrison -
14 Jun 2006 11:06 AM - 11 messages
I am writing a program which uses an activeX .EXE server called MBserver.exe. When I try and install the program (using installation made with the package and deployment wizard) I get a pop up saying that an error occured whilst registering MBserver.exe. If i click ignore and manually ...
Word Object Library
Bart Steur -
14 Jun 2006 7:55 AM - 3 messages
What is a good source to find out how to use the Word Object Library in VB6? Esspecially for opening templates and palcing text at bookmarks or replacing fill-ins? Bart ...
VB broken in Vista
Dan Ritchie -
14 Jun 2006 7:16 AM - 13 messages
In VB5, opening just about any component returns the following error Error accessing the system registry. ...
Accessing a 'column' or 'row' in an array
den1s -
14 Jun 2006 3:27 AM - 2 messages
In VB, how does one access an entire column or row. Let's say I have a 5x2 array and I would like to access all the data in the 1 column (i.e. (1,1 2,1 3,1 4,1 5,1). ...
How to print report in Fast (DOS) mode on DMP Printer.
Jem -
14 Jun 2006 3:11 AM - 4 messages
Hi all, Can anyone suggest me the way as how to print report created with DataReport or Crystal Report control (I am using CR8) in Fast printing mode on a dot matrix printer. I am developing a software for salary automation, everything is ...
Listview Selections
Robert -
14 Jun 2006 1:52 AM - 2 messages
I am using VB6.0 SP5 Using the Comctls version 5. WinXP Pro I have multselect = true how can I find the selected items from the listview? ...
Editing individual cell's character length
Kreegor -
13 Jun 2006 11:57 PM - 10 messages
Hello. I am currently using a vsflexgrid to show a lot of different fields from a database. I have also made it editable so the data in the cells can be changed and stored away in the database. My question is, ...
VB6 Activex DLL 32bits on 64bits Windows 2003 Server
George -
13 Jun 2006 9:30 PM - 2 messages
Hi, I have few VB6 Activex DLLs 32bits that must run on 64bits Windows 2003 Server. I am using these DLLs in my ASP pages. The DLLs are registered, but when I call server.createobject I get Microsoft VBScript runtime error '800a01ad' ...
Property Text in XXX could not be set.
greg -
13 Jun 2006 9:13 PM - 2 messages
what does this mean? Property Text in txtLogPath could not be set. i opened a project. and when i run it i get this. thanks ...
change file summary info via DSO
bidalah -
13 Jun 2006 8:29 PM - 3 messages
Hi, There have been other postings on this subject, but as far I can offered a solution. I am trying via vb.net, to edit the summary info in the properties of certain file. If the summary information is not NULL, I can add to or ...
Generate VB class from SP?
Lisa -
13 Jun 2006 8:22 PM - 6 messages
Hi. Are there any free applications out there than can generate VB classes from SP's? Thanks! ...
How to create SQL Server Express server using VB?
ianicbass -
13 Jun 2006 5:03 PM - 5 messages
Hello All, I'm new to this forum. But anyway, my question is, how do I create a SQL Server Express server using VB. For example: COMPUTERNAME\SERVERNAME. How do I create the SERVERNAME programmatically? Is there a way to do this using ADO? or SQL-DMO? What ...
pdf converter from Microsoft??
Rick -
13 Jun 2006 4:05 PM - 25 messages
Hi, guys. Since ADOBE(now macromedia) has released the translation code to create pdf files, I wonder if Microsoft has taken advantage of this and made a pdf converter dll (freeware) for VB Developers. If not. I need such converter for a VB6 application. Any help? ...
Determining useable area on screen w/ VB6
MyndPhlyp -
13 Jun 2006 2:54 PM - 18 messages
Probably an old chestnut but I'll venture forth nonetheless. How can I determine the useable area on the display? Screen.Height and Screen.Width gives me the full screen size (in twips) but it doesn't take into consideration things like the app bar/systray. I want ...
How do I open a PDF file from a visual basic screen
Peri -
13 Jun 2006 2:07 PM - 4 messages
Dear All, Can anyone help me out to open a PDF file from a visual basic 6.0 form? Thanks and Regards, Peri ...
Set Current Cell of Datagrid on Form Load
AK -
13 Jun 2006 1:17 PM - 3 messages
I have a data grid on my form. Wen I load the form I would like to have the active cell be ar row 3 col 4. How do I set this in code? Thanks AK ...
Interacting with another application
prayag -
13 Jun 2006 11:42 AM - 6 messages
Hey, I have a project in which i have to interact with another application written in vb. Now it has some combo boxes which i have to fill and a button i have to click. I also have the code for this application and the modules and the form is ...
Problem in running 32 bit vb application on 64 bit os
Rakesh -
13 Jun 2006 10:28 AM - 2 messages
Hello I have developed a project in visual basic6.0 and now i am running this application on 64 bit OS but when i am running the setup of this project on a 64 bit OS then the message displayed is ...
manually re-order within a listview
Bart Steur -
13 Jun 2006 9:27 AM - 6 messages
Is there an easy way to re-order rows in a listview (report mode) manually. I have a listview control and an 'up' button and a 'down' button. After selecting a row in the listview and pressing the up or down button, ...
vb6 and .net 2005
uziels@gmail.com -
13 Jun 2006 8:57 AM - 4 messages
did someone know how i can run vb6 progs on the .net 2005 platform ? may i can programm in vb6 with the .net 2005 ? ...
Need help to Open a PDF document using VB codings
Valli -
13 Jun 2006 7:32 AM - 2 messages
Hi, I want to open a PDF doument in the web page by clicking a menu in the MenuMDI screen using VB 6 codings. Can anyone please help me out.. Regards Valli ...
How can I detect Ctrl and Shift Keys
Peter -
13 Jun 2006 7:26 AM - 6 messages
Dear All I like to detect whether the user has used Ctrl and/or Shift Key together with the Mouse click on a checkbox: Is there a way to combine the click event with the keydown event to achive this? ...
Compiler for compiling 32 bit to 64 bit code writen in visual basi
Rakesh -
13 Jun 2006 7:05 AM - 3 messages
Hello I have developed a project using visual basic 6.0 for 32 bit windows, but now i want to run this project on 64 bit windows. But i am not able to run it directly because the project is for 32 bit window. ...
PLC communication: ActiveX? OPC?
Michael Ray -
13 Jun 2006 3:22 AM - 7 messages
What recommendations do you have for talking with pretty much any brand of PLC you come across (preferably Ethernet/TCPIP) without having to do anything with the PLC itself? Is it still having a driver for each one? This would be for VB6 EE unless your suggestion also requires the use of ...
Print 2 Screen in VB6
DACCS -
13 Jun 2006 3:22 AM - 6 messages
What is the VB6 method needed to print to screen? I want to print a counting index to screen to see the incrementing process. Example: For I = 1 to 5: Debug.Print I: Next I The above do not work, just get a blank form. The simple program only ...
Crystal Subreport not when used with VB Report Viewer control
Jason -
13 Jun 2006 2:03 AM - 2 messages
I have a Crystal report that includes 5 sub reports. The report works correctly (all subreports return the correct data) when viewed in the VS report editor, when viewed with Crystal Reports XI and when used with the B.O. Enterprise server. ...
Hide Desktop Icons not Desktop
Norm -
12 Jun 2006 10:54 PM - 13 messages
I hope this question makes sense, but I would like to be able to hide the desktop icons, leaving the right click context menu available. If I get the handle of Progman and then use ShowWindow it hides the icons, ...
Cannot get my infopath.xml.dll to load
Tim Larson -
12 Jun 2006 10:22 PM - 3 messages
I am coding a program that references the infopath.dll and infopath.xml.dll from the com with import statements. My code shows no errors and I can see these objects above in the object browser. However when I run a debug I get ...
question about exe format
a -
12 Jun 2006 8:48 PM - 2 messages
Hi, How many exe formats are there for all the Microsoft OS? I know NE, MZ, PE. any more? Thanks ...
Outlook does not pass keyboard events to an OCX
ronnie -
12 Jun 2006 7:50 PM - 2 messages
Hi, I am developing an OCX that is to be embedded on an Outlook custom form. I am running into an issue of not being able to receive keyboard shortcuts events from Outlook such as: Ctrl-A, Ctrl-C Ctrl-V ...
Change the backcolor for selected Characters.
sid -
12 Jun 2006 6:23 PM - 3 messages
I am trying to change the backcolor of text in an RTF using this example: [link] ...
How Can I Tell if A File Modification is Complete?
jim evans -
12 Jun 2006 4:41 PM - 13 messages
I have a situation where I must modify a file and then do something else based on the modified file. How can I be sure the modification is complete before taking the next action. Please only suggest a method you have actually used. I have tried a ...
Trying to get elements from a web page via VB
Newbie@gmail.com -
12 Jun 2006 3:42 PM - 7 messages
I am attempting to write a little utility to check my mail at Yahoo. I found an older posting that shows how to get the elements from a web page via VB using the browser control. When I tried to use this code, I have problems. ...
Dynamic Range/Chart
ballyb -
12 Jun 2006 3:33 PM - 2 messages
I have a program that will generate a chart using a variable range up to a length of 17 cells. If the length is 18 or greater, I get a "Run-time error '1004': Unable to set the values property of the series class." ...
DAO Vs ADO
Rick -
12 Jun 2006 2:54 PM - 14 messages
If you were to connect a recordset to a DAO, database, which is faster DAO o ADO?(in connection and iterations) ...
TreeView Control
Lou -
12 Jun 2006 2:49 PM - 4 messages
How can I grab the current state of the TreeView Control before I rebuild it. I want the new view to match the view before I rebuild it meaning which nodes are collapsed or expanded. Louie ...
Linked tables(DAO)
Rick -
12 Jun 2006 2:40 PM - 6 messages
VB6 and DAO 3.51: I have the following code: Set tdLinkedTable = dbTEMPD.CreateTableDef("VinLinkedTable") tdLinkedTable.Connect = ";DATABASE=" & strDBAddr_p & ";PWD=" & strPWD_p tdLinkedTable.SourceTableName = "ExternalTable" ...
getting the path (or folder) for the current dll
Andy Fish -
12 Jun 2006 2:00 PM - 4 messages
Hi all, When my VB6 code is in the form of an executable, I can use app.path to return the directory in which the exe file exists. However, my current project is an in-process ActiveX server, so app.path returns the path to the ...
Put all files in a exe
dsouzaleo -
12 Jun 2006 10:09 AM - 5 messages
Hi People, I want to copy files to the destination computer usng a VB application. But, the files should not be visible to the user, as in all files should be compact in an exe. Can anyone help me in this. ...
How to show crystal report in VB !!
Jem -
12 Jun 2006 9:53 AM - 2 messages
Hi.. I've created a report in Crystal Report 8.0 and saved it to c:\report.rpt. Now after inserting Crystal Report Viewer Tool from Components in a VB Project..I have no idea as how to attach the report ...
FTP
Bill Partridge -
12 Jun 2006 12:55 AM - 2 messages
I want to run an FTP session from within a VB.NEt application to transfer a txt file that has been created in VB.NET I will have a command button on a form that the user must press to use FTP ...
VB 6 app, Access backend insert question
Sandy -
11 Jun 2006 7:53 PM - 8 messages
Hello - I need to insert values into an access database from a form that contains a combobox. That combobox is comprised of a list of last name, first name combinations obtained from tblLoanOfficers which has three columns; LoanOfficerID, LoanOfficerLName, LoanOfficerFName. I need to insert ...
Can someone help me?
atmkoh -
11 Jun 2006 6:06 PM - 4 messages
I am using a command line visual basic I would like to have code that reads in some arguments These arguments are then passed to another program to run. Why is it that it doesnt work when I compile the following? I am hoping ...
http://www.betanews.com/article/No_Fix_for_Critical_Windows_98_Me_Flaw/1149873723
Jim Carlock -
11 Jun 2006 4:22 AM - 6 messages
[link] The full article below. No need to go to the link unless you just want to compare the text. No Fix for Critical Windows 98, Me Flaw By Nate Mook, BetaNews ...
|
|||||||||||||||||||||||