Click here to Skip to main content
15,917,709 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionThreading problem Pin
MarkB77730-Jul-08 14:03
MarkB77730-Jul-08 14:03 
AnswerRe: Threading problem Pin
Mark Salsbery30-Jul-08 14:33
Mark Salsbery30-Jul-08 14:33 
GeneralRe: Threading problem Pin
MarkB77730-Jul-08 22:36
MarkB77730-Jul-08 22:36 
QuestionIcon Display Pin
mikobi29-Jul-08 23:43
mikobi29-Jul-08 23:43 
AnswerRe: Icon Display Pin
Mark Salsbery30-Jul-08 6:20
Mark Salsbery30-Jul-08 6:20 
QuestionCaps Lock Problem with DDX_ManagedControl Pin
fredsparkle28-Jul-08 8:26
fredsparkle28-Jul-08 8:26 
AnswerRe: Caps Lock Problem with DDX_ManagedControl Pin
led mike28-Jul-08 8:39
led mike28-Jul-08 8:39 
GeneralRe: Caps Lock Problem with DDX_ManagedControl Pin
fredsparkle28-Jul-08 10:21
fredsparkle28-Jul-08 10:21 
Well after a bit of seaching I found a example of code that supresses the tooltip popup with EM_SHOWBALLOONTIP which I then adapted as a bute force solution that works with a horible blink of the entire control.

I did this by adding a timer to the base control and starting it from the text field to refresh the entire control.

    tb_password.Tag = (object)timer1;<br />
<br />
<br />
    public class PasswordControl : TextBox<br />
    {<br />
        private const int EM_HIDEBALLOONTIP = 0x1504;<br />
        protected override void WndProc(ref Message m)<br />
        {<br />
            if (m.Msg == EM_HIDEBALLOONTIP)<br />
            {<br />
                System.Windows.Forms.Timer timer =<br />
                    (System.Windows.Forms.Timer) this.Tag;<br />
                timer.Start();<br />
            }<br />
            base.WndProc(ref m);<br />
        }<br />
    }<br />
<br />
<br />
        private void timer1_Tick(object sender, EventArgs e)<br />
        {<br />
            timer1.Stop();<br />
            this.Refresh();<br />
        }


Does anyone have a better solution?

Thanks
GeneralRe: Caps Lock Problem with DDX_ManagedControl Pin
led mike28-Jul-08 10:27
led mike28-Jul-08 10:27 
GeneralRe: Caps Lock Problem with DDX_ManagedControl Pin
Luc Pattyn28-Jul-08 10:37
sitebuilderLuc Pattyn28-Jul-08 10:37 
QuestionRe: Caps Lock Problem with DDX_ManagedControl Pin
led mike28-Jul-08 11:20
led mike28-Jul-08 11:20 
AnswerRe: Caps Lock Problem with DDX_ManagedControl Pin
fredsparkle28-Jul-08 11:51
fredsparkle28-Jul-08 11:51 
GeneralRe: Caps Lock Problem with DDX_ManagedControl Pin
Luc Pattyn28-Jul-08 11:53
sitebuilderLuc Pattyn28-Jul-08 11:53 
QuestionRe: Caps Lock Problem with DDX_ManagedControl Pin
led mike29-Jul-08 4:39
led mike29-Jul-08 4:39 
AnswerRe: Caps Lock Problem with DDX_ManagedControl Pin
Luc Pattyn28-Jul-08 11:52
sitebuilderLuc Pattyn28-Jul-08 11:52 
GeneralRe: Caps Lock Problem with DDX_ManagedControl (Better Solution) Pin
fredsparkle28-Jul-08 13:22
fredsparkle28-Jul-08 13:22 
GeneralRe: Caps Lock Problem with DDX_ManagedControl Pin
led mike29-Jul-08 4:43
led mike29-Jul-08 4:43 
QuestionEvent on KeyPress Pin
Polar_Sheep26-Jul-08 8:48
Polar_Sheep26-Jul-08 8:48 
AnswerRe: Event on KeyPress Pin
Mark Salsbery26-Jul-08 9:12
Mark Salsbery26-Jul-08 9:12 
QuestionRe: Event on KeyPress Pin
Polar_Sheep26-Jul-08 9:39
Polar_Sheep26-Jul-08 9:39 
AnswerRe: Event on KeyPress Pin
Mark Salsbery26-Jul-08 9:42
Mark Salsbery26-Jul-08 9:42 
QuestionRe: Event on KeyPress Pin
Polar_Sheep26-Jul-08 9:50
Polar_Sheep26-Jul-08 9:50 
AnswerRe: Event on KeyPress Pin
Mark Salsbery26-Jul-08 9:55
Mark Salsbery26-Jul-08 9:55 
GeneralRe: Event on KeyPress Pin
Polar_Sheep26-Jul-08 10:03
Polar_Sheep26-Jul-08 10:03 
GeneralRe: Event on KeyPress [modified] Pin
Mark Salsbery26-Jul-08 10:16
Mark Salsbery26-Jul-08 10:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.