Click here to Skip to main content
15,844,013 members
Home / Discussions / C#
   

C#

 
SuggestionRe: C# How to grab html from selection of web browser control Pin
Richard Deeming26-Oct-23 22:47
mveRichard Deeming26-Oct-23 22:47 
GeneralRe: C# How to grab html from selection of web browser control Pin
Tridip Bhattacharjee from Unknown27-Oct-23 4:38
Tridip Bhattacharjee from Unknown27-Oct-23 4:38 
GeneralRe: C# How to grab html from selection of web browser control Pin
Richard Deeming27-Oct-23 4:51
mveRichard Deeming27-Oct-23 4:51 
QuestionADP Enterprise API help Pin
Mike Olmon 202125-Oct-23 13:10
Mike Olmon 202125-Oct-23 13:10 
AnswerRe: ADP Enterprise API help Pin
Richard Deeming25-Oct-23 23:32
mveRichard Deeming25-Oct-23 23:32 
GeneralRe: ADP Enterprise API help Pin
jschell26-Oct-23 5:58
jschell26-Oct-23 5:58 
QuestionIs there a way to Convert binding dataMember? Pin
Geanny Martin24-Oct-23 3:50
Geanny Martin24-Oct-23 3:50 
AnswerRe: Is there a way to Convert binding dataMember? Pin
Alan N24-Oct-23 5:21
Alan N24-Oct-23 5:21 
Yes you just need to use a Format event handler on the Binding object

For example
C#
private void AddBinding() {
  // Enable formatting and add the event handler
  Binding b = color1.DataBindings.Add("BackColor", NavBill.DataSource, "Color1", true);
  b.Format += PanelBackColorBinding_Format;
}

private void PanelBackColorBinding_Format(Object sender, ConvertEventArgs e) {
  if (e.DesiredType == typeof(Color)) {
    // Get the integer value from the DataColumn
    Int32 number = (Int32)e.Value;
    // Get the Color corresponding to the number
    // *** PUT YOUR OWN CODE HERE ***
    Color col = GetColor(number);

    // Assign the correct Color back into e.Value
    e.Value = col;
  }
}

Make sure that a default color is assigned to e.Value if there is any chance that the column will have missing or non convertable values.
NewsEvergrowth.AspForMarkDigExtension is out there now... Pin
James McCullough19-Oct-23 16:25
professionalJames McCullough19-Oct-23 16:25 
GeneralRe: Evergrowth.AspForMarkDigExtension is out there now... Pin
OriginalGriff19-Oct-23 19:22
mveOriginalGriff19-Oct-23 19:22 
GeneralRe: Evergrowth.AspForMarkDigExtension is out there now... Pin
James McCullough19-Oct-23 19:42
professionalJames McCullough19-Oct-23 19:42 
GeneralRe: Evergrowth.AspForMarkDigExtension is out there now... Pin
OriginalGriff19-Oct-23 21:39
mveOriginalGriff19-Oct-23 21:39 
GeneralRe: Evergrowth.AspForMarkDigExtension is out there now... Pin
jschell20-Oct-23 12:28
jschell20-Oct-23 12:28 
QuestionC# How to iterate in all TR & TD of multiple html table and extract value Pin
Tridip Bhattacharjee from Unknown19-Oct-23 0:11
Tridip Bhattacharjee from Unknown19-Oct-23 0:11 
AnswerRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Richard MacCutchan19-Oct-23 5:11
mveRichard MacCutchan19-Oct-23 5:11 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Dave Kreskowiak19-Oct-23 6:19
mveDave Kreskowiak19-Oct-23 6:19 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Richard MacCutchan19-Oct-23 6:24
mveRichard MacCutchan19-Oct-23 6:24 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Tridip Bhattacharjee from Unknown26-Oct-23 11:47
Tridip Bhattacharjee from Unknown26-Oct-23 11:47 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Richard MacCutchan26-Oct-23 23:04
mveRichard MacCutchan26-Oct-23 23:04 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Tridip Bhattacharjee from Unknown27-Oct-23 4:36
Tridip Bhattacharjee from Unknown27-Oct-23 4:36 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Richard MacCutchan27-Oct-23 4:50
mveRichard MacCutchan27-Oct-23 4:50 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Tridip Bhattacharjee from Unknown2-Nov-23 3:49
Tridip Bhattacharjee from Unknown2-Nov-23 3:49 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Dave Kreskowiak2-Nov-23 5:09
mveDave Kreskowiak2-Nov-23 5:09 
GeneralRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
Pete O'Hanlon2-Nov-23 4:45
subeditorPete O'Hanlon2-Nov-23 4:45 
AnswerRe: C# How to iterate in all TR & TD of multiple html table and extract value Pin
jschell19-Oct-23 6:08
jschell19-Oct-23 6:08 

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.