IT SOLUTIONS
Your TECHNOLOGY partner! 
-Collapse +Expand
VB Classic
Search VB Classic Group:

Advanced
-Collapse +Expand VB Classic Group Home
-Collapse +Expand Message Board
-Collapse +Expand VB Classic KB
-Collapse +Expand VB Classic To/From
To/FromCODEGuides
-Collapse +Expand VB Classic Study Test
PRESTWOODCERTIFIED
-Collapse +Expand VB Classic Store
-Collapse +Expand Members Only

Prestwood eMagazine

May Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyVisual Basic Classic Board     Print This   

VB Classic Control Usage and Developing Topic

Using VB controls (and developing them).

 

 Show:
New Activity New Threads Oldest Unanswered Most Active Most Read
  


25 Threads:

Add New ThreadRandom Thread

Thread 25 of 25
Thread Starter  

wildbill57
Editing text boxes in PDF with VB !
Hey y'all,I need to fill in PDF files. There is a product available that does thid for the backflow community but I do not have it nor does it do the other half of things I do. (It is not especially user-friendly either.) I do backflow testing and calibrate test kits and pressure gauges. That means filling out forms for county offices with a lot of the same data on them from year to year. Sometimes there are several devices per customer. These are scanned PDF forms from the counties (have to be their original, typed format - computer printed is okay).  Calibration data sheets are currently in Excel - spreadsheets formatted to print out for the customer. I fill these out after a test. Copy and paste tends to lead to errors and boredom. Takes too long too!--> You can guess that I do a lot of typing over - because the data for test reports, calibration sheets, quotes and billing  is not easy to put into the form where it ultimately goes.  It can be stored together, ...
5 years ago
Nothing New Since Your Last Visit
1798
Hits

Thread 24 of 25
Thread Starter  

