CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: smallbit

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,898

    Re: focus on form...

    Thanks Eri
    Thats is a tricky solution but won't work, because the panel mousewhell event never fires. Other events i need to use (mose move etc) works correctly. I can't disable it for that reason....
  2. Replies
    3
    Views
    1,898

    focus on form...

    Hi there a new riddle.
    I have a form with some controls on it and a gl panel. I am using mouse_wheel event for form 1 to capture the wheel. It works fine however i can go to a state that event...
  3. Thread: Out of memory

    by smallbit
    Replies
    3
    Views
    2,142

    Re: Out of memory

    Thanks for your answer,

    It is not very easy to reproduce the exception (since as I wrote it appears in unexpected moments). However I am now disposing the Graphics, and also I have rewrite a bit...
  4. Thread: Out of memory

    by smallbit
    Replies
    3
    Views
    2,142

    Out of memory

    Hello guys,
    New riddle for you,

    I am using a method to rotate images in a form.



    private: System::Drawing::Image^ rotateImage(Image^ b, float angle)
    {
    //create a...
  5. Replies
    4
    Views
    1,466

    Re: conversion from char* to String^

    That do the stuff. Thanks a bunch :D !
  6. Replies
    4
    Views
    1,466

    Re: conversion from char* to String^

    I will type all of what you have asked for on monday.
    But it will probably be first thing you've mentioned since i haven't had the null termination in mind. should i append "\0" to the end of array...
  7. Replies
    4
    Views
    1,466

    conversion from char* to String^

    Hello people
    I have a small problem here and can't solve it, but i am sure that for you is nothing.

    I have a char[19] that i want to put into rich text box in form.

    However when i am...
  8. Replies
    6
    Views
    1,826

    Re: please hep textBox1->Text = s;

    The simplest way:



    String^ txt = "Kamil";
    textBox1->Text = txt;


    Cheers
  9. Re: [RESOLVED] flickering problem Button with PNG image.

    Well forgive me, but



    The only thing that two examples had in common is a PNG file used. I'am sorry I thought it was clear. Anyway I described the problem precisely and upload an example...
  10. Re: [RESOLVED] flickering problem Button with PNG image.

    Well I have never written that this is still bubble case :D

    This is different part already therefore I created a new thread here.
    This is gonna be some sort of joystick that does two things, ...
  11. Re: Loop problem using windows media player controll

    Well not directly but you are able to have several instances of the player and that way play sounds simultaneously, this was contrasted for example with PlaySound() method from winmm32.lib, that is...
  12. Re: [RESOLVED] flickering problem Button with PNG image.

    Well I could bet money that it works also on button that isn't invisible (I mean has a half PNG file with some transparent parts, assigned as a background from the beginning through the preferences...
  13. Loop problem using windows media player controll

    Hi guys,
    New Riddle!

    Ok So I am using the windows media player control to play sound (i need to play several sounds at a time).

    I have a sound let say a diesel engine working.
    Now I want...
  14. Re: [RESOLVED] flickering problem Button with PNG image.

    Hi Guys,
    I have tried to implement a mix of both of your solution in a custom control, but I am still getting the flicker however very tiny like from the Cthulu's solution, probably Eri's idea...
  15. Re: [RESOLVED] flickering problem Button with PNG image.

    Very nice Eri,
    I will try now to mix your way within the panel I am sorry but I have forgot to mention about that.
    Anyway Cthulu game me some hints already, on which I will try to apply your way....
  16. Re: [RESOLVED] flickering problem Button with PNG image.

    All right I will do so,
    I thought it will work, but suddenly when dragging the custom control i get error because it has no background, I will try to do your way.

    Lets say I have my bubble in...
  17. Re: [RESOLVED] flickering problem Button with PNG image.

    I did a school mistake,
    It works nice but I have forgot to mention that my buttons are in the panel ...
    Therefore is not so direct to set it's style.

    I know that I have to do some of these...
  18. Re: flickering problem Button with PNG image.

    Eri523, TheGreatCthulhu

    Thank a lot for your help,
    And thanks for explanation what is really going on around this drawing processes. As i wrote i am new to this, now i have clearer view for all...
  19. Re: flickering problem Button with PNG image.

    Thanks,
    And this might sound weird, but i am glad that you have the same problem :D.

    Anyways, I could eventually use a picturebox (instead of button) and manage the mouse events there, but...
  20. Re: flickering problem Button with PNG image.

    Hi Eri,
    Attached you will find a small project that reproduces the problem, I have noticed that is not a problem of PNG itself, because it only happens when there is another picture below as a...
  21. Re: flickering problem Button with PNG image.

    Well,
    I don't need to override anything, I just tried to resolve the flickering.
    When I leave it to the class itself it flickers. I read somewhere here that this is the common solution fot that. ...
  22. [RESOLVED] flickering problem Button with PNG image.

    Hi Again,
    So next riddle for you guys,
    I have a button which location is changing dynamically, the button itself has a PNG image set from which some parts are transparent, and background colour...
  23. Re: [RESOLVED] stacking several PNG files under in a windows forms

    Hi Eri,

    What do you mean by "vanishing resource problem" ?


    Anyway, I cannot run your project (its VS2010?) but I've seen the code and screen. In the original problem I meant to display...
  24. Re: stacking several PNG files under in a windows forms

    Well, I am ashamed of the way I have chosen, it does not involve any programming tricks.
    Since the bubble is always visible(note that I have the top view for the spirit level) it doesn't need to be...
  25. Re: stacking several PNG files under in a windows forms

    Thank you for the answer,
    I have resolved it in other way, but your advice about flicker issue was useful in other part i had pending to resolve :DD

    Cheers
Results 1 to 25 of 27
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured