question

harikumarkasireddy-0533 avatar image
0 Votes"
harikumarkasireddy-0533 asked YujianYao-MSFT commented

Strange Blue Line At Bottom of edit box control in windows 11 in mfc in vs2021

203050-image.png



I want to get rid of the bottom blue line in MFC controls in VS2019 for the edit box control. Please let me know how to fix it

c++
image.png (18.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @harikumarkasireddy-0533

As your issues is not related to OOS, I'll try to modify the tag to C++.
Thanks for your understandings.

0 Votes 0 ·

Maybe you should keep it because it is a new design element that can be seen in other Windows 11 applications.


0 Votes 0 ·

1 Answer

YujianYao-MSFT avatar image
0 Votes"
YujianYao-MSFT answered YujianYao-MSFT commented

Hi @harikumarkasireddy-0533,

You need to right click on the edit control, select Properties, then set Border to False:

203591-s1.png

203537-s2.png

Best regards,

Elya


If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".


Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





s1.png (18.4 KiB)
s2.png (15.4 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @harikumarkasireddy-0533,

May I know if you have got any chance to check my answer? I am glad to help if you have any other questions. If the answer is the right solution, please click "Accept Answer". It will also help others to solve a similar issue.

0 Votes 0 ·

Hi YujianYao-MSFT,

Thank you for your response. With your answer I am not seeing the blue line now. But I see the text entered is aligning towards the top of the box but not on the bottom line of the edit box.

As shown in attached screen shot the text has to start from the tip of the green-colored highlighted line (bottom line). Any suggestions here to get the text displayed from bottom line, please ?

204164-image.png


0 Votes 0 ·
image.png (6.8 KiB)
YujianYao-MSFT avatar image YujianYao-MSFT harikumarkasireddy-0533 ·

Hi @harikumarkasireddy-0533,

Glad I could help you, since you have raised a new question, I suggest you accept this answer and post a new issue on the QA platform!

0 Votes 0 ·