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

C#

 
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 
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 
i have one panel and i put a flow layout panel in the main panel and flow layout panel has many images. my UI looks like this http://i.stack.imgur.com/14eJG.png[^]

now i got a code which scroll the container in the panel. i mean the flow layout will scroll in main panel when i will place my mouse at the left or right most area on the main panel. their code is working i checked but when i place their code in my project then that is not working, i means scrolling is not working when i place my mouse at the left or right most area on the main panel.

here i am attaching main code which causes to scroll the flow layout panel inside in main panel

protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED
return cp;
}
}
int _myval = 5;
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);

if (e.Y < metroPanel1.Top || e.Y > metroPanel1.Top + metroPanel1.Height) return;

if (e.X <= metroPanel1.Left && e.X >= metroPanel1.Left - 40)
{
if (metroPanel1.HorizontalScroll.Value <= _myval)
{
metroPanel1.HorizontalScroll.Value = _myval;
}
else
{
metroPanel1.HorizontalScroll.Value -= _myval;
}
}

if (e.X <= (metroPanel1.Left + metroPanel1.Width + 40) && e.X >= (metroPanel1.Left + metroPanel1.Width))
{
metroPanel1.HorizontalScroll.Value += _myval;
}
}

i just do not understand this value 40 used here if (e.X <= metroPanel1.Left && e.X >= metroPanel1.Left - 40)

i guess i need to use different value rather than 40 but i used 10 & 20 but did not work. here is my full project link from where anyone can download and see what is wrong in my routine which prevent the scrolling. here is the link https://onedrive.live.com/embed?cid=C4A6F16F34D7540A&resid=C4A6F16F34D7540A%21134&authkey=AM5Fq2gcFLtcw_A

so it is my request that please some one see my code and guide me what i need to change in code and why. thanks
tbhattacharjee

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 
Questionfinger print attendance device Pin
Jassim Rahma17-Sep-14 10:24
Jassim Rahma17-Sep-14 10:24 
AnswerRe: finger print attendance device Pin
Ravi Bhavnani17-Sep-14 15:17
professionalRavi Bhavnani17-Sep-14 15:17 
QuestionHow to use entity frame work in MVC web Application Pin
jeenak17-Sep-14 2:44
jeenak17-Sep-14 2:44 

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.