开发者

How to access other project forms in solution explorer for VS2008 C#?

开发者 https://www.devze.com 2022-12-31 15:09 出处:网络
Image http://img43.imageshack.us/i开发者_JAVA技巧mg43/1720/28264117.png Here is the image for my solution Explorer. What i want is to use HR Management forms to b loaded through button click on a for

Image http://img43.imageshack.us/i开发者_JAVA技巧mg43/1720/28264117.png

Here is the image for my solution Explorer. What i want is to use HR Management forms to b loaded through button click on a form of Classic Steel HR. So can anyone tell me how


I can't see your image here, unfortunately - but if I get what you're trying to ask; you can access forms from another assembly if they're public.

Then just check this setting is true:

Tools > Options > Windows Forms Designer > General : AutoToolboxPopulate

Alternatively:

Alternatively, you need to make sure that the HR project is referenced by the Classic_steel_hr project then in your forms code (assuming it's namespace is HR)

using HR;

private void ShowForm()
{
  HR.Form1 hrForm = new HR.Form1();
  hrForm.Show();
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号