Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MyPiano

@MyPiano
About
Posts
12
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MouseUp-Event doesn't react on left mouse button
    M MyPiano

    Hey Mark, i found the problem now. After a second very intensive research on google, I found this MDSN article: UIElement.MouseLeftButtonDown Event The problem was that the control didn't captured the MouseButton after the MouseDownEvent because the Mouse probably moved over other object or st. similar. So I captured the mouse on the control:

    private void label4_MouseDown(object sender, MouseButtonEventArgs e)
    {
    label4.CaptureMouse();
    }

    private void label4_MouseUp(object sender, MouseButtonEventArgs e)
    {
    label4.ReleaseMouseCapture();
    }

    That's all. As someone who worked with normal windows forms applications in the past a strange solution but okay. Thanks for the tips and your patience. :) Best regards MyPiano

    WPF help csharp javascript wpf

  • MouseUp-Event doesn't react on left mouse button
    M MyPiano

    Thanks for this detailed answer. The LabelButton works perfect, the ImageButton works too. The image fires only the MouseLeftButtonDown event but not the Up-Event.

    WPF help csharp javascript wpf

  • MouseUp-Event doesn't react on left mouse button
    M MyPiano

    Thank you very much for these Codes. This will help me. I'm not programming very long with WPF, seems if I have much to learn. Before I can mark this Thread as solved I have one question. Could the reason why the left mouse button doesn't work be that I don't ask whether the mouse-down event war fired? Stupid question because I think I know the answer, but I just want to ask because the (Left)MouseDown-Events work without problems... Best regards MyPiano edit: I just got another Problem: I don't know where I have to put the in the xaml editor. <div class="ForumMod">modified on Friday, August 7, 2009 5:18 PM</div></x-turndown>

    WPF help csharp javascript wpf

  • MouseUp-Event doesn't react on left mouse button
    M MyPiano

    Hmm... Thank you for this idea. It would be indeed a possibility. But then I have to redesign most of the program... And to tell the truth, I don't feel like programming a button. I know that I have to delete the border only but for me its most annoying that the MouseEvents on most controls don't work - by the way: .Net 3.5. On the Image control it's the same and if I want to use the Image as button it is again annoying espacially because I don't know how to set an Image on a button.

    WPF help csharp javascript wpf

  • MouseUp-Event doesn't react on left mouse button
    M MyPiano

    Hello coding Community, i am currently developing with WPF on a more simple project but I got a problem and no googling could help me to find the answer. I have several labels representing buttons on the GUI and I want them to work such as buttons work. So I used the MouseUp-Event but the debbuger only navigates to the event if I press the right Mousebutton not if I press the left Mousebutton. I tried that with nearly all MouseEvents, even with the MouseLeftButtonUp event, but it wont work. I don't know what to do next, so I ask here, because I don't want except probable future Users to click the right mouse button every time. I'm glad about every help. Greetings MyPiano

    WPF help csharp javascript wpf

  • How can I read out the process-name via a mouse click?
    M MyPiano

    Okay, thank you very much. :)

    C# linux json question

  • How can I read out the process-name via a mouse click?
    M MyPiano

    Hello community, I'm writing a programm which shell set other windows to the foreground. So I would like to know how I can check which process a window has, that I select via a mouse click. Is this possible with a API function? Best regards MyPiano

    C# linux json question

  • Regular expressions: Show matches [modified]
    M MyPiano

    Okay, thank you very much. :)

    C# regex csharp com json help

  • Regular expressions: Show matches [modified]
    M MyPiano

    Thanks for the answer. The tool is great, but it does not tell me, how I can extract the Matches. The new pattern:

    string pattern = ".+(\"http\\://screenshots\\.filesnetwork\\.com/68/potd/t_[0-9]+_[0-9]+\\.jpg\").+";

    By the way, the real string I am searching in looks so:

    ...

    src="http://screenshots.filesnetwork.com/68/potd/t\_1215615627\_85.jpg" alt="Knights of the Old Republic 2" width="160" height="120"

    ...

    EDIT: I made a little progress:

    Match m = re.Match(webSource);
    richTextBox1.Text = m.Value;

    I get an extract from the whole html document now, but it is still to big. All I want to extract is this part, which my pattern shell find:

    http://screenshots.filesnetwork.com/68/potd/t\_1215615627\_85.jpg

    EDIT II: I think I got it now. The mistake was the .+ at the start and at the end. If someone finds more mistakes or has tipps for me, I would be glad to read them. :) Best regards Joris

    C# regex csharp com json help

  • Regular expressions: Show matches [modified]
    M MyPiano

    Hello C# programmers, I currently dabble in programming with regular expressions. My problem is that I don't know, how I can extract a match if the programm finds one in a string. I already googled, but I couldn't found a site that could explain me how to manage it. I already tried Match and MatchCollection but it did not work. My previous source is following:

    string test = "gjhsdjfjhfsdfjhsdf\ntztrzrtz\n\"http://screenshots.filesnetwork.com/68/potd/t\_1215615627\_85.jpg\\"\\nggdgfdg56ggdg";

    string pattern = @"|.+\""http\://screenshots\.filesnetwork\.com/68/potd/t_[0-9]+_[0-9]+\.jpg\"".+|""";

    Regex re = new Regex(pattern,RegexOptions.Multiline);

    I am helpless with the rest, even though I know that it won't be that difficult. I'm looking forward to your answers. :) Best regards MyPiano

    modified on Sunday, August 3, 2008 8:52 AM

    C# regex csharp com json help

  • Saving an self painted image from a pictureBox
    M MyPiano

    Hey Dave, Thanks for your help. It works great now! :) Best regards Joris

    C# graphics question learning

  • Saving an self painted image from a pictureBox
    M MyPiano

    Hello, I'm programming a little music helper and use the System.Drawing class, to draw the staves and notes on a PictureBox. I want to save that as Image, but all my attempts failed. Of course I used Google to find the answer and I found a advice. It says that I have to draw my things on a Bitmap first and save that. But How do I draw something on a Bitmap with Graphics? I'm looking forward to your answers. Best regards MyPiano(Joris) edit: Sorry for my English. It isn't my mother-tongue.

    C# graphics question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups