如何将资源与对话框关联 [英] How to associate resources with a dialog box

查看:64
本文介绍了如何将资源与对话框关联的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个对话框要在两个不同的项目中使用.

此对话框包含一些图像,我想找到一种方法将资源保留在对话框中而不是项目中,因此我可以在两个项目之间移动对话框,而不必在项目资源中复制对话框图像每个项目.

有什么办法做到这一点?尝试将类似的资源保留在这样的一个项目中.小型图书馆项目没有错– .NET激发了这种发展风格.您的问题是确认之一.

—SA


I have a dialog box I want to use in two different projects.

This dialog box has some images, and I want to find a way to keep the resources with the dialog box rather than with the project so I can move the dialog box between the two projects without having to copy the dialog box images in the project resources of each project.

Any way to do this?

解决方案

Make a separate .NET project with dialog boxed and other components shared by several project. Try to keep similar resources in one project like that. There is nothing wrong with small library projects — .NET stimulates such style of development; your Question is one of the confirmations.

—SA


这篇关于如何将资源与对话框关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