Click here to Skip to main content
15,900,325 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: DrawEllipse center on current cursor position? Pin
Luc Pattyn24-Sep-11 9:26
sitebuilderLuc Pattyn24-Sep-11 9:26 
GeneralRe: DrawEllipse center on current cursor position? Pin
ChrisDScott9324-Sep-11 23:13
ChrisDScott9324-Sep-11 23:13 
QuestionListview problem Pin
erickoronoh10kip23-Sep-11 7:30
erickoronoh10kip23-Sep-11 7:30 
AnswerRe: Listview problem Pin
Bert Mitton23-Sep-11 7:38
professionalBert Mitton23-Sep-11 7:38 
QuestionWhere and Why my row is not collored Pin
DeDelva23-Sep-11 3:19
DeDelva23-Sep-11 3:19 
AnswerRe: Where and Why my row is not collored Pin
Luc Pattyn23-Sep-11 3:32
sitebuilderLuc Pattyn23-Sep-11 3:32 
GeneralRe: Where and Why my row is not collored Pin
Scubapro23-Sep-11 3:49
Scubapro23-Sep-11 3:49 
AnswerRe: Where and Why my row is not collored Pin
DeDelva23-Sep-11 5:41
DeDelva23-Sep-11 5:41 
The last one is indeed not true...

For your first 2 points thx 4 the advice...

So my code between pre thags(sorry 4 that)
m_SelectedStyle = New DataGridViewCellStyle()
           m_SelectedStyle.BackColor = Color.LightBlue
           m_SelectedStyle.BackColor = SystemColors.Highlight
           DataGridView1.ReadOnly = True
           Dim SQLString As String = "SELECT id, bedrijfsnaam, startdatum, vervaldatum, omschrijving, netto, bruto, opmerkingen FROM Facturen"
           Dim DataSet As New DataSet()
           Dim OleDbDataAdapter As System.Data.OleDb.OleDbDataAdapter = New           System.Data.OleDb.OleDbDataAdapter(SQLString, oleConn)
           oleConn.Open()
           OleDbDataAdapter.Fill(DataSet, "Facturen")
           DataGridView1.DataSource = DataSet.Tables("Facturen")
           'here i do the code to check if a field is smaller then a certain date
            Dim vandaag As String = Today
           Dim i As Integer = 0
           For Each row As DataGridViewRow In DataGridView1.Rows
               If DataGridView1.Item(2, i).Value() > vandaag Then
                   DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.IndianRed
               ElseIf DataGridView1.Item(2, i).Value() < vandaag Then
                   DataGridView1.Rows(i).DefaultCellStyle.BackColor = Color.LightGreen
               End If
               i = i + 1
           Next

           oleConn.Close()


I hope is more clear now


Thx 4 the answers already

greetz
AnswerRe: Where and Why my row is not collored Pin
Scubapro23-Sep-11 3:48
Scubapro23-Sep-11 3:48 
GeneralRe: Where and Why my row is not collored Pin
DeDelva23-Sep-11 5:37
DeDelva23-Sep-11 5:37 
GeneralRe: Where and Why my row is not collored Pin
Scubapro25-Sep-11 21:31
Scubapro25-Sep-11 21:31 
QuestionImage Resizing Pin
eddieangel22-Sep-11 5:56
eddieangel22-Sep-11 5:56 
AnswerRe: Image Resizing Pin
Luc Pattyn22-Sep-11 7:47
sitebuilderLuc Pattyn22-Sep-11 7:47 
GeneralRe: Image Resizing Pin
eddieangel22-Sep-11 7:50
eddieangel22-Sep-11 7:50 
Questiondevenv.exe error Pin
DeDelva22-Sep-11 3:36
DeDelva22-Sep-11 3:36 
AnswerRe: devenv.exe error Pin
DaveAuld22-Sep-11 3:56
professionalDaveAuld22-Sep-11 3:56 
AnswerRe: devenv.exe error Pin
Luc Pattyn22-Sep-11 7:50
sitebuilderLuc Pattyn22-Sep-11 7:50 
QuestionSelect a particular item from listview and display it in various textboxes Pin
Lek Plepi22-Sep-11 1:31
Lek Plepi22-Sep-11 1:31 
AnswerRe: Select a particular item from listview and display it in various textboxes Pin
Lek Plepi23-Sep-11 21:29
Lek Plepi23-Sep-11 21:29 
QuestionSample project connect with Scanner Pin
kdakim21-Sep-11 23:20
kdakim21-Sep-11 23:20 
AnswerRe: Sample project connect with Scanner Pin
DaveAuld21-Sep-11 23:34
professionalDaveAuld21-Sep-11 23:34 
QuestionChange Column width from Datagridview without dataset Pin
DeDelva21-Sep-11 11:29
DeDelva21-Sep-11 11:29 
AnswerRe: Change Column width from Datagridview without dataset Pin
David C# Hobbyist.21-Sep-11 12:36
professionalDavid C# Hobbyist.21-Sep-11 12:36 
AnswerRe: Change Column width from Datagridview without dataset Pin
Luc Pattyn21-Sep-11 13:46
sitebuilderLuc Pattyn21-Sep-11 13:46 
AnswerRe: Change Column width from Datagridview without dataset Pin
DeDelva21-Sep-11 20:50
DeDelva21-Sep-11 20:50 

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.