using Focus() function...
try this code :
If DropDown.SelectedItem = "Yes" Then
TextBox1.Focus() ' If Yes go to textbox1
Else
TextBox2.Focus() ' If No go to textbox2
End If
using Focus() function...
try this code :
If DropDown.SelectedItem = "Yes" Then
TextBox1.Focus() ' If Yes go to textbox1
Else
TextBox2.Focus() ' If No go to textbox2
End If
yeah, its easier to use listview.
Debug?? debug cannot be execute alone. debug must be follow with Print or Assert.
i think debug.print use to see what the result. i mean it is not using inf form but for debugging.
u mean change the value of what was display on label?
and what the meaning of this :
let say i have value,,,, length is label and 10cm is text box for length in a form
i didn't get the point...explain more detail..
Make a new form to do this. use timer to set how long it will shown.
so after login, Note Form will shown for a few second and disappearing then go to form after login(main menu or other).
you're Welcome...
Don't forget to mark this thread solved.
Happy Coding Friend :)
Add in your declaration :
Const MAX_PATH As Integer = 260
set BorderStyle of Form properties to None
Hi...Welcome to Daniweb Friend :)
so, its already generated and stored.
so u just load the id from database.
use picture box or image. then use that code to show it.
Picture1.Picture = LoadPicture("F:\Pictures\Icon\CloseX.ico")
Picture1.Picture = LoadPicture("F:\Pictures\Icon\CloseX.ico")
why you don't use Listview...
you mean, display photo from folder?
yeah, i know that. i mean that id pattern.
ex : UK1000
UK1001.
give an example of id?
varCommand = New SqlCommand("insert into tbl_rop values('" & TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox4.Text & "',)", varConnection)
Wrong code, where u want to insert?what column Name of table?
eg :
cmdStudent1.CommandText = "INSERT INTO Student(Id, FirstName, LastName,Age) VALUES('" & Trim(txtId.text) & "','" & Trim(txtFirstName.Text) & "','" & Trim(txtLastName.Text) & "','" & Trim(txtAge.Text) & "')"
Hi..
File ->Make YourProjectName.Exe
specify more?
Hi i found this code on the web that works but can someone tell my how does this works
u said it works but you want to someone tell u how it works?confusing statement.
if there is 4 column in one table then you're right. as alemzadeh, use SelectedIndexchanged Event to get Key and search on table by the Key then display it in each combobox.
Hi..Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
hey dude thanks a lot for ur reply. The thing i asked is in this way
In database in register table i stored the following
Firstname abc
Lastname xyz
Username hello
Password hi
From register table i have inserted Username and Password to Login table. So Login table database consists of the following
Username hello
Password hi
Now after connecting to database writing the code and the execution starts.Login form
Username hello
Password hi
(After this i am able to go to welcome form but it should display saying as follows)Welcome abc
I hope that you got my point.
what is your effort to do this??where is your attempt?so u want people do your work..
have u a searching procedure?? i mean, you can display on datagrid. post it.
populate each combobox with each table.
use key to search data in every table. so your table must be connected each other.
Now the question :
id
description
ap code
seg code
- it is your database and tables named is Id, Description, Ap Code, Seg Code (4 table) Or it is One Table with column named Id, Description, Ap Code, Seg Code (1 table-4 column) ???which one??
maybe using text file to save setting...
Hi welcome to Daniweb Friend :)
Hi...welcome to Daniweb Peter :)
Hi Zafar...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi Luke...Welcome to Daniweb Friend :)
visit this following links to learn how to connect access with vb.
- VB And Ms Access
- VB6 Database Guide
Then try it, if u get some problem post it here.
Happy Coding Friend :)
Hi GaGa...Welcome to Daniweb Friend :)
how about a simple code to debug us
as a rules friend :
"We only give homework help to those who show effort"
If u have an attempt, we'll longer to give a help and a simple coding as u want for directing, but please you must have an effort first. OK.
dim rpt as new crystalreport1()
what is crystalreport1? crystalreport viewer or a page of report after generating?
COUNT function to count how much record in current column.
SUM function to added all value in current column.
AVG function to get average of all value in current column.
etc...
Well Great to solved your thread by your self.
Happy coding friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
Hi...Welcome to Daniweb Friend :)
visit this following sites :
- http://www.vbtutor.net/vbtutor.html
- http://www.developerfusion.co.uk/vb/
- http://www.profsr.com/vb/vbintro.htm
- http://www.devdos.com/vb/
Hi Welcome to Daniweb Friend :)
you're Welcome friend :)
Happy Coding.
you're Welcome friend :)
??
hmm...sorry if this code some like yours...
well, i have a book for this.