15,891,567 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ajit_machhe (Top 24 by date)
ajit_machhe
4-May-12 14:37pm
View
Dear Shahin,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace listtester
{
///
/// Interaction logic for MainWindow.xaml
///
///
public class ThumbPosition : Thumb
{
public double X { get; set; }
public double Y { get; set; }
////public double Width { get; set; }
////public double Height { get; set; }
//private List<ThumbPosition> MyList = new List<ThumbPosition>();
public ThumbPosition(double X, double Y)
{
//this.X = x;
//this.Y = y;
//this.Width = width;
//this.Height = height;
DragDelta += new DragDeltaEventHandler(this.MoveThumb_DragDelta);
}
public void MoveThumb_DragDelta(object sender, DragDeltaEventArgs e)
{
Thumb thumb = sender as Thumb;
//Canvas.SetLeft(thumb, Canvas.GetLeft(thumb) + e.HorizontalChange);
//Canvas.SetTop(thumb, Canvas.GetTop(thumb) + e.VerticalChange);
Canvas.SetLeft(thumb, e.HorizontalChange);
// Canvas.SetTop(thumb, 10 + e.VerticalChange);
}
}
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
ThumbPosition th = new ThumbPosition(10,20);
th.Width = 140;
th.Height = 40;
//Canvas.SetLeft(th, 10);
//Canvas.SetTop(th, 20);
th.Background = System.Windows.Media.Brushes.Orange;
canv.Children.Add(th);
}
}
}
i tried this but not working if you could help me more ?
ajit_machhe
10-Apr-12 14:26pm
View
Thanks a lot for you patience...
i will check it tomorrow because I have to wake up early in morning.
am sorry for trouble i created.
i will try to do my best but if i fail.(i will try not to.) i hope i can ask for help again here...
thanks a lot dear...
ajit_machhe
10-Apr-12 14:11pm
View
appreciate* (miss spell)
ajit_machhe
10-Apr-12 14:10pm
View
Dear Shahin,
i appricate your help but i didn't understand mylist.where and mylist.add
i guess i am making you upset by asking question again and again..
if i do... I am really very sorry. i didn't mean to bother but I am learning.
ajit_machhe
10-Apr-12 14:06pm
View
how do i add new instance of class to a collection ??
i didn't understand this part..
ajit_machhe
10-Apr-12 13:59pm
View
well.. there isn't problem in code..
its just overlapping... that what i have to stop.
ajit_machhe
10-Apr-12 13:55pm
View
what exactly should i do with my code ?
ajit_machhe
10-Apr-12 13:38pm
View
can i contact you with an email ?
ajit_machhe
10-Apr-12 13:38pm
View
where should i upload solution ?
ajit_machhe
10-Apr-12 12:08pm
View
:( i am not able to do it.
could you please help ?? again ?
please help Shahin.
ajit_machhe
10-Apr-12 2:15am
View
thanks a lot... i will check by the EOD today and let you know...
thanks a lot .. :)
ajit_machhe
9-Apr-12 13:08pm
View
thanks for looking into it SA :)
could you please help me with this ??
The reason i used canvas is that i can find the proper position of the control.
(in simple way all i have to get left of canvas from control)The position of the control is important to me.
ajit_machhe
9-Apr-12 2:33am
View
execute data using command prompt ??
I guess i can help but you have to provide more info.
ajit_machhe
9-Apr-12 1:53am
View
Hi Clifford,
(sorry for late reply)
if possible please help me with this.
i still cant stop overlapping...
ajit_machhe
28-Mar-12 16:52pm
View
from my point of view... which video do you have to play ? (i mean file type)..
ajit_machhe
7-Mar-12 17:34pm
View
thank you for looking into it... and i will do that the same..
but is there anyother way to do that ? i mean easy way..?
ajit_machhe
5-Mar-12 0:58am
View
am sorry dear i can't help then..
ajit_machhe
5-Mar-12 0:17am
View
if you are using Gmail try port 465.
ajit_machhe
5-Mar-12 0:14am
View
are you developing windows mobile application ? or window application ?
if you are using window application WPF will help you better..
ajit_machhe
2-Mar-12 10:04am
View
Can you please elaborate ? I guess i can help.
ajit_machhe
2-Mar-12 9:56am
View
Go slow on Problems....
ajit_machhe
29-Feb-12 9:19am
View
this is simplest solution..
ajit_machhe
23-Feb-12 13:52pm
View
ajit dot machhe at g mail dot com
ajit_machhe
22-Feb-12 16:17pm
View
Hi Mukund,
i am using windows 7 ultimate edition and vs2010 and using as an administrator so i never had this error.
i am sorry for the error but still not sure why the error was occured ?
i will see if something i can do.
meanwhile... please try to login as administrator and run the code again.
Show More