simelane2003
SSTabs
How do I change the color of the SSTab control in VB. (BackColor and Forecolor don't work)
8 years ago
Nothing New Since Your Last Visit
1982
Hits

Thread 23 of 25
Thread Starter  

Rolly T D
Crystal Repot Control loading problem
I have problem in loading VB application. The error shown is "Class Crystal.CrystalReport of control CrystalReport was not a loaded control class". I have crystal report also loaded in my XP machine., So please get me a solution to overcome this problem.
9 years ago
1 Reply:

Dan
Sounds like a version issue to me. Try deleting the reference to the Crystal ocx and rereferecing the control in your application.
9 years ago
Nothing New Since Your Last Visit
4055
Hits

Thread 22 of 25
Thread Starter  

garypark
Text Files and Text Boxes
Hello, , I am sure that this is going to be a simple problem to fix, but I have just started a very steep learning curve with Visual Basic 6 in that I have to alter a program that has already been written, and I am a complete novice to VB., , What I need to do is to read in a text file which has multiple lines. The information that is read in then has to be displyed in a text box for the user to read. i.e. one line in the text file should appear as one line in the text box. Is there a simple way of achieving this, or can someone point me in the right dircetion for finding a solution., , Thank you for your time., , Gary Park
9 years ago
Nothing New Since Your Last Visit
1194
Hits

Thread 21 of 25
Thread Starter  

Alex Diogo Moreira
OleDb or ODBC? Why to use one or another one?
Why to use one or another one?, , Since already I am thankful, consideration
9 years ago
1 Reply:

wpantoja
From a Visual Basic point of view, you will find that using OLEDB is a much easier implementation task then talking directly to ODBC. OLEDB, and more specifically, ADO is a COM-based data access control that is very easy to use in Visual Basic, Visual Basic for Applications, and VBScript., , If you are concerned with performance, then interfacing directly with database connection libraries (such as DB-lib for MSSQL) would be the best choice. Ho...
9 years ago
Nothing New Since Your Last Visit
1701
Hits

Thread 20 of 25
Thread Starter  

NewbCoder
Keystroke capture
I need a function that either disables every keystroke, and keystroke combination, other than keystrokes that I specify, or captures the keystrokes and sends them to any desired function. Any help is appreciated. Thanks in advance
9 years ago
1 Reply:

cheddar
the form keydown event is what you want. Set the form KeyPreview to true and this event will capture the key events first. From this event you can check the key that is down and make the decision about what function to call. You can then set the keycode to 0 to cancel the keypress.
9 years ago
Nothing New Since Your Last Visit
2184
Hits

Thread 19 of 25
Thread Starter  

fig000
Error: Control disconnecting from its clients
Hi,, , I'm getting an error that seems to be random. In the app several data controls are refreshed. The first time this process occurs one of them causes the following error:, , "The object invoked has disconnected from its clients", , Oddly, once the error occurs the first time, the same process of refreshing data controls works fine., , I've researched this on the net and found several similar circumstances with various other controls: embedded excel controls, crystal controls, etc. It seems all of these problems occur using Windows 2000, NT or, in my case, XP. These apps always work on earlier versions of windows., , The closest I came to a solution was something having to do with fixing a crystal dep file but that doesn't address my problem., , Any ideas would be appreciated., , Neil
10 years ago
Nothing New Since Your Last Visit
1077
Hits

Thread 18 of 25
Thread Starter  

thecrazedmonster
MsgBox
I am in need of some help with the MsgBox. At work we use Excel and I have a button that will clear certain Cells when you click on it, after you click on the button the MsgBox popsup and ask if your sure, I cannot get the "No" button to work. If you need more info plz e-mail me:, , [EMAIL]thecrazedmonster@yahoo.com[/EMAIL] Confused
11 years ago
3 replies. Last post:

Dante
Fisrt of is the ans variable declared as a integer, if so try this code, it just might work., , if msgbox("Are You Sure?",vbQuestion+VbYesNo) = vbYes then, , delete cells, , end if, , Or maybe you can set the buttons to vbOkCancel and then try to use the vbCancel = true statement in your if statement. Geek Alert!
10 years ago
Nothing New Since Your Last Visit
1453
Hits

Thread 17 of 25
Thread Starter  

Vikas Athavale
Click to dial a phone no.
I am displaying customer details viz., , Name, telephone no, address etc, , When clciked on a row (og the grid having customer details) i want to dial the telephone number displayed., , I am using mshflexgrid and I know mshflexgrid1textmatrix function to fetch telephone no., , I want to know the function which will dial the telephone no i wil pass on as parameter
10 years ago
2 replies. Last post:

Dan
You should be able to reference the TAPI library and use the COM interface. There is also a telephone COM interface available in the MS speech SDK.
10 years ago
Nothing New Since Your Last Visit
1238
Hits

Thread 16 of 25
Thread Starter  

fig000
Masked Edit control problem with XP
Hi,, , I have a vb6 app that runs fine under windows 95 to windows 2000. I've been testing our applications with windows XP and have found that the masked edit control in this particular application is displaying some strange behavior: It is black, making the black text unreadable. If I outline the text, it's visible but just barely. Do I need a new version of the ocx? Do I need to use a regular text box? Is there a fix for this?, , Thanks,, Neil
10 years ago
Nothing New Since Your Last Visit
872
Hits

Thread 15 of 25
Thread Starter  

MGNew@VB
I need HELP ... PLEASE!!!!
Hi, my name is Mary and I need some assistance with my VB college class project. This is a new arena for me and I am having some difficulty. , , When I am in the classroom I can get through the projects because I have helpe from the professor or another student but I am on my own right now and cannot get this program to run. , , I want to learn what it is that I need to do, but something is just not clicking for me with this class. I am beginning to think that at my age I am just not going to get it., , I have a calendar project and I am having trouble getting through the code to get it to work., , If someone could lok at my projuect and tell me what I am doing wrong I surely would appreciate it. Boxed In , , Please let me know ... thanks for listening.
10 years ago
1 Reply:

Angel
Mary, , You would get a better response to this query if you asked in the VB forum. Common mistake lots of people make, but many users only surf the forum that relates to their field of expertice. :)
10 years ago
Nothing New Since Your Last Visit
1116
Hits

Thread 14 of 25
Thread Starter  

Vikas Athavale
Show DtPicker as blank
Thanks for great help rpovided by you., , I am displaying order date and time using DtPicker., , I want to show spaces / blank as default value of DtPicker , , How shall I do it ?, , With regards, Vikas Athavale
10 years ago
Nothing New Since Your Last Visit
1228
Hits

Thread 13 of 25
Thread Starter  

Vikas Athavale
Sort the data in MshFlexGRid when clicked on Heade
Dear All, , I am always getting nice repsaonse from you., , I am displaying certain data in a mshflex grid., , I want to do 2 wonderful thngs.., , 1. When user clciks on header / titel of a column in MshFlex grid, I want the data to be sorted in the order of that column, , 2. How do I keep the header at the top even when user scrolld down ?, Normally when user scrolls down the header / title of the column is not visible ., , With regards, Vikas Athavale, vikaspa@vsnl.com
11 years ago
Nothing New Since Your Last Visit
1208
Hits

Thread 12 of 25
Thread Starter  

