问题描述
我想通过使用这样一个自定义创建的主题来改善我的程序的外观:http://www.mpgh.net/forum/33-visual-basic-programming/492570-biesis-vb-net-theme-archive.html
I want to improve the look of my program by using a custom created theme like this: http://www.mpgh.net/forum/33-visual-basic-programming/492570-biesis-vb-net-theme-archive.html
问题是我的表单上已经有至少 30 个带有自定义名称、文本等的组件.重做它们会很痛苦.
The thing is I have at least 30 components already with custom names, text, etc on my form. Redoing them would be a pain.
那么,有没有一种简单的方法可以做到这一点?
So, is there an easy way to do this?
感谢您的回复.
推荐答案
有一种方法,虽然不推荐(取决于应用程序的复杂性).在尝试此操作之前,请确保您已经备份您的项目.
There is a way, though not recommended (depending on the complexity of your application). Make sure you've got a full backup of your project before trying this.
- 在您的项目仍然打开的情况下,关闭所有打开的文件并点击
Ctrl + H
. - 在
Find what
中输入要替换的控件的完全限定名称. - 在
Replace with
中输入自定义控件的完全限定名称. - 将
Look in
设置为Current Project
. - 检查
Match case
和Match整个单词
. - 点击
全部替换
按钮.
- With your project still open, close all open files and hit
Ctrl + H
. - In
Find what
enter the fully qualified name of the control to replace. - In
Replace with
enter the fully qualified name of the custom control. - Set
Look in
toCurrent Project
. - Check
Match case
andMatch whole word
. - Click
Replace All
button.
这篇关于我可以快速将我的组件替换为自定义主题的组件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!