Display `ControlTipText` in front of the form - excel

I am trying to insert a tooltip for a textbox on a form.
I am using the ControlTipText property of the textbox to do it.
The tooltip text is shown behind the form. How can I move the tooltip text forward and keep it in front of the form?

I can only offer a workaround in Excel 2013. My Userform contained problematic RefEdit controls. Whenever a RefEdit control had focus all control tips appeared behind the UserForm. Switching the another control put the control tips back on top.
Have a look at PeltierTech's RefEdit Page. There may be similar problems with other controls.

Related

VBA ListView control misplaced on UserForm inside multipage

I have an user form which contains a multipage control.
The controls are added with the design tool and they look exactly how they should.
The problem appears when I start the form. The first time I switch between pages, the 'main' ListView shows misplaced. After the first switch, everything is displayed as expected.
Any idea about this?

How do I allow user to select, but not edit, text in an excel userform control whose width is smaller than the text?

Context
I want the user to review some selections they made earlier. So I display some text describing each selection on a separate control in a userform. Some of the text on the controls is long, extending beyond the width of the control. This is fine; I just want the user to be able to see all of the text without being able to edit it. To do this, I use textboxes that are "Locked" (i.e. not editable) but "Enabled" (i.e. selectable). This way, they can just click and either mouse-drag or arrow-key over to scroll through all the text.
Problem
The (small, aesthetic) problem is that when the user clicks in one of the textboxes, they get a blinking cursor, which is misleading as that is normally associated with an editable textbox.
Possible solutions
Ideally, there would be some way of removing the blinking cursor, while still allowing selection but not edition. However, I'm open to other alternatives that don't have to do with changing the width, or having a scrollbar (the textbox is too short to fit a scrollbar). The best alternative I have so far is changing the background color to a gray to make it slightly more clear that it's not editable.
P.S. I'm very familiar with VBA, so if that's part of the solution, I'm cool with that.
Thanks all!
I had a similar issue, and solved it by using these instructions to create a hidden textbox that the cursor automatically appeared in (invisible to the user).

MFC Ribbon CEdit Textbox Allignment in Panel

I am trying to align two text boxes with two buttons in a panel, and I am unable to find anything about how to force positioning inside the MFC Ribbon Panels.
Here is a picture of what I have currently.
http://i.imgur.com/ofD0b.jpg (Sorry wont let me post images yet, have to link.)
The Change View Date box has the box associated with it sitting below it and the change system date box is up in the top right in the second "column" of controls. I would like to fix this so the Box with the spin controls sits next to the CHange View Date and the box without the controls sits next to Change System Date.
Thoughts? Thanks!
I think yow cannot do it.
What you can do is to put a Ribbon Separator after the Box with the spin controls and then set the property 'Center Column Vertically' on the Panel.
Hope it can help.

datagridview layout behaviour

I have c#/2008/winform application.
I have a form with a picture banner, and a datagridview below it
I want the picture banner to remain fixed in size, and the datagridview to rezise
and fill the rest of the form.
I have set the picturebox to dock=top
(Also pos=0,0, sizemode=centerimage - but these setting are not the problem)
My datagridview misbehaves no matter what i do
If i do dock=fill, it starts from the top of form, and is obstructed by the picture
If i try to set dock=bottom it does not resize with the container
I am aware of the concept of layoutmanagers but this is just a quick app
so i hope i dont need one here.
Any ideas ?
thank you
There may be a better workaround but the first thing I found that worked was to introduce a panel control.
Make you picture box Dock=Top, then place the panel below it with Dock=Fill, then your DataGridView goes inside the panel with Dock = Fill.

how to add a textBox and a TextField to a form in j2me

i want to display both TextBox and TextField on the screen at a time but i am unable to add TextBox to form. is there any way to display both of them at a time. that is textBox at the top and TextField below it. plz help me. i will be pleased if any code is given
thank u in advance
A TextBox is a Screen, not an Item, therefore you cannot add it to a Form, and there is no way to display both of these things on screen at once.
If you want to display some additional text on screen while a TextBox is active, you can use its title (via setTitle()), or you could scroll it across the top using setTicker().
I guess, you must write you own TextBox component. It must extend Canvas. And you must paint it yourself, using drawLine, drawString.

Resources