Click here to Skip to main content
15,888,018 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Problem using textbox for searching in DataGrid Pin
Kschuler5-Jun-06 8:46
Kschuler5-Jun-06 8:46 
GeneralRe:Thanks Pin
Syed Ali Raza5-Jun-06 12:00
Syed Ali Raza5-Jun-06 12:00 
Questionprogress bar Pin
militiaware5-Jun-06 4:09
militiaware5-Jun-06 4:09 
Questionidle system Pin
militiaware5-Jun-06 3:43
militiaware5-Jun-06 3:43 
Questionstream reader Pin
militiaware5-Jun-06 3:27
militiaware5-Jun-06 3:27 
AnswerRe: stream reader Pin
Dustin Metzgar5-Jun-06 4:02
Dustin Metzgar5-Jun-06 4:02 
QuestionMSHflexgrid and images question Pin
Tarek Jabri5-Jun-06 3:01
Tarek Jabri5-Jun-06 3:01 
Questionplease help me sm the chlbx items,pleeease Pin
nellyvb.net5-Jun-06 2:20
nellyvb.net5-Jun-06 2:20 
hi, please someone help me ,
I have a checkedlistbox loading data from a column in a table and when I chec a specific item it's price appear in textbox5.text as shown from the following code, my problem that the sum of the whole checked item didn't work ..
please someone run it to me , I need it today the life of my project depend on it.


Here is my code it works ,except the sum process.


visual basic code:--------------------------------------------------------------------------------<br />
Private Sub checkedListBox1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) HandlesCheckedListBox1.ItemCheck      <br />
    Dim sum As Double      <br />
    Dim c As Integer                <br />
  If e.NewValue.ToString() = "Checked" Then   <br />
           If TextBox4.Text.Trim() = "" And TextBox5.Text = ""Then                  TextBox4.Text = dt.Rows(e.Index)("PartName").ToString() '                 TextBox5.Text = dt.Rows(e.Index)("Price").ToString()               <br />
   sum += (dt.Rows(e.Index)("Price").ToString())            <br />
 Else TextBox4.Text += "," + dt.Rows(e.Index)("PartName").ToString            End If      <br />
  TextBox5.Text = FormatCurrency(sum) 'the totla sum will represented in this txtbox    <br />
      End If   <br />
  End Sub 



Thaaaaaaaankx for who will give me a hand of help..
AnswerRe: please help me sm the chlbx items,pleeease Pin
Rey99995-Jun-06 2:38
Rey99995-Jun-06 2:38 
QuestionTextBox language !! Pin
Tamimi - Code5-Jun-06 1:07
Tamimi - Code5-Jun-06 1:07 
QuestionCatch an event from another form Pin
Rey99995-Jun-06 0:05
Rey99995-Jun-06 0:05 
AnswerRe: Catch an event from another form Pin
Robert Rohde5-Jun-06 0:18
Robert Rohde5-Jun-06 0:18 
GeneralRe: Catch an event from another form Pin
Rey99995-Jun-06 2:20
Rey99995-Jun-06 2:20 
GeneralRe: Catch an event from another form Pin
arcticbrew6-Jun-06 9:41
arcticbrew6-Jun-06 9:41 
QuestionBrowser Pin
Socheat.Net4-Jun-06 22:58
Socheat.Net4-Jun-06 22:58 
QuestionFinding maximum value from a series... Pin
mayhem_rules4-Jun-06 22:56
mayhem_rules4-Jun-06 22:56 
AnswerRe: Finding maximum value from a series... Pin
Tamimi - Code4-Jun-06 23:44
Tamimi - Code4-Jun-06 23:44 
GeneralRe: Finding maximum value from a series... Pin
mayhem_rules5-Jun-06 0:02
mayhem_rules5-Jun-06 0:02 
GeneralRe: Finding maximum value from a series... Pin
Robert Rohde5-Jun-06 0:13
Robert Rohde5-Jun-06 0:13 
GeneralRe: Finding maximum value from a series... Pin
mayhem_rules5-Jun-06 0:23
mayhem_rules5-Jun-06 0:23 
AnswerRe: Finding maximum value from a series... Pin
Guffa5-Jun-06 0:47
Guffa5-Jun-06 0:47 
GeneralRe: Finding maximum value from a series... Pin
mayhem_rules5-Jun-06 1:14
mayhem_rules5-Jun-06 1:14 
AnswerRe: Finding maximum value from a series... Pin
J4amieC6-Jun-06 0:00
J4amieC6-Jun-06 0:00 
QuestionMotherboard Unique ID number Pin
Rod Simmons4-Jun-06 22:44
Rod Simmons4-Jun-06 22:44 
QuestionReading Excel File error Pin
pirogramci4-Jun-06 22:30
pirogramci4-Jun-06 22:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.