Vikas Athavale
MshFlexGrid ....Display Totals at the change of a
I Am using MshFlexGrid to display various summary details, , I want solution for following, , 1. I can merger a particular Column but I want to merge 2 columns and display the data accordingly., , 2. Dispay totals, Say I am displaying Customerwise Account receivable. I want to display TOTALS at the change of Customer., , I FOUND THIS FORUM AS BEST FORUM FOR THE ACCURATE INFORMATION AND PROMPT RESPONSE.
12 years ago
4 replies. Last post:

vikaspa
Please help me..., , Send me code so as insert summary totals as the customerchanges in flexigrip, , Thanking u in advance..., , Vikas Athavale
11 years ago
Nothing New Since Your Last Visit
1810
Hits

Thread 11 of 25
Thread Starter  

Vikas Athavale
Open Combo box when "ON FOCUS" occurs
I want to open a combo box when user focuses on combo box., , I am developing a project in which the product groups are listed., , When user focuses on combo box for the rpoduct group, I want the combo box to open dynamically and filter the detaisl as user types., , Is this possble ?, , If so how shall I do it ?, , Please help ..., , Thanking you in advance, Vikas Athavale
11 years ago
Nothing New Since Your Last Visit
932
Hits

Thread 10 of 25
Thread Starter  

blkshirt
Flexgrid problems
This is my first post here, hopefully not my last., , I don't understand how to input data into a flexgrid, and add a row to the flexgrid table., , Another problem I'm having is that I don't understand how to input the data that I need into the program.. The data is in a .rnd format. I use a form and a code module... I'll keep them seperate..., , Thanks for the help.., , blkshirt, , frmStats, Private Sub Form_Load(), , , , 'Opens up a dialog box where the user selects the data file that is used for input., 'Only files of with a file extension of .rnd can be used., , cdOpenFile.DialogTitle = "Open the DEMO random Data File" '** set title for the dialog box, cdOpenFile.FileName = "DEMO2001.rnd" '** identifies file on my pc, cdOpenFile.Flags = cdlOFNFileMustExist '** allow existing files only, cdOpenFile.Filter = "All Data Files (*.rnd)|*. rnd|All Files (*.*)|*. *" '** set filter of files to display, cdOpenFile.CancelError = True...
11 years ago
Nothing New Since Your Last Visit
885
Hits

Thread 9 of 25
Thread Starter  

golfnutt8
Combo Boxes
Ok lets see if I can tell you my problem without exploding., I want to be able to choose an Item from my combo box and then based on my choice display a label telling me the full name of the choice. The Combo box will display abrev. names like Chris instead of Christopher or Dept instead of Department., Then I want a label to say: Dept = Department. Is this possible?, I hope I was clear[*]null
11 years ago
3 replies. Last post:

RobZ
See if This Works: , 1. Create a Text File Containing all Abr & Explanations, DEPT ; Department, CLS ; Clear Screen, . ; ., Blah ; BlahThen Read the pairs into an Array, , Dim prs() , Open sFile For Input As #99, cnt = 0, While Not EOF(99), cnt = cnt + 1, Line Input #99, myLine, LineArray = split(myLine,";"), redim Preserve prs(2,cnt), prs(0,cnt) = lineArray(0), prs(1...
11 years ago
Nothing New Since Your Last Visit
1329
Hits

Thread 8 of 25
Thread Starter  

david_p0c79
frame control?
Hi, I have just started to learn visual basic so I have a very elementary question. Basically, the 4 frame controls in the code below are behaving like a single frame. i can only get one option at form_Load() selected - the last one in the list i.e Option12.Value = true, How do I get 4 separate frame controls to behave as 4 separate frame controls?, , Private Sub Form_Load(), Label1.Caption = "THIS IS A TEST LABEL", Label1.Alignment = vbCenter, Frame1.Caption = "Backcolor", Frame2.Caption = "Forecolor", Frame3.Caption = "Alignment", Frame4.Caption = "Border", Option1.Caption = "Red", Option2.Caption = "Green", Option3.Caption = "Blue", Option4.Caption = "Transparent", Option5.Caption = "Red", Option6.Caption = "Green", Option7.Caption = "Blue", Option8.Caption = "Black", Option9.Caption = "Left", Option10.Caption = "Right", Option11.Caption = "Center", Option12.Caption = "None", Option13.Caption = "Fixed Single...
11 years ago
1 Reply:

