Jump to content
Xtreme .Net Talk

skea

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by skea

  1. Got it to work.
  2. Linq2Xml: [Edited] I would like to get the count of elements where candidate has maximum/highest . I need some help. <Pronvice_Data> <Pronvice>PronviceA</Pronvice> <Registered_Voters>115852</Registered_Voters> <Sam_Kea>100</Sam_Kea> <Jeje>500</Jeje> <John_Doe>400</John_Doe> </Pronvice_Data> <Pronvice_Data> <Pronvice>PronviceA</Pronvice> <Registered_Voters>25852</Registered_Voters> <Sam_Kea>200</Sam_Kea> <Jeje>100</Jeje> <John_Doe>300</John_Doe> </Pronvice_Data> <Pronvice_Data> <Pronvice>PronviceC</Pronvice> <Registered_Voters>317684</Registered_Voters> <Sam_Kea>1000</Sam_Kea> <Jeje>1200</Jeje> <John_Doe>190</John_Doe> </Pronvice_Data> Expected Result: Candidate | Won In Jeje 2 John_Doe 1 Sam_Kea 0
  3. Thanks. you are right. it was a border issue.i had to do away with the border.
  4. Hi folks, I have an issue and i need some help. i would like to create a menu that scrolls "offScreen" and back like this Screen shot Utility by Arman. the source files are in VB.NET but i had to convert the what i think is the necessary code to C#. i have got something working but It's giving me hardtime to keep the form with bottom pixel at the screen top and unhiding it(hide and unhide it). I have attached something. Please take a look at it. Any help will be appreciated. thanks. MediaMapper.zip
  5. What is still puzzling me is how i can bring the triangle to front when i drag a panel to sit over another. Please be of help.
  6. I managed to get back the borderline by using another pen to draw other two lines from the fixed point to the variable points.
  7. Hi, you are right. i was debugging and starting another .exe. Sorry for that. It does the trick.i changed the pen to width 0, except that i seem to loose my borderline(which i wanted so much). Now i will try to make it zoomable.thanks.
  8. Hi. It isn't the problem of the pen and the size of the triangle. If you place a small picture of a point on the form and you try it, you will notice what i am talking about. And when the form is zoomed in, the distance of tolerance is too big.
  9. The triangle fixed point moves away from the orignal location when i click and drag the balloon. How can i overcome this? regards. BalloonIdentifier.zip
  10. [PLAIN][Resolved] Binary Reader. Resource Object.[/PLAIN] Resolved it.
  11. [PLAIN][Resolved]Binary Reader. Resource Object.[/PLAIN] I have an embedded .config resource file "IncidentTrackerDockTemplate.config" in my Resource File called "GlobalResource". I would like to read this file using BinaryReader. i get an exception in my code. Value cannot be null. Parameter name: input below is the code. Any one knows where the problem is? [color=Blue]private[/color] System.Resources.[color=ff2b91af]ResourceManager[/color] resources = [color=Blue]new[/color] System.Resources.[color=ff2b91af]ResourceManager[/color]([color=red]"Incidents_Tracker.UI.GlobalResource"[/color], System.Reflection.[color=ff2b91af]Assembly[/color].GetExecutingAssembly()); [color=ff2b91af]BinaryReader[/color] sr = [color=Blue]new[/color] [color=ff2b91af]BinaryReader[/color]([color=ff2b91af]Assembly[/color].GetExecutingAssembly().GetManifestResourceStream(resources.GetObject([color=red]"IncidentTrackerDockTemplate"[/color]).ToString()), System.Text.[color=ff2b91af]Encoding[/color].GetEncoding([color=ffa31515]"UTF-16"[/color]));[color=Green] [/color]
  12. Hi there, i have this function that creates for me random colors. I would like it to skip the red color because i use it for something else. Any one knows how? private int MakeRandomColor() { Random rand = new Random(DateTime.Now.Millisecond); return Convert.ToInt32(ColorTranslator.ToOle(Color.FromArgb(rand.Next(256), rand.Next(256), rand.Next(256)))); }
  13. Thanks so much. As you can see, i have added a close button, instead of using a context menu. My issue now is bringing the triangle to the front when a corresponding panel is passed over another panel.
  14. Ha ha ha...how does this look? The only issue is to "BringToFront" the triangle of the focused panel when it overlays on top of another panel.
  15. Complete! Any thing added by anyone will be appreciated. Thanks PlausiblyDamp for all the time and effort. You have given me reason to stay on this forum. regards. BalloonIdentifier.zip
  16. Newest update. Still dirty.NewestUpdate.zip
  17. Today is a good day for me! I got the removal of the "Balloon Identifier" to work too. Todo: 1)Making it in form of an ellipse(rectangle with curves at the corners) is remaining. 2)If some one clicks in the middle of the screen area, the triangle draws with its intersection in the "middle left" of the panel(Balloon). And if the user clicks in an area almost next to the bottom of the screen, the intersection is "bottom left" of the balloon. 3)Triangle should be drawn with variable points at the center of the balloon implying a "longer length" for its arm.(this is to make it look ok if the use drags it from one direction to another.)
  18. Re: Fixed Vertex point, but draggable user control.(Balloon Identifier) let me give this a name. From now on, it will be called a "Balloon Identifier" I got it working. I just added a refresh method for the parent after moving/resizing the panel and it did the trick. In the ResizablePanel on MouseDown Event, Below the switch statement. I added this. case MousePos.Move: { NativeCalls.ReleaseCapture(hwnd); NativeCalls.SendMessage(hwnd, NativeCalls.WM_SYSCOMMAND, NativeCalls.SC_DRAGMOVE, ref nul); } break; default: break; } this.Parent.Refresh();------->Added But now....the Removal of the Panels when there is more than one "Balloon Identifier" on the form. ToDO:Turn the Panel into an Ellipse of some sort. Thanks mate.
  19. Man,thanks for the effort mate. I see it coming. i also notice that almost the samething happens when i want to remove a panel. I can remove the one i have just inserted but not the previous. Anyway, let me wait with what you will come up with.
  20. Yes... i appreciate.
  21. (C#) Fixed Vertex point, but draggable user control. I need help... I would like to have a user control with a vertex like "those balloon tooltips". I would like to call this control at any point on the screen and it pops up with a vertex at the mouse point. Then i would like to drag this control...BUT: Keep the vertex point fixed, the size of the long arm should be the one to move.The panel size can also be fixed(assuming we are going to use a panel like UC). So far: I got some where and now i need [one] fix to get this resolved. Attached herewith is a mockup of what i want. I put it together using the code Click Here and Click there. Issue: I can create the Panel and the Triangular region, but i am failing to drag the panel together with the triangular region. The issue as i indicated in the code is in the event handler, the drag cant seem to be called. I tried to step through and all tricks but am failing. Any help will be appreciated. regards. PopupDraggable.zip
×
×
  • Create New...