Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Visual Basic .Net 表单(在初始屏幕测试数据库连接后启动),它在启动时没有集中在其他现有窗口之上。
如何让它专注于所有现有窗口和 Windows 资源管理器窗口?
Form.Topmost = true;
请参阅相应的MSDN。
最顶层表单是与所有其他(非最顶层)表单重叠的表单,即使它不是活动表单或前景表单。最顶层的表单始终显示在桌面上窗口 z 顺序的最高点。您可以使用此属性来创建始终显示在应用程序中的表单,例如查找和替换工具窗口。