Click here to Skip to main content
15,906,106 members
Home / Discussions / C#
   

C#

 
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 
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 
He wrote this code to scroll his panel

C#
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;
}
}


and i follow the same but mine is not working. i am not trying to do any animation rather i want when i will place my mouse/left at the right most area of the panel then panel controls should start scroll. trying to simulate win8 start screen where lots of tiles are there and when people place his mouse at right/left most area then everything start scrolling.

please help. if u can help with code then answer.

thanks
tbhattacharjee

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 

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.