Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
QuestionProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
Member 1449598412-Jun-19 2:46
Member 1449598412-Jun-19 2:46 
AnswerRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
OriginalGriff12-Jun-19 4:05
mveOriginalGriff12-Jun-19 4:05 
GeneralRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
BillWoodruff12-Jun-19 4:57
professionalBillWoodruff12-Jun-19 4:57 
AnswerRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
#realJSOP12-Jun-19 5:03
mve#realJSOP12-Jun-19 5:03 
AnswerRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
Gerry Schmitz12-Jun-19 6:15
mveGerry Schmitz12-Jun-19 6:15 
GeneralRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
Eddy Vluggen12-Jun-19 11:12
professionalEddy Vluggen12-Jun-19 11:12 
QuestionDraw vertical bold lines between some columns in datagridview Pin
henryvuong10-Jun-19 15:48
henryvuong10-Jun-19 15:48 
AnswerRe: Draw vertical bold lines between some columns in datagridview Pin
OriginalGriff10-Jun-19 22:43
mveOriginalGriff10-Jun-19 22:43 
Don't use CellPainting - use RowPostPaint:
C#
private void DataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
    {
    DataGridView dgv = sender as DataGridView;
    if (dgv != null)
        {
        Rectangle rect = dgv.GetRowDisplayRectangle(e.RowIndex, false);

        int leftRow = dgv.Columns["Col_B"].Index;
        int rightRow = dgv.Columns["Col_D"].Index;
        int leftX = dgv.GetCellDisplayRectangle(leftRow, e.RowIndex, true).X;
        int rightX = dgv.GetCellDisplayRectangle(rightRow, e.RowIndex, true).X
                      + dgv.GetCellDisplayRectangle(rightRow, e.RowIndex, true).Width;

        e.Graphics.DrawLine(Pens.Red, new Point(leftX, rect.Top), new Point(leftX, rect.Bottom));
        e.Graphics.DrawLine(Pens.Red, new Point(rightX, rect.Top), new Point(rightX, rect.Bottom));
        }
    }

Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Draw vertical bold lines between some columns in datagridview Pin
henryvuong11-Jun-19 12:34
henryvuong11-Jun-19 12:34 
GeneralRe: Draw vertical bold lines between some columns in datagridview Pin
OriginalGriff11-Jun-19 20:06
mveOriginalGriff11-Jun-19 20:06 
SuggestionRe: Draw vertical bold lines between some columns in datagridview Pin
Richard MacCutchan10-Jun-19 22:43
mveRichard MacCutchan10-Jun-19 22:43 
QuestionHow to create a tree node with menu, submenu, child, item Pin
Samiul078-Jun-19 17:05
Samiul078-Jun-19 17:05 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz8-Jun-19 17:48
mveGerry Schmitz8-Jun-19 17:48 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 0:21
Samiul0710-Jun-19 0:21 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 1:23
mveOriginalGriff10-Jun-19 1:23 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 3:35
Samiul0710-Jun-19 3:35 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 3:50
mveOriginalGriff10-Jun-19 3:50 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 5:00
mve#realJSOP10-Jun-19 5:00 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 5:47
mveGerry Schmitz10-Jun-19 5:47 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff9-Jun-19 15:22
professionalBillWoodruff9-Jun-19 15:22 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 0:21
Samiul0710-Jun-19 0:21 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 1:27
professionalBillWoodruff10-Jun-19 1:27 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 3:19
Samiul0710-Jun-19 3:19 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 3:45
mveOriginalGriff10-Jun-19 3:45 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 6:59
professionalBillWoodruff10-Jun-19 6:59 

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.