If the dlls are written in C# and you have the source then you can do it this way:
Create backups of everything - just in case!
Open the project that is compiled to the exe.
In that solution, choose Add Existing Project for each of the projects that compile to dll and add each one.
Create folders with the same names as the dll projects in the exe one.
Select all files in each dll project and drag and drop to the respective folder.
Remove the dll projects from the solution.
You may have to play around a little if any of the projects are using a resources file etc, but generally speaking it should just work.
When all code is C#, you could create a single project holding all the source files; and add the XML file to it, with BuildAction=EmbeddedResource. Then you need a bit of code to extract the XML as a string, replacing your file reading code.
Luc Pattyn Local announcement (Antwerp region): Lange Wapper? Neen!
i'm trying to create 2 custom controls, once you compile, you have a nice custom control up in the visualstudio I.D.E..
i would like to achieve, the once a dragged 'MenuStrip' onto my form and start adding item, that these items are also a new created costrum control 'cToolStripMenuItem', instead of standart item
class CMenuStrip : MenuStrip
class cToolStripMenuItem : ToolStripMenuItem
wel, i'm trying to achieve, that items added to the menuStrip, are the items from my class and not the standart System.Windows.Forms.ToolStripMenuItem().
without anyneed to manualy moding the form1.designer.cs
this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.ToolStripMenuItem1 = new OwnerDraw_Test_3.cToolStripMenuItem();
Well, you are deriving your own class from MenuStrip, so you are in control of what happens in there. All you have to do is override any methods/events where a MenuItem is added/inserted/deleted. That is a lot of work, though.
Alternatively you can just create your own OwnerDraw_Test_3.cToolStripMenuItem(), as you are doing. What else you need to do will depend on whether you are only going to add them in code, or if you need design time support.
For design time support, look up the documentation for the ToolStripItemDesignerAvailability attribute. From there you should find links that will help you in designing the cToolStripMenuItem.
For code only implementation, it is surely only a matter of casting to cToolStripMenuItem wherever there is interaction with your control.
Sorry not to be more help, but my internet connection is playing up, and it takes about 5 mins to get a google search up at the moment, otherwise I would have given you more specific links.
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
am working with .net 3.5,am developed one web service now i want to access that web service by using c# windows application,but there is no add web reference option in context menu when i am right clicking on root node of the application(windows application)..please..
help me...any idea to get that option..
I have a WinForms app. I have various DataGridViews throughout my app in which I use a combobox column. One in particular will only display the display member when that column has focus EVEN THOUGH I have set the DisplayStyleForCurrentCellOnly property to false. Has anyone encountered this and, more importantly, solved it?
I finally discovered what was causing the error. In the DataTable definition for the column in which the combobox was not being displayed, the datatype was defined as Int16. I changed it to Int32 and it works swimmingly.
Why would you want to do that? you can't make your form go above task manager form. You can disable such ability for system user accounts, not from code thou (well I don't know how to do from code at least)
If you want the users to not be able to exit a question form then you can hide the ControlBox (buttons with [X] in) - but really, what kind for application does not let the user exit?
Life goes very fast. Tomorrow, today is already yesterday.
Last Visit: 31-Dec-99 19:00 Last Update: 28-Feb-24 18:18