rcbasie
Hey David!, , The thing you've done here (i think) is to place the controls on your form in the wrong sequence. If only one of the group of twelve options will select at once, then the computer thinks that these are each on of twleve, instead of 4 groups of four. Try starting your project again, and doing things in this order:, , 1)on you from, add the 4 frames, size them into the right positions and give them the names you want., , 2)Add four...
11 years ago
Nothing New Since Your Last Visit
1385
Hits

Thread 7 of 25
Thread Starter  

Tulip123
Background Image Control
I am developing an application using Microsoft Visual Basic 6.0. I need an image control for displaying a background picture of a form, on which other smaller images and shapes (such as circles or lines) are displayed and moved by the user. The problem with the basic VB image control is that its rendering capabilities are not sufficient, and moving other images upon it during runtime results in a very disturbing "flickering" effect., , I thought of using the GTImage ActiveX control, but when I tried to use it I couldn't move it to the background and place other images or shapes on top of it. , , Is there any way of doing that using this control ? Are there any other image controls I can use, or any other ideas on how to solve the problem ?
11 years ago
Nothing New Since Your Last Visit
944
Hits

Thread 6 of 25
Thread Starter  

DW
Datagrid cannot initialize data bindings
I have a VB app that uses a datagrid to display a recordset from a SQL Server DB. It's a 3-tier app with the user IF calling a function in a dll that returns the recordset with the following code:, , Set DataGrid1.DataSource = PD.LoadGrid(1, sConnect, 0), , The app and dll have been loaded on the DB server and on a user's system that accesses the DB over the network. The dll is registered on both. The app runs fine on the user's system but when trying to run it directly on the server, I get a msgbox with "Cannot initialize data bindings" and Datagrid as the title. The MSDATGRD.OCX file is registered on both machines. This is a problem because many of their users will run the app from a Terminal Server session to the DB server. Any ideas why this is happening?
11 years ago
Nothing New Since Your Last Visit
3851
Hits

Thread 5 of 25
Thread Starter  

mugs
Showing video in a circle
Hi there,, I am new to VB and am trying to display video in a circular object. Can anyone tell me how/whether I can do this? eg what tool to use and how to associate the .avi or .mpeg file with it., Thanks.
11 years ago
1 Reply:

Merrion
Hi,, , If you are able to get a window handle [i](hwnd)[/i] for the window that is displaying the video you can crop that window to a circular shape with the API calls [b]CreateEllipticRgn[/b] and [b]SetWindowRgn[/b]..., , , '\\ Declarations, Declare Function SetWindowRgn Lib "user32" Alias "SetWindowRgn" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long, , Declare Function CreateEllipticRgn Lib "gdi32" Alias "CreateEll...
11 years ago
Nothing New Since Your Last Visit
1218
Hits

Thread 4 of 25
Thread Starter  

Hoosier
VBA Help Needed
I need help with VBA. I was going to try and see if there were any experts out there who could assist a beginning programmer.
11 years ago
Nothing New Since Your Last Visit
1022
Hits

Thread 3 of 25
Thread Starter  

gholkar
Visual Basic dll in Delphi
I need information on following points :, , 1. I am not able to use the DLL created using Visual Basic in Delphi. Do I need to incorporate extra settings either in Visual Basic or in Delphi?, 2. Can we make Visual Basic to use Pascal Calling Conventions? , , I will be highly obliged. Thanks in advance...!!!, , With Regards,, Mangesh.
11 years ago
1 Reply:

Scott
(Reply posted to duplicate message in [b]Delphi VCL/CLX[/b] forum.)
11 years ago
Nothing New Since Your Last Visit
822
Hits

Thread 2 of 25
Thread Starter  

tocobern
Run time error 5
My application run when user log onto the network. It work okay on NT machines but when running Windows 98 on a laptop I get a message "Run-time error '5' Invalid Procedure Call or Argument". Then the program fails to continue. Funny thing is that after windows has booted up and settled down, if I run the application again it works fine, no errors. This error is driving me mad! I've tried verious updates and *.dll's but no luck. Any ideas?? Big Grin!
11 years ago
Nothing New Since Your Last Visit
935
Hits

Thread 1 of 25
Thread Starter  

SB
Flex Grid behavior
Hi all,, , When a MS flexgrid has the focus, pressing PageUp/PageDown makes the current cell to be changed. I'd like to change this behavior, I'd like just to scroll up/down through the grid without changing the current cell., , Does anyone know how to accomplish this?, , Regards, , SB
11 years ago
Nothing New Since Your Last Visit
1027
Hits

New Thread
-
  Load Time=1 seconds.
 
Print This
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


435 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join now. It's free!
Show More...


©1995-2013 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech