Click here to Skip to main content
15,895,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: PDF to JPEG conversion in windows application? Pin
andyharman23-Aug-07 3:28
professionalandyharman23-Aug-07 3:28 
Questiondns.gethostentry Pin
plural23-Aug-07 0:24
plural23-Aug-07 0:24 
AnswerRe: dns.gethostentry Pin
Dave Kreskowiak23-Aug-07 3:56
mveDave Kreskowiak23-Aug-07 3:56 
Questionabout speech recognition project Pin
sonali_aarti22-Aug-07 23:15
sonali_aarti22-Aug-07 23:15 
AnswerRe: about speech recognition project Pin
Steven J Jowett22-Aug-07 23:19
Steven J Jowett22-Aug-07 23:19 
AnswerRe: about speech recognition project Pin
Rupesh Kumar Swami22-Aug-07 23:41
Rupesh Kumar Swami22-Aug-07 23:41 
QuestionAdding the values in a datagridview column Pin
Mr Oizo22-Aug-07 23:11
Mr Oizo22-Aug-07 23:11 
AnswerRe: Adding the values in a datagridview column Pin
Johan Hakkesteegt31-Aug-07 2:48
Johan Hakkesteegt31-Aug-07 2:48 
Hi,

Adding the values up is not that difficult, just loop through the rows in the dataset or datatable (not the datagridview) and add up the values. Something like this:
<br />
Dim rw as DataRow<br />
Dim i as Integer 'or double or whatever<br />
For each rw in YourDataSet1.Tables("YourTableName").Rows<br />
If IsDbNull(rw.Item("Category Ratio")) = True Then<br />
i += 0<br />
Else<br />
i += rw.Item("Category Ratio")<br />
End If<br />
Next<br />

What you really need to think about though, is how you want your app to react when the rows do not add up to 100 percent: throw a simple MessageBox and let the user calculate it in his head, reset all values to 100 divided by the number of rows, adjust all values equally, adjust only all values or some, or only one according to certain logic?

Good luck,

Johan

My advice is free, and you may get what you paid for.

QuestionGET THE SYSTEM TIME IN MILLISECONDS using Pocket pc Pin
dilhappy22-Aug-07 23:06
dilhappy22-Aug-07 23:06 
AnswerRe: GET THE SYSTEM TIME IN MILLISECONDS using Pocket pc Pin
plural22-Aug-07 23:12
plural22-Aug-07 23:12 
GeneralRe: GET THE SYSTEM TIME IN MILLISECONDS using Pocket pc Pin
dilhappy22-Aug-07 23:18
dilhappy22-Aug-07 23:18 
GeneralRe: GET THE SYSTEM TIME IN MILLISECONDS using Pocket pc Pin
plural22-Aug-07 23:28
plural22-Aug-07 23:28 
AnswerRe: GET THE SYSTEM TIME IN MILLISECONDS using Pocket pc Pin
Guffa23-Aug-07 1:31
Guffa23-Aug-07 1:31 
AnswerRe: l o w e r c a s e m u c h n i c e r Pin
Luc Pattyn23-Aug-07 1:12
sitebuilderLuc Pattyn23-Aug-07 1:12 
AnswerRe: GET THE SYSTEM TIME IN MILLISECONDS using Pocket pc Pin
Guffa23-Aug-07 1:24
Guffa23-Aug-07 1:24 
QuestionHow to create a file at a specified url Pin
RichardBlare22-Aug-07 22:56
RichardBlare22-Aug-07 22:56 
AnswerRe: How to create a file at a specified url Pin
plural22-Aug-07 23:03
plural22-Aug-07 23:03 
GeneralRe: How to create a file at a specified url Pin
RichardBlare22-Aug-07 23:13
RichardBlare22-Aug-07 23:13 
GeneralRe: How to create a file at a specified url Pin
plural22-Aug-07 23:21
plural22-Aug-07 23:21 
QuestionDNS.GETHOSTENTRY Pin
plural22-Aug-07 22:47
plural22-Aug-07 22:47 
AnswerRe: DNS.GETHOSTENTRY Pin
Dave Kreskowiak23-Aug-07 3:51
mveDave Kreskowiak23-Aug-07 3:51 
QuestionVB.NET and .NET Framework security Pin
Steven J Jowett22-Aug-07 22:32
Steven J Jowett22-Aug-07 22:32 
AnswerRe: VB.NET and .NET Framework security Pin
Dave Kreskowiak23-Aug-07 3:48
mveDave Kreskowiak23-Aug-07 3:48 
QuestionExport Data from VB 6 to Excel Pin
mistermike35022-Aug-07 22:31
mistermike35022-Aug-07 22:31 
AnswerRe: Export Data from VB 6 to Excel Pin
Dave Kreskowiak23-Aug-07 3:45
mveDave Kreskowiak23-Aug-07 3:45 

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.