Click here to Skip to main content
15,883,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having two application app1 and app2.Calling the app2 in app1.app1 textbox control click the app2 will call and opened after opening the app2 the focus in the app1 textbox is focusing is loosing.My requirement is the app1 textbox(any control which we used) should not loose the focus.

What I have tried:

Protected Overrides ReadOnly Property CreateParams As CreateParams
Get
Dim baseParams As CreateParams = MyBase.CreateParams

Const WS_EX_TOOLWINDOW As Integer = 128
baseParams.ExStyle = (baseParams.ExStyle Or CType((WS_EX_TOOLWINDOW), Integer))
Return baseParams
End Get
End Property
Posted
Comments
OriginalGriff 12-Sep-22 0:44am    
This is not a good question - we cannot work out from that little what you are trying to do. That description of your requirement makes no sense to me at all, and the code fragment seems to have little relevance to anything.

Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Use the "Improve question" widget to edit your question and provide better information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900