blah blah blah is here! blah blah » Close

0
votes
0 answers

multiply time duration

Guys, I'm trying to calculate my total time textbox by the hourly rate textbox. below is an example of how my total time textbox is being output: [code]totalTime.Text = String.Format("{0:D2}:{1:D2}", diff1.Hours, diff1.Minutes) ...

0
votes
2 answers

Delete Row on status and Date entry

Guys I'm getting a little confused on how best to do this. I have a datagrid with 3 columns, column [2] contains a status and column [3] contains a date. now I want to delete the row but only if the status is "CLEANED" and is over ...

1
votes
1 answers

Doulbe message box YesNo option

Guys, I'm having a minor issue with my message box pop up. I have a form that when a button is clicked a message box pops up asking if they have completed a task, if they haven't they can choose NO and it will give them the chance to do so. ...

1
votes
3 answers

Run VS 2010 with VS 2008

Is anyone running VS 2010 along side any older versions? I'm thinking of upgrading to VS 2010 Pro but I don't want to uninstall VS 2008 Pro just yet incase it causes problems with earlier projects. I have heard people saying it will work ...

1
votes
1 answers

Format Datagrid row on 2 column values

Guys, I have a datagrid with 11 columns in. I'm trying to color the row depending on the values in columns 10 and 11. so for example if column [10] has no value the row is highlighted Green. now i want to check column [11] and if [11] has a ...

0
votes
3 answers

converting textbox to Int and calculating

I'm trying to calculate my textboxes together and display the total, I think i've got a fault whilst converting to int as it throws message window up error with value entered? is there a better way to do this calculation? [code]int label ...

1
votes
1 answers

Index was out of range. Must be non-negative

I'm trying to copy values from a cell in my datagrid to a new form when clicked, I have this working apart from this one line of code: [code]GridClick.Descrip.Text = row.Cells[8].Value.ToString();[/code] Throwing this error: " ...

1
votes
2 answers

Subtracting Percentage

Guys, I've made a little VAT calculator form, the user inputs the start amount then the VAT rate and it works great for adding the VAT percentage and breaking it down, however i'm trying to reverse the formular but can't get it to subtract ...

1
votes
1 answers

Compare textbox text to datagrid text

On my form i have a comboBox and a textBox and a datagridview, on button click i'm trying to compare the text from the combobox and textbox agaisnt the 2 columns in the datagridview, if it matches do a function. Now the below code i've c ...

1
votes
1 answers

Pop message up on date value field

Guys I have a datagrid view, in one column is a date value in another column on the same row is a text value of either "PENDING" or "ACTIONED". I'm trying to pop a message box up if the date value in my datagridview Row. ...

1
votes
2 answers

Calculate Time

I have 2 lables on my form, label1 and label2, i'm using label1 to capture the current time, then later in the day label2 captures the current time, how can i display the difference in time between label1 and label2 in label3? I'm displa ...

1
votes
1 answers

Close form on datagrid status

How can i close my form if my datagrid has no rows? or rows with any data anyhow. I'm going to place the code in a timer event. So basicly when my timer event fires if it doesn't count any rows in DataGridview the form will close.

1
votes
1 answers

Colot datagrid text on cell value asp.net

Guys, how do i change the text forecolor on the status in the datagrid cell? I have this working fine on a windows form app, but in the world of asp.net this is slightly different to me. I'm assuming i use the code in the Default.aspx.cs fi ...

1
votes
1 answers

Show form on status in datagrid

Guys, i hope i make sense with this question. I have a small app that will be running all the time but the form will be minimized or hidden, now i have a DataGrid1 with a status column. the datagrid refreshes every few minutes, when the wor ...

1
votes
1 answers

Counting rows

Guys, I want to count the rows on my datagrid but counting -1. for example if i had 1 row in my datagrid i want label1 to display 0 I'm using the code below, it counts correct but i cant adapt it to count -1? am I missing something si ...

Feedback