Click here to Skip to main content
16,020,741 members
Home / Discussions / C#
   

C#

 
AnswerRe: What is the way to connect and stream IP camera Pin
OriginalGriff4-Jan-21 0:31
mveOriginalGriff4-Jan-21 0:31 
GeneralRe: What is the way to connect and stream IP camera Pin
Member 133273664-Jan-21 0:58
Member 133273664-Jan-21 0:58 
AnswerRe: What is the way to connect and stream IP camera Pin
RickZeeland4-Jan-21 0:40
mveRickZeeland4-Jan-21 0:40 
QuestionUsing 4D linked List make a Full functional Noted Pad on Winform Pin
Member 150308153-Jan-21 12:39
Member 150308153-Jan-21 12:39 
AnswerRe: Using 4D linked List make a Full functional Noted Pad on Winform Pin
OriginalGriff3-Jan-21 20:22
mveOriginalGriff3-Jan-21 20:22 
GeneralRe: Using 4D linked List make a Full functional Noted Pad on Winform Pin
Member 150308154-Jan-21 4:37
Member 150308154-Jan-21 4:37 
GeneralRe: Using 4D linked List make a Full functional Noted Pad on Winform Pin
Mycroft Holmes4-Jan-21 11:26
professionalMycroft Holmes4-Jan-21 11:26 
QuestionHow to make DataGridView scrolling smooth (flickers problem)? Pin
Alex Dunlop3-Jan-21 6:15
Alex Dunlop3-Jan-21 6:15 
I have a DataGridView in my project which loads hundreds of rows from SQL CE file. It contains colorful texts and comboboxes. I searched online and found some solutions. Many of them says that I need to use double buffer. One of those solutions was this:
C#
public static class ExtensionMethods
{
   public static void DoubleBuffered(this DataGridView dgv, bool setting)
   {
      Type dgvType = dgv.GetType();
      PropertyInfo pi = dgvType.GetProperty("DoubleBuffered", BindingFlags.Instance | BindingFlags.NonPublic);
      pi.SetValue(dgv, setting, null);
   }
}

and:
C#
this.dataGridView1.DoubleBuffered(true);

I use following reference:
C#
using System.Reflection;

My problem is that: 1) DataGridView in above class gives CS0118 error (has red underline)
2) Where should I use
this.dataGridView1.DoubleBuffered(true);
?

modified 3-Jan-21 22:26pm.

AnswerRe: How to make DataGridView scrolling smooth (flickers problem)? Pin
Maciej Los3-Jan-21 23:47
mveMaciej Los3-Jan-21 23:47 
GeneralRe: How to make DataGridView scrolling smooth (flickers problem)? Pin
Alex Dunlop4-Jan-21 5:46
Alex Dunlop4-Jan-21 5:46 
GeneralRe: How to make DataGridView scrolling smooth (flickers problem)? Pin
Maciej Los4-Jan-21 6:34
mveMaciej Los4-Jan-21 6:34 
GeneralRe: How to make DataGridView scrolling smooth (flickers problem)? Pin
Alex Dunlop4-Jan-21 6:46
Alex Dunlop4-Jan-21 6:46 
GeneralRe: How to make DataGridView scrolling smooth (flickers problem)? Pin
Maciej Los4-Jan-21 7:38
mveMaciej Los4-Jan-21 7:38 
AnswerRe: How to make DataGridView scrolling smooth (flickers problem)? Pin
Maciej Los6-Jan-21 21:46
mveMaciej Los6-Jan-21 21:46 
Questioni have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
Member 1376816331-Dec-20 6:05
Member 1376816331-Dec-20 6:05 
AnswerRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
Richard MacCutchan31-Dec-20 6:15
mveRichard MacCutchan31-Dec-20 6:15 
GeneralRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
BillWoodruff31-Dec-20 23:05
professionalBillWoodruff31-Dec-20 23:05 
GeneralRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
Richard MacCutchan31-Dec-20 23:13
mveRichard MacCutchan31-Dec-20 23:13 
GeneralRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
BillWoodruff1-Jan-21 0:00
professionalBillWoodruff1-Jan-21 0:00 
GeneralRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
Richard MacCutchan1-Jan-21 0:24
mveRichard MacCutchan1-Jan-21 0:24 
AnswerRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
Gerry Schmitz31-Dec-20 9:15
mveGerry Schmitz31-Dec-20 9:15 
GeneralRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
BillWoodruff31-Dec-20 22:58
professionalBillWoodruff31-Dec-20 22:58 
GeneralRe: i have a problem in treeview Additional information: Index was outside the bounds of the array. Pin
Gerry Schmitz2-Jan-21 9:28
mveGerry Schmitz2-Jan-21 9:28 
QuestionWCF Service doesn't return data Pin
Member 1483009827-Dec-20 6:00
Member 1483009827-Dec-20 6:00 
QuestionRegEx Not Properly Matching Pin
#realJSOP26-Dec-20 3:07
professional#realJSOP26-Dec-20 3:07 

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.