153 Posted Topics
| |
Re: Hmmm, seems like your using VB2008/10. Well, heres an idea: AnotherWindow.Textbox1.Text = MainWindow.Textbox1.Text Or you can use With, say: With AnotherWindow .Textbox1.Text = MainWindow.Textbox1.Text End With Is this? | |
I'm having a little problem regarding this log-in program. #include<stdio> #include<conio> #define p printf #define s scanf main() { char pass[20]; char user[20]; clrscr(); p("\nEnter your username: "); s("%s", user); p("\n\nEnter your password: "); s("%s", pass); if(user=="abel" && pass=="pass") p("\nW E L C O M E !!"); else p("\nINVALID INFORMATION!!"); … | |
Re: Do: 2nd person above me says. Check if some reference missing, click the item then see description (name of the missing DLL if any) Otherwise, install SP'c 5 and 6 | |
Sorry, I don't know where to post this one. I would like to try executing an SQL Injection on a site (offline) i created with wamp. Just like to test the security of my site and try sql injection at the same time. If this kind of post isn't allowed, … | |
Re: You can either use DataEnvironment or do what arvin said. Use rptTextbox control and set the datafield. Regarding the connection, use SQL statements on the button that shows(print) the datareport. @jovicmon21, please don't highjack someones thread, Start your own. | |
Re: [CODE]Private Sub Text1_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case 48 To 57, 8 Case Else KeyAscii = 0 Msgbox "Your Message Here" End Select End Sub[/CODE] | |
Re: [COLOR="Red"]Did you mean showing a specific database field or column? Have you tried using rptTextbox?[/COLOR] | |
Re: [QUOTE]I just don't know how to have the amount showing on the first form to always be portrayed in a label in the second form. Please help![/QUOTE] You mean showing the same amount of a label in form 1 to a label in form 2? If so, then have a … | |
Re: Form Property? Borderstyle > then choose if Fixed or Resizable | |
Re: Try to do what JX said. Maybe your table login doesn't exist or misspelled. Or try this: [CODE] SQL = "SELECT * FROM [login]" [/CODE] Oh one more thing, do you have this statement? [CODE]Dim SQL as String[/CODE] Cheerz!! | |
I'm having problem trying to find out what is wrong with a code. Here's what it is supposed to do. 1. The messagebox should only appear if a record already exist in the database 2. If there is no record of the same information, then it would save the new … | |
Just wanna know how to add all values of a data report column using rPtFunction. Example: [QUOTE] SALARY: DEDUCTIONS: NET: 1000.00 300.00 700.00 [/QUOTE] Haven't tried this one before. Thanks in advance. | |
Re: You can use key trapping by their corresponding ASCII equivalents and Case statements. Example: [CODE] Private Sub Text1_KeyPress(KeyAscii As Integer) Select Case KeyAscii Case 65 To 90, 8, 32, 39 ' A-Z and backspace and space Let these key codes pass through Case 97 To 122, 8 'a-z and backspace … | |
Re: Try also to use CODE tags. Thanks | |
Re: A revision of BitBIt's code: [CODE] If Text1.Text <> "q" or "Q" Then MsgBox "INVALID COIN!PLEASE INSERT COIN in Q,D and N ONLY!", vbCritical, "INSERT COIN" Exit Sub End If [/CODE] It accepts the specified letters in UCase and LCase. Or you could use ASCII code equivalent of each letters. | |
Re: You can just press CTRL + ALT + DEL. Find the process that is blocking you to delete that file then End Task it. Yeah, Unlocker works too. | |
Re: Here's to give you an idea. [CODE] Dim xIdNo As Integer Dim xEmpID As Integer xEmpID = rsX!EmpID 'xEmoID var contains the value of your ID column xEmpID = xEmpID + 1 'Adds 1 to the original value of your xEmpID var txtIDNo.Text = xEmpID 'Displays it in a textbox … | |
I am trying to display an alert box using javascript in my login php file. When a user logged in using a wrong username or password, then a messagebox will display. This is what i have so far: [CODE] $query="SELECT * FROM info WHERE username ='$user' && password ='$pass' "; … | |
I originally have a Visual Basic 6 App on my PC, and tried to update it with SP5, but I got a failed installation. And after that, I wasn't able to use the VB6 app again, because it gives me an error. I tried to uninstall it but cannot see … | |
Re: [URL="http://www.w3schools.com/quiztest/quiztest.asp?qtest=PHP"]W3 Schools[/URL] [URL="http://www.ex-designz.net/test_page.asp?tid=30"]Ex Designz[/URL] Not much but good.. | |
I'm having problem with my login php files. I don't know if it is in the passing of values from inputboxes or connection with my database records. log-in code: [CODE] <td align="right" width="130px"> Username: </td> <td><input type="text" size="40" id="username" class="inputbox" /></td> </tr> <tr> <td align="right"> Password: </td> <td><input type="password" size="40" … | |
I can't figure out what is wrong since my codes are correct. [CODE] $host="localhost"; $username=""; $password=""; $db_name="database"; $tbl_name="members"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Cannot Find Database"); [/CODE] Keeps on saying the die statement. I'm using WAMP, and yes. my database name is "database" and table is name is "member". … | |
Hi there. I'm having some problem in aligning my captcha image on a form. Here's the SS: [URL="http://imageshack.us/photo/my-images/33/captchab.jpg"]http://imageshack.us/photo/my-images/33/captchab.jpg[/URL] And here's my login code: [CODE] <html> <title>Log In</title> <style> .singleBorder{ border:1px #d6d6d6 solid; background-color:#f6f6f6; } .singleBorder td{ font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#333333; } .singleBorder input,select{ border:1px #aaaacc solid; font-family:tahoma; … | |
Re: You might wanna use some ocx files to create such interface.. And i think its really hard just to use VB6 for that without using any other resources.. | |
I just uploaded my php files on my webhost, and begi editing the links in my index.php. And when I tried viewing my site, i receive the following errors. [CODE] Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/a4478641/public_html/index.php on line 3 Warning: include(http://abelingaw.site90.com/phavi/common.php) [function.include]: failed … | |
Re: Set the timer interval to 5000 in the Properties window and put this code on a timer control. [CODE] If Timer1.Interval = 5000 Then 'Timer1 is the default name, change if necessary Unload Me End If [/CODE] | |
I have created a page (with php and javascript) but i am having a problem. Whenever i add contents or remove some, the footer comes up or the whole page re-sizes. I would like the whole page to stay as the original length like the main page regardless how much … | |
I just wanna know how to enable tab switching without the whole page reloading. When i click a tab, the page would appear on a form or lets say a part of a page (e.g <div>). Dont want to use frame. And i would like to know how to have … | |
I was just wandering if someone could help me how to redo a case statement. After executing the program, there would be a line asking : Try Again? YES / NO If yes, then the program re-executes without hitting F5 again. (using JCreator pro 5). All i have is this: … | |
Good to be back here.. :) Got no issues about programming (ATM), but got some problem regarding my Network Adapter. It's Atheros AR9285 Version 8.0.0.238. My problem is that, it does detects WiFi network connections but i cant connect to them even if its a public or open network, doesn't … | |
Re: Try this: [CODE] With lsvwed Set lst = .ListItems.Add(, , (RS!Lastname)) lst.(lsvwed.ListItems.Count).SubItems(1) = RS!Firstname lst.(lsvwed.ListItems.Count).SubItems(2) = RS!Middlename lst.(lsvwed.ListItems.Count).SubItems(3) = RS!Address lst.(lsvwed.ListItems.Count).SubItems(4) = RS!Age End With [/CODE] | |
Re: Set your form Movable property to False on Design time. You can also add this code to your form keypress event. [CODE]KeyAscii = 0[/CODE] This will disable all keys from the keyboard (even mouse - not so sure). And yes, you should use a timer control. | |
I'm having problem regarding a text box max length. If i set it manually from the properties tab (i set it to 10), output would like "10000000.0" What i want is that it would be "1000000000.00". So i tried using this code: [CODE]Private Sub txtrate_LostFocus() If txtrate.Text = vbNullString Then … | |
What i wanted to do is to limit the number of users to be registered for my system. One for User type and one for Administrator account, and if there is already a user and admin account, adding will be disabled, else, enabled. Here's the code im using. [CODE]Private Sub … | |
Re: Do you mean Creating an Installer of a program created in VB6..? Create first an exe of the project before proceeding. 1. Close ms vb6.0 ide 2. Click start> -programs-> microsoft visual studio 6.0-> microsoft visual studio 6.0 tools-> package and deployment wizard 3. Click browse to locate ur project … | |
Ok, I'm having problem on how to save texts with quotes. Let's say I'm saving a value in a textbox like O'Neil. That's where I receive an error. How do I save names or texts like O'Neil or texts with qoutes? Here's my code for saving: [CODE] With RecSet .Open … | |
Re: I think he/she is referring on creating an EXE file but compiling it first. If you create an EXE file of your VB Project, VB automatically compiles it and stops if there are any error on your program. To check for errors more accurately, hit CTRL + F5 rather than … | |
Re: Is your SQL is on a command button (ex: cmdPrin Selected).? | |
How do I add all time values in a database table to get its total, get the total tardiness then sum up to know how many days an employee is absent or present in a monthly basis? | |
I want to compute the difference of time values. The values are loaded from my database (which are captured via biometrics) into labels. Here's a screen shot: [ATTACH]19115[/ATTACH] And I would like also to separate the hour value and minutes then the computation. Any idea where I will start.? :) … | |
Re: I have no idea on how to select multiple textbox at once (Run Time). But there are some properties which would look like you are doing it. The Enable or Locked property for example, you can lock and enable multiple textboxes (or other controls in just one click. PS: You … | |
Re: You could refer in this thread. [URL="http://www.daniweb.com/forums/thread76114.html"]http://www.daniweb.com/forums/thread76114.html[/URL] | |
I want to load values from a lstview column to a combobox in another form. The problem is that, my combobox style is 2 - Dropdown List and the values in it are from my database field. That's where the error occurs. Saying [ICODE]Text property is read only.[/ICODE] I could … | |
Re: Do you have any code on the datagrid? Or just by clicking on the column header automatically sorts your records? | |
| |
Re: Put it in your command button which save the data that is input in your controls. Usually the saving button ( e.g cmdSave). | |
Re: [CODE] Fullname = Rs.Fields("Lname") & " " & Rs.Fields("Fname") & " " & Rs.Fields("Mname") 'if Fullname is also a database table field, change it e.g Rs.Fullname [/CODE] | |
Re: Use textbox control for input purpose, not label. Have a command button control on your form first and put this code on it. [CODE]Private Sub Command1_Click() Sum = Val(Text1.Text) + Val(Text2.Text) Label3.Caption = Sum End Sub [/CODE] Please read the forum rules first if this is your first time posting … | |
Re: Here's some fixes too. On form5 on your Adodc1 control 1. Right Click 2. Click Build then on the First textbox where you enter your database path 3. replace the original path with [ICODE]inventory.mdb[/ICODE] 4. Click Test COnnection button 5. Ok > Apply 6. RIght click on your Datagrid control … |
The End.