Click here to Skip to main content
15,905,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: Resize Control Pin
BillWoodruff18-Sep-14 21:41
professionalBillWoodruff18-Sep-14 21:41 
GeneralRe: Resize Control Pin
AmbiguousName18-Sep-14 21:52
AmbiguousName18-Sep-14 21:52 
GeneralRe: Resize Control Pin
Rob Philpott18-Sep-14 22:12
Rob Philpott18-Sep-14 22:12 
GeneralRe: Resize Control Pin
BillWoodruff18-Sep-14 22:58
professionalBillWoodruff18-Sep-14 22:58 
GeneralRe: Resize Control Pin
Rob Philpott19-Sep-14 0:28
Rob Philpott19-Sep-14 0:28 
AnswerRe: Resize Control Pin
Richard MacCutchan18-Sep-14 22:18
mveRichard MacCutchan18-Sep-14 22:18 
GeneralRe: Resize Control Pin
AmbiguousName19-Sep-14 0:20
AmbiguousName19-Sep-14 0:20 
GeneralRe: Resize Control Pin
Richard MacCutchan19-Sep-14 3:39
mveRichard MacCutchan19-Sep-14 3:39 
AnswerRe: Resize Control Pin
Dave Kreskowiak19-Sep-14 2:23
mveDave Kreskowiak19-Sep-14 2:23 
AnswerRe: Resize Control Pin
BillWoodruff19-Sep-14 8:36
professionalBillWoodruff19-Sep-14 8:36 
Questionhow to convert pcl to pdf using ghostscript open source dll in C#.net under windows OS Pin
Member 1109382418-Sep-14 20:13
Member 1109382418-Sep-14 20:13 
AnswerRe: how to convert pcl to pdf using ghostscript open source dll in C#.net under windows OS Pin
BillWoodruff18-Sep-14 22:48
professionalBillWoodruff18-Sep-14 22:48 
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 
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 

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.