Click here to Skip to main content
15,917,174 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: [help] vb.net image resizing in picturebox Pin
Eddy Vluggen16-May-15 23:53
professionalEddy Vluggen16-May-15 23:53 
GeneralRe: [help] vb.net image resizing in picturebox Pin
Richard Andrew x6417-May-15 5:29
professionalRichard Andrew x6417-May-15 5:29 
GeneralRe: [help] vb.net image resizing in picturebox Pin
Eddy Vluggen17-May-15 6:36
professionalEddy Vluggen17-May-15 6:36 
QuestionCell painting in datagridview Pin
Helium9913-May-15 16:19
Helium9913-May-15 16:19 
AnswerRe: Cell painting in datagridview Pin
Eddy Vluggen15-May-15 6:26
professionalEddy Vluggen15-May-15 6:26 
GeneralRe: Cell painting in datagridview Pin
Helium9916-May-15 13:17
Helium9916-May-15 13:17 
GeneralRe: Cell painting in datagridview Pin
Eddy Vluggen16-May-15 23:50
professionalEddy Vluggen16-May-15 23:50 
GeneralRe: Cell painting in datagridview Pin
Helium9917-May-15 14:03
Helium9917-May-15 14:03 
Wow, thank you! That is mighty impressive Smile | :) With a bit of fiddling i got the required triangle shape.

[code]
VB
e.Handled = False

      If 0 = e.ColumnIndex Then
          If -1 = e.RowIndex Then
              Return
          End If

          e.PaintBackground(e.CellBounds, DataGridViewElementStates.Selected = e.State)

          e.PaintContent(e.ClipBounds)

          Dim x1 As Integer = e.CellBounds.Right
          Dim y1 As Integer = e.CellBounds.Top

          Dim x2 As Integer = x1 - 7
          Dim y2 As Integer = y1

          Dim y3 As Integer = y1 + 7
          Dim x3 As Integer = x1



          e.Graphics.FillPolygon(Brushes.Red, {New Point(x1, y1), New Point(x2, y2), New Point(x3, y3)})
          '  e.Graphics.FillRectangle(Brushes.Red, New Rectangle(e.CellBounds.Location, rectSize))

          e.Handled = True
      End If


[/code]

However 2 things to ask please. How do is set which column the shape is in and when clicked
the text forecolor changes to white (until released). Can that forecolor not change ?
GeneralRe: Cell painting in datagridview Pin
Eddy Vluggen18-May-15 2:43
professionalEddy Vluggen18-May-15 2:43 
Questiongrouping is not working Pin
hussain54813-May-15 6:30
hussain54813-May-15 6:30 
AnswerRe: grouping is not working Pin
Dave Kreskowiak13-May-15 14:43
mveDave Kreskowiak13-May-15 14:43 
Question[RESOLVED] Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
SepPax13-May-15 1:12
SepPax13-May-15 1:12 
AnswerRe: Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
Richard Andrew x6413-May-15 5:48
professionalRichard Andrew x6413-May-15 5:48 
GeneralRe: Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
SepPax13-May-15 10:28
SepPax13-May-15 10:28 
GeneralRe: Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
Tim Carmichael14-May-15 2:34
Tim Carmichael14-May-15 2:34 
Answer[Resolved] Can a COM port be reached by it's name or GUID Class ID instead of the COM Port name? Pin
SepPax16-May-15 5:52
SepPax16-May-15 5:52 
QuestionDataGridView selection and focus Pin
Kenny-A11-May-15 11:34
Kenny-A11-May-15 11:34 
QuestionSerial data receive routing Pin
SepPax11-May-15 7:18
SepPax11-May-15 7:18 
AnswerRe: Serial data receive routing Pin
Richard MacCutchan11-May-15 7:38
mveRichard MacCutchan11-May-15 7:38 
GeneralRe: Serial data receive routing Pin
SepPax11-May-15 10:07
SepPax11-May-15 10:07 
GeneralRe: Serial data receive routing Pin
Sascha Lefèvre11-May-15 10:24
professionalSascha Lefèvre11-May-15 10:24 
GeneralRe: Serial data receive routing Pin
SepPax11-May-15 20:42
SepPax11-May-15 20:42 
GeneralRe: Serial data receive routing Pin
Richard MacCutchan11-May-15 21:12
mveRichard MacCutchan11-May-15 21:12 
GeneralRe: Serial data receive routing Pin
SepPax12-May-15 1:56
SepPax12-May-15 1:56 
GeneralRe: Serial data receive routing Pin
Richard MacCutchan12-May-15 5:05
mveRichard MacCutchan12-May-15 5:05 

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.