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

C#

 
AnswerRe: How to prevent specified files from being deleted + C# Pin
Pete O'Hanlon22-May-12 1:50
mvePete O'Hanlon22-May-12 1:50 
QuestionRe: How to prevent specified files from being deleted + C# Pin
jojoba201122-May-12 3:19
jojoba201122-May-12 3:19 
QuestionApply gradient in control DataGridView(c#) Pin
Emanuel vargas20-May-12 10:54
Emanuel vargas20-May-12 10:54 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Richard Andrew x6420-May-12 12:04
professionalRichard Andrew x6420-May-12 12:04 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Emanuel vargas20-May-12 15:30
Emanuel vargas20-May-12 15:30 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Luc Pattyn20-May-12 13:58
sitebuilderLuc Pattyn20-May-12 13:58 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Emanuel vargas20-May-12 15:43
Emanuel vargas20-May-12 15:43 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Luc Pattyn20-May-12 16:11
sitebuilderLuc Pattyn20-May-12 16:11 
In order for this to work, you need to have your own DGV class derived from DataGridView, and implement an OnPaint method, which calls base.OnPaint() AFTER you are done with the background.

Here[^] is the relevant MSDN page; the important sentence is
When creating a new custom control or an inherited control with a different visual appearance, you must provide code to render the control by overriding the OnPaint method. For more information, see Overriding the OnPaint Method and Custom Control Painting and Rendering.
and it contains links to more explanation.

IMO you really should study a book on C# and WinForms before trying all this... And then use Google to locate the detailed documentation and some examples.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

AnswerRe: Apply gradient in control DataGridView(c#) Pin
Emanuel vargas21-May-12 5:20
Emanuel vargas21-May-12 5:20 
GeneralFuzzy C# code Pin
Cbadeg20-May-12 10:32
Cbadeg20-May-12 10:32 
GeneralRe: Fuzzy C# code Pin
Dave Kreskowiak20-May-12 11:39
mveDave Kreskowiak20-May-12 11:39 
GeneralRe: Fuzzy C# code Pin
BillWoodruff20-May-12 15:26
professionalBillWoodruff20-May-12 15:26 
QuestionHow to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
ShadowUz20-May-12 7:29
ShadowUz20-May-12 7:29 
AnswerRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
Ravi Bhavnani20-May-12 7:32
professionalRavi Bhavnani20-May-12 7:32 
GeneralRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
ShadowUz20-May-12 7:43
ShadowUz20-May-12 7:43 
AnswerRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
Ravi Bhavnani20-May-12 7:48
professionalRavi Bhavnani20-May-12 7:48 
QuestionHow to refresh or update DataGrid Cell Value ... Pin
nassimnastaran18-May-12 20:25
nassimnastaran18-May-12 20:25 
AnswerRe: How to refresh or update DataGrid Cell Value ... Pin
OriginalGriff18-May-12 20:51
mveOriginalGriff18-May-12 20:51 
AnswerRe: How to refresh or update DataGrid Cell Value ... Pin
Alan N19-May-12 3:06
Alan N19-May-12 3:06 
GeneralRe: How to refresh or update DataGrid Cell Value ... Pin
nassimnastaran19-May-12 9:01
nassimnastaran19-May-12 9:01 
QuestionDoes This Only Happen To Me? Pin
Roger Wright18-May-12 18:53
professionalRoger Wright18-May-12 18:53 
AnswerRe: Does This Only Happen To Me? Pin
OriginalGriff18-May-12 20:58
mveOriginalGriff18-May-12 20:58 
GeneralRe: Does This Only Happen To Me? Pin
Pete O'Hanlon18-May-12 22:42
mvePete O'Hanlon18-May-12 22:42 
GeneralRe: Does This Only Happen To Me? Pin
OriginalGriff18-May-12 22:47
mveOriginalGriff18-May-12 22:47 
GeneralRe: Does This Only Happen To Me? Pin
Pete O'Hanlon19-May-12 2:10
mvePete O'Hanlon19-May-12 2:10 

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.