Click here to Skip to main content
14,742,801 members
Home » Discussions » C#


AnswerRe: Connection to MySQL Pin
User 66589-Jul-08 21:24
MemberUser 66589-Jul-08 21:24 
GeneralRe: Connection to MySQL Pin
D i x y9-Jul-08 21:34
MemberD i x y9-Jul-08 21:34 
GeneralRe: Connection to MySQL Pin
User 66589-Jul-08 21:45
MemberUser 66589-Jul-08 21:45 
AnswerRe: Connection to MySQL Pin
sacr839-Jul-08 23:58
Membersacr839-Jul-08 23:58 
QuestionHow to rename a file? Pin
Saiyed Alam9-Jul-08 20:31
MemberSaiyed Alam9-Jul-08 20:31 
AnswerRe: How to rename a file? Pin
User 66589-Jul-08 21:20
MemberUser 66589-Jul-08 21:20 
Questionbindingsource.filter syntax question Pin
crash8939-Jul-08 19:39
Membercrash8939-Jul-08 19:39 
Questiontimer does not work Pin
benjamin yap9-Jul-08 19:13
Memberbenjamin yap9-Jul-08 19:13 
hi, i have a timer which call this method CalPrice().

The calprice will check the dategridview first column if the checkbox ==true, then calculate the price base on the the other column

private void CalPrice()
           double price = 0.0;
           foreach (DataGridViewRow dgw in dataGridProduct.Rows)
               DataGridViewCheckBoxCell datacell = dgw.Cells[0] as DataGridViewCheckBoxCell;

                   if ((bool)datacell.Value == true)
                       //MessageBox.Show("" + dgw.ToString());

                       price += Convert.ToDouble(dgw.Cells[6].Value.ToString());

                   lblTotalPrice.Text = "Total Price : $ " + price;

               catch (Exception exc)
       private void timer1_Tick(object sender, EventArgs e)

I have set the timer to enable and interval to 1000(1 second). But when i load the form, the timer dont seems to start. It does not call the calPrice method
AnswerRe: timer does not work Pin
mav.northwind9-Jul-08 20:09
Membermav.northwind9-Jul-08 20:09 
GeneralRe: timer does not work Pin
benjamin yap9-Jul-08 20:34
Memberbenjamin yap9-Jul-08 20:34 
GeneralRe: timer does not work Pin
Seishin#9-Jul-08 22:58
MemberSeishin#9-Jul-08 22:58 
Silvyster9-Jul-08 18:53
MemberSilvyster9-Jul-08 18:53 
Ajay.k_Singh9-Jul-08 23:33
MemberAjay.k_Singh9-Jul-08 23:33 
GeneralRe: THE PRINTER Pin
Silvyster10-Jul-08 2:59
MemberSilvyster10-Jul-08 2:59 
Questionclose form Pin
nelsonpaixao9-Jul-08 15:18
Membernelsonpaixao9-Jul-08 15:18 
AnswerRe: close form Pin
Christian Graus9-Jul-08 16:21
protectorChristian Graus9-Jul-08 16:21 
AnswerRe: close form Pin
Nirandas9-Jul-08 23:59
MemberNirandas9-Jul-08 23:59 
Questioncancel button [X] Pin
nelsonpaixao9-Jul-08 15:07
Membernelsonpaixao9-Jul-08 15:07 
AnswerRe: cancel button [X] Pin
PIEBALDconsult9-Jul-08 15:58
professionalPIEBALDconsult9-Jul-08 15:58 
Generalcancel button [X] Pin
nelsonpaixao9-Jul-08 16:14
Membernelsonpaixao9-Jul-08 16:14 
GeneralRe: cancel button [X] Pin
Luc Pattyn9-Jul-08 16:21
sitebuilderLuc Pattyn9-Jul-08 16:21 
GeneralRe: cancel button [X] Pin
PIEBALDconsult10-Jul-08 5:19
professionalPIEBALDconsult10-Jul-08 5:19 
GeneralRe: cancel button [X] Pin
PIEBALDconsult10-Jul-08 13:40
professionalPIEBALDconsult10-Jul-08 13:40 
Questiontitle bar Pin
nelsonpaixao9-Jul-08 15:01
Membernelsonpaixao9-Jul-08 15:01 
AnswerRe: title bar Pin
Luc Pattyn9-Jul-08 16:23
sitebuilderLuc Pattyn9-Jul-08 16:23 

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.