Click here to Skip to main content
15,115,261 members
Home / Discussions / C#
   

C#

 
Questionhow to find all elements of a webpage Pin
hosseinDolat9-Sep-12 2:09
MemberhosseinDolat9-Sep-12 2:09 
AnswerRe: how to find all elements of a webpage Pin
jschell9-Sep-12 5:04
Memberjschell9-Sep-12 5:04 
GeneralRe: how to find all elements of a webpage Pin
hosseinDolat9-Sep-12 16:53
MemberhosseinDolat9-Sep-12 16:53 
GeneralRe: how to find all elements of a webpage Pin
jschell10-Sep-12 9:48
Memberjschell10-Sep-12 9:48 
GeneralRe: how to find all elements of a webpage Pin
hosseinDolat10-Sep-12 15:36
MemberhosseinDolat10-Sep-12 15:36 
GeneralRe: how to find all elements of a webpage Pin
jschell11-Sep-12 9:28
Memberjschell11-Sep-12 9:28 
QuestionDatagridview Empty space Click Events Pin
mohammadkaab9-Sep-12 1:57
Membermohammadkaab9-Sep-12 1:57 
AnswerRe: Datagridview Empty space Click Events Pin
Alan N9-Sep-12 4:19
MemberAlan N9-Sep-12 4:19 
You'll have to use the HitTest method to get a HitTestInfo object containing information about the DataGridView element existing at the clicked mouse coordinates.

There are two ways to tell if the blank area beneath the rows was clicked. Both are shown in the code fragment.

C#
private void dgv_MouseClick(object sender, MouseEventArgs e) {
  // Use Type property ( == Nothing for the blank area)
  Debug.Print("{0}", dgv.HitTest(e.X, e.Y).Type);

  // Use static value Nowhere
  Debug.Print("MouseClick was Nowhere {0}", dgv.HitTest(e.X, e.Y) == DataGridView.HitTestInfo.Nowhere);
}


Alan.
QuestionWindows 7 Files Explorer - New Folder In Tree Pin
fakir4458-Sep-12 23:57
Memberfakir4458-Sep-12 23:57 
AnswerRe: Windows 7 Files Explorer - New Folder In Tree Pin
Eddy Vluggen9-Sep-12 1:29
professionalEddy Vluggen9-Sep-12 1:29 
GeneralRe: Windows 7 Files Explorer - New Folder In Tree Pin
fakir4459-Sep-12 6:14
Memberfakir4459-Sep-12 6:14 
GeneralRe: Windows 7 Files Explorer - New Folder In Tree Pin
Eddy Vluggen9-Sep-12 6:35
professionalEddy Vluggen9-Sep-12 6:35 
GeneralRe: Windows 7 Files Explorer - New Folder In Tree Pin
fakir4459-Sep-12 10:24
Memberfakir4459-Sep-12 10:24 
QuestionIs it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Mohammad Dayyan8-Sep-12 22:52
MemberMohammad Dayyan8-Sep-12 22:52 
QuestionRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Eddy Vluggen9-Sep-12 1:26
professionalEddy Vluggen9-Sep-12 1:26 
AnswerRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Mohammad Dayyan9-Sep-12 1:52
MemberMohammad Dayyan9-Sep-12 1:52 
AnswerRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Eddy Vluggen9-Sep-12 2:12
professionalEddy Vluggen9-Sep-12 2:12 
AnswerRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
jschell9-Sep-12 5:24
Memberjschell9-Sep-12 5:24 
GeneralRe: Is it OK to implement Repository Pattern with Singleton in C# and EntityFramework ? Pin
Mohammad Dayyan27-Sep-12 3:26
MemberMohammad Dayyan27-Sep-12 3:26 
QuestionC# scheduled jobs Pin
dcof8-Sep-12 17:46
Memberdcof8-Sep-12 17:46 
AnswerRe: C# scheduled jobs Pin
PIEBALDconsult8-Sep-12 20:08
professionalPIEBALDconsult8-Sep-12 20:08 
AnswerRe: C# scheduled jobs Pin
jschell9-Sep-12 5:27
Memberjschell9-Sep-12 5:27 
QuestionC# directory folder levels Pin
dcof8-Sep-12 17:45
Memberdcof8-Sep-12 17:45 
AnswerRe: C# directory folder levels Pin
Eddy Vluggen9-Sep-12 1:23
professionalEddy Vluggen9-Sep-12 1:23 
AnswerRe: C# directory folder levels Pin
jschell9-Sep-12 5:30
Memberjschell9-Sep-12 5:30 

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.