Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
78% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
4
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #4K
~5K People Reached
Favorite Tags
Member Avatar for moroshko

Hi, Say MyClass inherits from BaseClass, and I write the following constructor for MyClass: [code] public MyClass() { DoSomething(); } [/code] When MyClass constructor is called, does it call automatically the BaseClass constructor (even though I didn't explicitly wrote this) ? Thanks !

Member Avatar for Beata7
0
177
Member Avatar for moroshko

Hello ! Why the following fallback for IE [icode]color: red;[/icode] does not work ? In IE7, the color is black rather than red. [URL="http://jsfiddle.net/JryG2/1/"]Live demo here[/URL] HTML: [code] <div> <span>Hello</span> </div> [/code] CSS: [code] div { width: 200px; height: 100px; background-color: blue; text-align: center; } span { font-size: 2em; color: …

Member Avatar for macgurl70
0
121
Member Avatar for moroshko

Hello, I created a new Windows Application and added a Panel to the Form. But, I don't see the MouseWheel event of the Panel. Panel derives from Control, which has the MouseWheel event. So why Panel does not have the MouseWheel event ? Thanks !

Member Avatar for xiehuanxie
0
2K
Member Avatar for Nerathas

Hi, I am trying to write a loop that lists all the square results until the number given in. So for example if i would give in 100 it would list the squares in a list wich would be 1, 4, 9, 16 etc... The problem is i if i …

Member Avatar for Geekitygeek
0
105
Member Avatar for moroshko

Hi, I have an Ellipse on a Canvas and I'm doing a Hit Testing on it. Every time I click the stroke of the Ellipse, the test pass. If I click in the middle of the Ellipse, the test fails. This is good ! After I fill the ellipse like …

0
67
Member Avatar for moroshko

Hi, Consider this code: [CODE]Ellipse myCircle = new Ellipse(); myCircle.Width = 400; myCircle.Height = 400; myCircle.Stroke = Brushes.PeachPuff; myCircle.StrokeThickness = 25; myCircle.ToolTip = "Bold Circle"; Canvas.SetTop(myCircle, 0); Canvas.SetLeft(myCircle, 0); canvas.Children.Add(myCircle); Ellipse myCircle2 = new Ellipse(); myCircle2.Width = 400; myCircle2.Height = 400; myCircle2.Stroke = Brushes.Black; myCircle2.StrokeThickness = 1; Canvas.SetTop(myCircle2, 0); Canvas.SetLeft(myCircle2, …

Member Avatar for moroshko
0
124
Member Avatar for moroshko

Hi, I added a Rectangle to a Canvas like this: [CODE]Canvas.SetTop(myRectangle, 150); Canvas.SetLeft(myRectangle, 80); canvas.Children.Add(myRectangle);[/CODE] Now I want to move the rectangle to other place, say (100, 100). What is the best way to do this ? Thanks !

Member Avatar for moroshko
0
141
Member Avatar for moroshko

Hi, I put several shapes (like Ellipse and Rectangle) on a Canvas. Now, I want user to be able to drag & drop these shapes. Is there some predefined functionality that I can use, or I should implement the drag & drop myself using the mouse events ? Thanks !

0
83
Member Avatar for moroshko

Hi, I would like to write a program that enable user to draw geometric shapes like circles, triangles, rectangles and so on. I would like also to be able to drag and drop or resize a shape that was previously drawn. 1) I thought to draw the shapes inside a …

Member Avatar for pauldani
0
257
Member Avatar for moroshko

Hello ! Could you please point me to a good C# tutorial for drawing 2d graphics like Ellipse and Rectangle (that inherit from Shape) on a Canvas using WPF ? I'm also interested later to click on shapes and identify which shape was clicked, and also to drag and drop …

Member Avatar for jamesonh20
-1
150
Member Avatar for moroshko

Hello, This is my first question in this forum :) I'm new in GDI+ and C# programming, though I have an experience in other programming languages. Here is my question: I started a new Windows Form Application project in Visual Studio 2008. Then I double-clicked the Paint event of the …

Member Avatar for moroshko
1
427
Member Avatar for moroshko

Hi, I get the following error when I Rebuild the Solution in Visual Studio: [b]The control WindowsFormsApplication1.MyPanel has thrown an unhandled exception in the designer and has been disabled[/b] Here is what I did to get this error: 1) Started a new project and added a new User Control (MyControl) …

Member Avatar for moroshko
0
596