Click here to Skip to main content
15,887,898 members
Home / Discussions / C#
   

C#

 
QuestionRestClient POST Problem Pin
daniel87072118-Sep-14 17:57
daniel87072118-Sep-14 17:57 
AnswerRe: RestClient POST Problem Pin
jschell19-Sep-14 12:19
jschell19-Sep-14 12:19 
Questionget a table from a website and save it into a db Pin
Mohammad Kamali(mo_kml)18-Sep-14 11:02
Mohammad Kamali(mo_kml)18-Sep-14 11:02 
AnswerRe: get a table from a website and save it into a db Pin
Dave Kreskowiak18-Sep-14 14:27
mveDave Kreskowiak18-Sep-14 14:27 
AnswerRe: get a table from a website and save it into a db Pin
Sibeesh KV26-Sep-14 0:24
professionalSibeesh KV26-Sep-14 0:24 
Questionhow to detect that user touch the panel left or right edge WinForm Pin
Tridip Bhattacharjee18-Sep-14 4:56
professionalTridip Bhattacharjee18-Sep-14 4:56 
AnswerRe: how to detect that user touch the panel left or right edge WinForm Pin
Eddy Vluggen18-Sep-14 5:27
professionalEddy Vluggen18-Sep-14 5:27 
AnswerRe: how to detect that user touch the panel left or right edge WinForm Pin
BillWoodruff18-Sep-14 6:10
professionalBillWoodruff18-Sep-14 6:10 
I assume this is a Windows Forms project with: on the same Form:

1. a Panel named 'panel1 200x200 in size

2. a Label named 'label1

3. you define the Panel's 'MouseMove EventHandler:
C#
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
    if (e.X < 5 || e.X > 195)
    {
        label1.Text = e.Location.ToString();
    }
    else
    {
        label1.Text = "";
    }
}
The label will be updated with the current mouse position in 'panel1 co-ordinates every time it is moved within 5 points of the right and left side.

Consider another simple solution:

1. a Panel, 'panel1 200x200

2. a Panel, 'panel2 190x200

3. a Label, 'label1

by placing 'panel2 inside 'panel1 (adding 'panel2 to panel1's ControlCollection), and writing this MouseMove EventHandler for 'panel1:
C#
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
    label1.Text = e.Location.ToString();
}
The mouse-move will be detected only when the mouse is over the area not covered by 'panel2: which would be an area of the two horizontal sides of 'panel1 5 points in width.
« I had therefore to remove knowledge, in order to make room for belief » Immanuel Kant

GeneralRe: how to detect that user touch the panel left or right edge WinForm Pin
Tridip Bhattacharjee18-Sep-14 21:46
professionalTridip Bhattacharjee18-Sep-14 21:46 
GeneralRe: how to detect that user touch the panel left or right edge WinForm Pin
BillWoodruff18-Sep-14 22:23
professionalBillWoodruff18-Sep-14 22:23 
QuestionProgrammatically Scrolling is not working C# WinForm Pin
Tridip Bhattacharjee18-Sep-14 4:41
professionalTridip Bhattacharjee18-Sep-14 4:41 
AnswerRe: Programmatically Scrolling is not working C# WinForm Pin
Dave Kreskowiak18-Sep-14 5:46
mveDave Kreskowiak18-Sep-14 5:46 
AnswerRe: Programmatically Scrolling is not working C# WinForm Pin
BillWoodruff18-Sep-14 7:05
professionalBillWoodruff18-Sep-14 7:05 
GeneralRe: Programmatically Scrolling is not working C# WinForm Pin
Tridip Bhattacharjee18-Sep-14 21:43
professionalTridip Bhattacharjee18-Sep-14 21:43 
GeneralRe: Programmatically Scrolling is not working C# WinForm Pin
BillWoodruff18-Sep-14 22:38
professionalBillWoodruff18-Sep-14 22:38 
GeneralRe: Programmatically Scrolling is not working C# WinForm Pin
Tridip Bhattacharjee19-Sep-14 3:34
professionalTridip Bhattacharjee19-Sep-14 3:34 
GeneralRe: Programmatically Scrolling is not working C# WinForm Pin
BillWoodruff19-Sep-14 21:36
professionalBillWoodruff19-Sep-14 21:36 
QuestionHow do i delete my visual studio online project Pin
J.J.S_;)18-Sep-14 0:51
J.J.S_;)18-Sep-14 0:51 
AnswerRe: How do i delete my visual studio online project Pin
Eddy Vluggen18-Sep-14 1:01
professionalEddy Vluggen18-Sep-14 1:01 
AnswerRe: How do i delete my visual studio online project Pin
Marco Bertschi18-Sep-14 1:51
protectorMarco Bertschi18-Sep-14 1:51 
QuestionStreaming USB webcam for image processing Pin
admbrt17-Sep-14 11:58
admbrt17-Sep-14 11:58 
AnswerRe: Streaming USB webcam for image processing Pin
Ravi Bhavnani17-Sep-14 15:15
professionalRavi Bhavnani17-Sep-14 15:15 
GeneralRe: Streaming USB webcam for image processing Pin
admbrt18-Sep-14 6:54
admbrt18-Sep-14 6:54 
AnswerRe: Streaming USB webcam for image processing Pin
Ravi Bhavnani20-Sep-14 11:16
professionalRavi Bhavnani20-Sep-14 11:16 
GeneralRe: Streaming USB webcam for image processing Pin
admbrt28-Sep-14 2:23
admbrt28-Sep-14 2:23 

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.