248 Posted Topics
Re: You should add a Microsoft ADODC data control component. In the properties of that control, you need to set the [I]Connection String[/I], the [I]Command Type[/I], and the [I]Record Source[/I]. After you do this, then you need to set the [I]Data Source[/I] Property of the Microsoft Data Grid Control. And that … | |
Re: [QUOTE](rs!Titles(Where(rs!Teacher = teachers.Text)))[/QUOTE] You've put the cart before the horse. Your first step is to open the recordset using a sequel statement string: rs.open ( source, etc., , , ) Your sequel statement will go in the source parameter as a string [CODE] Dim strSequel as string strSequel = "SELECT … | |
Re: That's not c++. That's c. You declare floats as double or single in VB, int as long or integer. I would use text boxes for user input. And then I would suggest using code in a command button click event to draw the lines of your triangle. You don't have … | |
Re: [QUOTE]I need to click on an individual bar to get it's index value. All I can get is value for the first bar on the chart. [/QUOTE] The Microsoft Chart Control doesn't really fit your goals. It's more for a visual representation of data: not for a response to user … | |
Re: Clarification needed. Is that what you meant? How do you forbid size modification of the window? | |
Re: [CODE] Option Explicit Dim cnnADO As ADODB.Connection Dim tbl As ADOX.Table Dim ctg As ADOX.Catalog Private Sub Form_Load() ' Instantiate the ActiveX data objects Set cnnADO = New ADODB.Connection Set ctg = New ADOX.Catalog Set tbl = New ADOX.Table ' Open the database and establish the connection cnnADO.Open "Provider='Microsoft.Jet.OLEDB.4.0';Data Source=practice.mdb" … | |
Re: [QUOTE]unfortunately, after crystal report 11 is installed in my computer, i can't find those 2 items in Project > components and Project > reference... [/QUOTE] If you know the names of them, you can do a search for them using the standard search for file names that comes with Windows. … | |
Re: [QUOTE]i know how to make a simple timer with seconds. but how to put minutes n milliseconds?? it should look like this minutes:seconds:milliseconds[/QUOTE] Using the 'Now' function with VB6 (this is a VB6 forum) gives you the current time. However, this will only give you the time in seconds. Even … | |
Re: [QUOTE]What is the best path forward...[/QUOTE] That should be doable. It would take some work and patience. But with a methodical approach, you could have a much better GUI based program developed from VB6 or VB .NET on an Intel Architecture Machine (32 bit or 64 bit processor). The biggest … | |
Re: You need to set the Cancel Property of the the Common Dialog Control to True. If you do this, then an error will be generated with a value of 32755 whenever the user clicks on cancel. Just set up error checking code [CODE] Private Sub Command_Click() On error goto Click_ERROR … | |
Re: [CODE] Option Explicit Private Const MARQUEE = "This is a scrolling Marquee." Dim intLength As Integer Dim strMarquee As String Private Sub Form_Load() lblMarquee.Caption = MARQUEE intLength = Len(MARQUEE) strMarquee = MARQUEE End Sub Private Sub tmrMarquee_Timer() Dim strFirstCharacter As String ' Find the current first character strFirstCharacter = Mid$(strMarquee, … | |
Re: [QUOTE]If Anybody can Please Help me.........How to do it using VB6/.net[/QUOTE] use the arp command. The arp command is a system command; and you could use VBs Shell command to run it. c:>arp --help Should give you more information. Hank | |
Re: [QUOTE]These are 2 codes I'm now using seperately, because if I put them together they won't do anything.[/QUOTE] Looks like you're making it too hard. Try sticking your second code inside of a timer that's disabled [CODE] ' after your first code ' set the interval property to about 750 … | |
Re: [QUOTE]can any body help me to convert this code from C++ to C[/QUOTE] Sure, I'll help. Let me get you started. #include <stdio.h> #include <string.h> Hank | |
Re: [QUOTE]what i want is there will be a msgbox that will tell theres already "MyName" on my table,[/QUOTE] Don't really understand what you want? If you already have accessed the data, you should already know that the MyName Field exists. [QUOTE]"MyNaMe" or "MYNAME" (have diff Uppercase and Lowercase charater) is … | |
Re: [QUOTE]hi venkat, I am really sorry.I dont mean to irritate u.is func syntax something like this?? type def App.Path = "E:\LATEST" end type[/QUOTE] App.Path is a built in value stemming from the prewritten function 'App.' App.Path should be used on the right hand side of the '=' operator: not on … | |
Re: [QUOTE]Global ErrorStatus& [/QUOTE] Use the varType function: it returns the variable type. You can use it from the Immediate Window --------------------------------------------------- ?varType(ErrorStatus&) That will return a numerical value. Then you consult your MSDN documentation to see what type corresponds with that numerical value. Hank | |
Re: I assume that you have some idea of how to work with Access databases in VB6. If not, let me know. But I would use the End of File property (EOF) in a loop to delete the records in the database. [CODE] With MyDatabase .movefirst While not .EOF .delete .movenext … | |
Re: [QUOTE]have completed my project in all respect but I would like to include all table and report of Access and Crystal Report respectively in my VB 6 project SETUP FILE. So. pl help me to include such file while creating SETUP file. If there is no way than I have … | |
Re: I would declare a Public Array of your own type: You can declare the amount in the array to begin with or assign the amount dynamically with a Redim statement. [CODE] Option Explicit Public Type Employee Salary As Currency FirstName As String SurName As String HoursWorked As Single End Type … | |
Re: [CODE] Dim strFileName as string strFileName = "c:\Documents and Settings\User\My Documents\hello.doc" Shell "Winword.exe " & strFileName [/CODE] | |
Re: The Property View [CODE] FORM1(Form1.frm) [/CODE] What you see on the left side is the Name property of Form1.frm What you see on the right side is the actual name of the file. Right Click and use the Save As to give it a different file name. Hank | |
Re: [CODE] Shell "WinWord.exe MyReport.doc", vbNormalFocus [/CODE] | |
Re: [QUOTE]where i can find the library code of digitalpersona fingerprint scanner like DPSDKENGLIB,DPSDKOPLIB and DPSDKUSRLIB in vb.6 thanx.[/QUOTE] I take it you where the dll or lib is that you're wanting to use. Use the Dumpbin.exe execute utility dumpbin.exe /exports dpsdkenglib You should be able to what functions you can … | |
Re: [QUOTE]My problem is I want to check if any copy of these forms are open and those would have different names?[/QUOTE] There are several collection objects that you can reference in your project in Visual Object: one is the forms collection. Use the [I]For Each[/I] with the Forms collection to … | |
Re: [QUOTE]i want to know in VB6 what is forms is that classes or objects [/QUOTE] Yes, a very good question. In short, a form is an object. According to Microsoft an object is encapsulated. That means it contains its own code and its own data. You don't have to program … | |
Re: [QUOTE]why i m getting this error.[/QUOTE] Your answer: [QUOTE]"Invalid DataSource"[/QUOTE] Post a copy of your connectionsource property in the DEConnection section. And it probably wouldn't hurt to post the type of database you're connecting to: Access, MSSQL, FoxPro, etc. Without that information, it's kind of difficult to help you? | |
Re: The mouse's positions is determined by the handle of the window that is active. Once you go outside of a vb form, then you need to use other means to trace the mouse. This calls for a couple of Windows APIs. I'll look into it. Hank | |
Re: The two APIs you're looking for are the following: (1) QueryPerformanceFrequency (2) QueryPerformanceCounter The first API retrieves the timing resolution that your system is capable of: depends on your CPU. The Second API retrieves the actual time. VB6's timer's are not that accurate. These are the API's you're looking for. … | |
Re: [QUOTE]So the Visual Basic Programm communicates with the microcontroler on the circuit board. I'm able to change some settings and so on... ocer the RS232. [/QUOTE] If you are controlling the Communications Port (RS232) with the Microsoft Comm Control--which I take it you are since you're using Visual Basic 6.0--then … | |
Re: You have a choice of normal or small. It's in the properties. I really doubt that firefox wrote a VB dropin ActiveX control so that VB6 users could use their control. VB6 is limited to what's available or what you can develop yourself. | |
Re: [QUOTE=lawlao;491438]how to use sdk in vb.6[/QUOTE] Api-Guide has a free download you can use with some actual examples. You can download their free program of VB6 examples. [URL="http://allapi.mentalis.org/downloads/apiguide/agsetup.exe"]http://allapi.mentalis.org/downloads/apiguide/agsetup.exe[/URL] But basically an Application Programming Interface (API) is a program written in C/C++ that you can reference in Visual Basic by translating … | |
Re: [QUOTE]access[/QUOTE] Microsoft Access? [QUOTE]typing in the combo[/QUOTE] I take it you mean searching through list that was loaded into the Combo Box. You just have to extract the value from the current text in the combo, determine the size of the list in the combo, and then do a search … | |
Re: [QUOTE]I need to color few items[/QUOTE] What's an item? This is pretty vague stuff here. You want to color the text, the background, an object item? | |
Re: VB6 and the internet are flaky. That's why they upgraded to DOT NET. But you can use the Windows API's to access the internet in VB6 ( which is probably what the DOT NET controls are built from anyway). And you can use the drop in controls that come with … | |
Re: [QUOTE]i don't know to design the circuit[/QUOTE] Hey, I'm not an electrician. You're wanting a VB6 forum to tell you how to do electronics? Are you serious? | |
Re: [QUOTE]Is it possible to make a wav file with the available data from the text file and play it in VB.[/QUOTE] In programming just about anything is possible. But if you're asking this question thinking that VB has a built in capability to do what you're asking, think again. You're … | |
Re: > I've been searching a lot, but couldn't find anything about what I would imagine to be pretty easy. Private Sub List1_Click() Dim strListValue As String, sngPercentage As Single strListValue = List1.List(List1.ListIndex) ' Check for numeric value to avoid run time error If IsNumeric(strListValue) Then Text1 = Format(CDec(strListValue) * sngPercentage, … | |
Re: [QUOTE]Hey guys first time learning VB6 and i have to do a Hangman project for my Gr 10 class[/QUOTE] You have several errors in your English. Hey, guys. This is the first time learning Visual Basic 6.0 (VB6). And I have to do a hangman project for my GR-10 class. … | |
Re: [QUOTE=hosanna;485856] SO REFERENCE TO THE WORKBOOK IS F:\STAFFSTREAMA\A1\SALES\SALESDATA_A1.XLS I HAVE 200 OF THESE WHICH GO FROM A1 TO A200, folders with THE SAME named FOLDER CALLED SALES and same workbook called salesdata_A1 ETC. I need to be able to go through each folder eg A1,A2 ETC OPEN THE protected workbook … | |
Re: You need to use The File System Object. Add the Microsoft scripting runtime dll in your Project reference menu, first. [CODE] Option Explicit Dim fso As FileSystemObject Private Sub Form_Load() Dim strFileName As String Set fso = New FileSystemObject strFileName = Text1.Text If fso.FileExists(strFileName) Then MsgBox "Blah, Blah, Blah, the … | |
Re: When I click on a number of persons the price is displayed... But I need a way to change the prices so they must not be in the coding!!! What is 'they': the prices or the persons? >and i need to save these values on closing of program so that … | |
Re: [QUOTE]This is what I did to backup my DB whenever I had to - problem is I'm not sure how to find the file to restore it. [/QUOTE] Typically, Microsoft recommends storing that type of information in the registry. In Windows 3.1 days, they stored it in the program's INI … | |
Re: [QUOTE=dilip_singh3;486035] Is there any property for grid controls Or how to resolve through coding. Thnx.[/QUOTE] use the format function: format(sngValue, "##.##") [ICODE] Private Sub Form_Load() Dim sngValue as Single sngValue = 52.345 MSFlexGrid1.Col = 1 MSFlexGrid1.Row = 1 MSFlexGrid1.Text = Format(sngValue, "##.##") End Sub [/ICODE] Notice, you have to set … | |
Re: [QUOTE].CommandText = Array("SELECT `Total Fleet Current NA`.`Railcar ID`, `Total Fleet Current NA`.NBV, `Total Fleet Current NA`.`Adj NBV`" & Chr(13) & "" & Chr(10) & "FROM `Total Fleet Current NA` `Total Fleet Current NA`" & Chr(13) & "" & Chr(10) & "WHERE (`Total Fleet Current NA`.", "`Railcar ID`='MMMX028762')")[/QUOTE] You're wanting to … | |
Re: [QUOTE]All of the folders repeat some sort of information, but none of them have all of the information, so this one will have the database and maybe the icon or something, and another will have the icon and the forms in it, there is one folder for each of the … | |
Re: [code] #include <windows.h> int main() { .... } [/code] You need to link against the shell32.lib when compiling. Not familiar with the IDE, but on the command line c:\> cl /EHs prog.cpp /link shell32.lib | |
Re: I'm using the following code compiling with cl.exe from VS .NET 2003: [code]// shell.c #include <windows.h> #include <iostream.h> int main() { SHELLEXECUTE (NULL, "open", "Notepad.exe", NULL, NULL, SW_SHOWNORMAL); return 0; } [/code] But receive this error: shell.obj : error LNK2001: unresolved external symbol, __imp__ShellExecuteA@24 shell.exe : fatal error LNK1120: 1 … |
The End.