Forum: VB.NET Sep 30th, 2008 |
| Replies: 5 Views: 521 timothybard is right, just Cdbl won't solve it :) |
Forum: VB.NET Sep 30th, 2008 |
| Replies: 5 Views: 521 it would be better if you post your code
any way , I think you didn't convert from string to double before calculating,
you wrote like this
Balance.Text = coursefees - installment1.Text
it may... |
Forum: VB.NET Sep 20th, 2008 |
| Replies: 4 Views: 1,631 1/to use image in the form you need PictureBox Control (http://www.startvbdotnet.com/controls/gbox.aspx)
2/in order to change the picture whenever the user select item from the comboBox you use the... |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 2 Views: 1,610 there are many good tutorials in net like this (http://www.homeandlearn.co.uk/NET/nets12p4.html) and this (http://www.itwriting.com/pcw/vbdotnetdata.php)
you can search for more and it will help... |
Forum: VB.NET May 7th, 2008 |
| Replies: 17 Views: 3,653 if you removed these lines, return them and see if you still have this problem
:S |
Forum: VB.NET May 7th, 2008 |
| Replies: 17 Views: 3,653 there is no table 0 in your dataset
sorry I was mistaken here, Record_num should be initialized with -1 not 0
this time it should really work , just be sure of your dataset that it... |
Forum: VB.NET May 6th, 2008 |
| Replies: 17 Views: 3,653 the problem still the same , you mean it just shows the last record ?
if yes , as I said before initializing Record_num with zero inside the button code is your problem
just imagine what will... |
Forum: VB.NET May 5th, 2008 |
| Replies: 17 Views: 3,653 is it solved ? or you still have problem :S |
Forum: VB.NET May 5th, 2008 |
| Replies: 17 Views: 3,653 the problem that you decleared Record_num inside the next_button code, here each time the user choose next button Record_num will have the same value
define it outside it
public class form1
dim... |
Forum: VB.NET May 5th, 2008 |
| Replies: 17 Views: 3,653 i do not understand your code.
>>"this the code for button next n previous" you mean that the same code for next and previous ? each one has its own code
i = 0
For i = 0 To -1
TextBox1.Text =... |
Forum: VB.NET May 4th, 2008 |
| Replies: 2 Views: 488 first thing you need to store the special characters in array (http://www.startvbdotnet.com/language/arrays.aspx), so you will declear array
Dim SC(36) As charafter that store values
SC(0) = "Ï"... |
Forum: VB.NET Mar 9th, 2008 |
| Replies: 13 Views: 2,465 Variables that you declared are different from what you used . |
Forum: VB.NET Mar 9th, 2008 |
| Replies: 13 Views: 2,465 write your code here please |
Forum: VB.NET Mar 9th, 2008 |
| Replies: 13 Views: 2,465 You do not declare InitialValue.text you just declare variable as textbox.
textbox has many properties one of them is text
we access properties of InitialValue variable by typing InitialValue.... |
Forum: VB.NET Mar 2nd, 2008 |
| Replies: 17 Views: 2,767 you need to do as Jx_Man suggest , use Convert.ToSingle |
Forum: VB.NET Mar 1st, 2008 |
| Replies: 3 Views: 768 maybe you trying to read while you reached the end of file ,
i think this return length on byte , try this
fLen1 = Int(f1.Length / 4) |
Forum: VB.NET Oct 16th, 2007 |
| Replies: 2 Views: 1,299 are you asking about how to loop thru database ? i think like this
count = Me.DataSet.Table_Name.Count
For i = 0 To count - 1
m = Me.DataSet.... |
Forum: VB.NET Oct 16th, 2007 |
| Replies: 2 Views: 2,506 use boolean varaible to indicate if the user enter correct value for each input like this
If Val(employeeid_txt.Text) > 10 Or Val(employeeid_txt.Text) < 1 Then
... |
Forum: VB.NET Oct 15th, 2007 |
| Replies: 2 Views: 681 i think that's wrong , you need to add 125,000 to the population grouth each year
number=number+(number*4.3) [/QUOTE][QUOTE]Loop Until count = 200000
.
other thing why you stop looping untill... |
Forum: VB.NET Oct 13th, 2007 |
| Replies: 1 Views: 2,466 I think this not right , daDocuments.Update takes two argument one of them is dataset and the other is table
OleDbDataAdapter1.Update(DataSet11, "table_name")
also you can use ... |
Forum: VB.NET Aug 23rd, 2007 |
| Replies: 2 Views: 723 according to this link (http://www.homeandlearn.co.uk/NET/nets4p12.html) DidWork is integer variable
Dim DidWork As Integer = openFD.ShowDialog()
so in this line If DidWork <> DialogResult.Cancel... |
Forum: VB.NET Jul 13th, 2007 |
| Replies: 3 Views: 6,346 I am not sure if I understand you well :S
do you want to clear the textbox from data when user click some button ?
you do like this
Private Sub Button1_Click(ByVal sender As... |
Forum: VB.NET Jun 21st, 2007 |
| Replies: 6 Views: 1,409 first of all if is NOT loop u use it to test condition and i do not know why u using the for or while loop !
in ur code each time u press next button what will happen is
1/ make connection to... |
Forum: VB.NET Jun 21st, 2007 |
| Replies: 6 Views: 1,409 Ok
Your code won't display the next record , it will always display the same record over and over , any way I think it’s the last one in table not the first.
The problem is u not keep track of... |
Forum: VB.NET May 24th, 2006 |
| Replies: 13 Views: 8,948 |
Forum: VB.NET May 22nd, 2006 |
| Replies: 13 Views: 8,948 it works with me....just check if the column 1 exist in ur tabel....
and did u clear dataset and fill dataadapter??? |
Forum: VB.NET May 21st, 2006 |
| Replies: 13 Views: 8,948 hi again..just one column ..so no need to collect it to one string i thought u want to show row of many columns..
any way..ofcourse u need to give c value at start...
Dim c As... |
Forum: VB.NET May 19th, 2006 |
| Replies: 13 Views: 8,948 see.... when u have dataset it represent the table in database that u have
so if u have r rows and c column ...u will go through one row at time and collect all the columns in it..
item=""
with 2... |
Forum: VB.NET May 19th, 2006 |
| Replies: 13 Views: 8,948 |
Forum: VB.NET May 17th, 2006 |
| Replies: 13 Views: 8,948 hi ....
i did this ..first u need dataset and data adapter...
then u will go through each row in dataset and collect the items in one string...then use
CheckedListBox1.Items.Add(the string u... |
Forum: Visual Basic 4 / 5 / 6 Mar 9th, 2006 |
| Replies: 23 Views: 209,413 No......it dose have value
i want to write program that read the names of student of specific section from excel file and display it in textbox
actually each cell has name of student |
Forum: Visual Basic 4 / 5 / 6 Mar 9th, 2006 |
| Replies: 23 Views: 209,413 thanks....
i don't have now run time error
but i tried to display result on textbox i always have empty textbox??? |
Forum: Visual Basic 4 / 5 / 6 Mar 9th, 2006 |
| Replies: 23 Views: 209,413 hi
I want to know how to read from excel file
i know how to open it but how to store cell's value from excel to the variable
i wrote
varname=xlsheet.Cells(1, 1)
and i got run timeerror
"cast... |