Click here to Skip to main content
14,358,929 members
   

C#

 
QuestionProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
Member 1449598412-Jun-19 3:46
memberMember 1449598412-Jun-19 3:46 
AnswerRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
OriginalGriff12-Jun-19 5:05
protectorOriginalGriff12-Jun-19 5:05 
GeneralRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
BillWoodruff12-Jun-19 5:57
mveBillWoodruff12-Jun-19 5:57 
AnswerRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
#realJSOP12-Jun-19 6:03
mve#realJSOP12-Jun-19 6:03 
AnswerRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
Gerry Schmitz12-Jun-19 7:15
mveGerry Schmitz12-Jun-19 7:15 
GeneralRe: ProcessId from ShDocVw.InternetExplorer(ShDocVw.ShellDocs) Pin
Eddy Vluggen12-Jun-19 12:12
mveEddy Vluggen12-Jun-19 12:12 
QuestionDraw vertical bold lines between some columns in datagridview Pin
henryvuong10-Jun-19 16:48
memberhenryvuong10-Jun-19 16:48 
AnswerRe: Draw vertical bold lines between some columns in datagridview Pin
OriginalGriff10-Jun-19 23:43
protectorOriginalGriff10-Jun-19 23:43 
Don't use CellPainting - use RowPostPaint:
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 13:34
memberhenryvuong11-Jun-19 13:34 
GeneralRe: Draw vertical bold lines between some columns in datagridview Pin
OriginalGriff11-Jun-19 21:06
protectorOriginalGriff11-Jun-19 21:06 
SuggestionRe: Draw vertical bold lines between some columns in datagridview Pin
Richard MacCutchan10-Jun-19 23:43
protectorRichard MacCutchan10-Jun-19 23:43 
QuestionHow to create a tree node with menu, submenu, child, item Pin
Samiul078-Jun-19 18:05
memberSamiul078-Jun-19 18:05 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz8-Jun-19 18:48
mveGerry Schmitz8-Jun-19 18:48 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 1:21
memberSamiul0710-Jun-19 1:21 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 2:23
protectorOriginalGriff10-Jun-19 2:23 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 4:35
memberSamiul0710-Jun-19 4:35 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 4:50
protectorOriginalGriff10-Jun-19 4:50 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
#realJSOP10-Jun-19 6:00
mve#realJSOP10-Jun-19 6:00 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Gerry Schmitz10-Jun-19 6:47
mveGerry Schmitz10-Jun-19 6:47 
AnswerRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff9-Jun-19 16:22
mveBillWoodruff9-Jun-19 16:22 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 1:21
memberSamiul0710-Jun-19 1:21 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 2:27
mveBillWoodruff10-Jun-19 2:27 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
Samiul0710-Jun-19 4:19
memberSamiul0710-Jun-19 4:19 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
OriginalGriff10-Jun-19 4:45
protectorOriginalGriff10-Jun-19 4:45 
GeneralRe: How to create a tree node with menu, submenu, child, item Pin
BillWoodruff10-Jun-19 7:59
mveBillWoodruff10-Jun-19 7: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.