Click here to Skip to main content
15,908,020 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionWebbrowser Control DrawToBitmap Pin
Ahmad Zaidi21-Aug-07 13:19
Ahmad Zaidi21-Aug-07 13:19 
AnswerRe: Webbrowser Control DrawToBitmap Pin
Ahmad Zaidi21-Aug-07 13:31
Ahmad Zaidi21-Aug-07 13:31 
QuestionDrawedge API call VB2005 Pin
koosvanderhurk21-Aug-07 12:31
koosvanderhurk21-Aug-07 12:31 
AnswerRe: Drawedge API call VB2005 Pin
Christian Graus21-Aug-07 12:45
protectorChristian Graus21-Aug-07 12:45 
Questiondate variable to string variable Pin
Arif Liminto21-Aug-07 12:22
professionalArif Liminto21-Aug-07 12:22 
AnswerRe: date variable to string variable Pin
Christian Graus21-Aug-07 12:45
protectorChristian Graus21-Aug-07 12:45 
AnswerRe: date variable to string variable Pin
Mark Churchill21-Aug-07 21:07
Mark Churchill21-Aug-07 21:07 
QuestionHelp how do you loop thru each record in DataGrid Pin
Smokeywade21-Aug-07 11:06
Smokeywade21-Aug-07 11:06 
Hello I'm trying to get time difference for each record in my datagrid - but I'm currently having problems with my loop - I'm only getting the time difference for the first record - Help will be really appreciated. In this example I'm using a for each - any ideas will be great...

Dim d1 As DateTime = conv
Dim d2 As DateTime = System.DateTime.Today

Dim subtract, absday
subtract = 0

'gworkdays = DateDiff("d", d1, d2)
Dim rec As DataRowView
'Dim x As Integer

'Do Time Calculation for each record

For Each rec In dgOrderReport.DataSource

Select Case DatePart("w", d1)
Case 1
subtract = subtract + 1
Case 7
subtract = subtract + 2
End Select

Select Case DatePart("w", d2)
Case 1
subtract = subtract + 2
Case 7
subtract = subtract + 1
End Select

absday = DateDiff("d", d1, d2) + 1 - subtract

fncGetDays = absday - CInt(2 * (absday \ 7))

If fncGetDays < 0 Then fncGetDays = 0
'x = x + 1

Next rec<code></code>

Thank You
AnswerRe: Help how do you loop thru each record in DataGrid Pin
Christian Graus21-Aug-07 11:18
protectorChristian Graus21-Aug-07 11:18 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Smokeywade21-Aug-07 12:12
Smokeywade21-Aug-07 12:12 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Christian Graus21-Aug-07 12:50
protectorChristian Graus21-Aug-07 12:50 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Smokeywade21-Aug-07 13:26
Smokeywade21-Aug-07 13:26 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Christian Graus21-Aug-07 13:43
protectorChristian Graus21-Aug-07 13:43 
GeneralRe: Help how do you loop thru each record in DataGrid Pin
Smokeywade22-Aug-07 3:51
Smokeywade22-Aug-07 3:51 
QuestionHo to generate *.chm file from html files Pin
Jahnson K21-Aug-07 10:38
Jahnson K21-Aug-07 10:38 
AnswerRe: Ho to generate *.chm file from html files Pin
Paul Conrad26-Aug-07 9:31
professionalPaul Conrad26-Aug-07 9:31 
AnswerRe: Ho to generate *.chm file from html files Pin
reto.knaak14-Jan-11 4:11
reto.knaak14-Jan-11 4:11 
QuestionVB.Net/ADO.NET question on populating a gridview Pin
Jordan Martz21-Aug-07 10:16
Jordan Martz21-Aug-07 10:16 
AnswerRe: VB.Net/ADO.NET question on populating a gridview Pin
Johan Hakkesteegt23-Aug-07 3:10
Johan Hakkesteegt23-Aug-07 3:10 
QuestionHelp please to use Enterprise library 3.1 Pin
jesusnaun21-Aug-07 9:36
jesusnaun21-Aug-07 9:36 
AnswerRe: Help please to use Enterprise library 3.1 Pin
Mark Churchill21-Aug-07 18:50
Mark Churchill21-Aug-07 18:50 
GeneralRe: Help please to use Enterprise library 3.1 Pin
jesusnaun22-Aug-07 4:06
jesusnaun22-Aug-07 4:06 
GeneralRe: Help please to use Enterprise library 3.1 Pin
Mark Churchill22-Aug-07 15:03
Mark Churchill22-Aug-07 15:03 
Questionmemorystream Pin
WhiteGirl2321-Aug-07 8:31
WhiteGirl2321-Aug-07 8:31 
AnswerRe: memorystream Pin
Dave Kreskowiak21-Aug-07 8:54
mveDave Kreskowiak21-Aug-07 8:54 

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.