Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 23-11-2005, 12:24 PM   #1 (permalink)
In The Zone
 
Join Date: Oct 2004
Location: Ahmedabad, India
Posts: 210
Default .Net Tutorials


Merge an .exe and a .dll into one .exe

download ILMerge
http://research.microsoft.com/~mbarnett/ilmerge.aspx
put "ILMerge.exe" in your \WINNT directory
In VS.NET, right click project, Properties, Common Properties, Build Events
In "Post-build Event Command Line" enter:
ilmerge /out:$(TargetDir)YOURAPPNAME.exe $(TargetPath) $(TargetDir)YOURDLLNAME.dll
Then compile the Release version (not the debug version).
In your "bin\Release" directory, you will find a YOURAPPNAME.exe which can be run on its own without the .dll
__________________
Ravi-the Sun
Think Bright,Think Sun

www.ravithesun.c-o.in My Blog
www.sunsoft.c-o.in My Web Home
ravimevcha is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 23-11-2005, 12:26 PM   #2 (permalink)
In The Zone
 
Join Date: Oct 2004
Location: Ahmedabad, India
Posts: 210
Default

Developing XP Style Applications

There are two steps:
1) write an assembly manifest file;
2) change the property of your controls setting FlatStyle property = system.
N.B.
Dont worry if you cant see any changes in your VS Studio environment, the changes have effect only on the *.exe file, so that you can see the difference, only when you run the program.
Lets look at how to write the manifest:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Lorien2000.XPStyle.XPStyle"
type="win32"
/>
<description>XP Style Controls</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
name="Lorien2000.XPStyle.XPStyle" where, Lorien2000 is the name of your company, XPStyle the name of your product, XPStyle the name of your exe file, in general is:
name="Company.NameProgram.ExecutableFile"

<description>XP Style Controls</description> here you can put the descriptions of your product.

name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"

its the version of the controls that you want to use.

And finally, and the most important thing is to save the file as: YourProgram.exe.manifest

The second step is to change the property of your controls
__________________
Ravi-the Sun
Think Bright,Think Sun

www.ravithesun.c-o.in My Blog
www.sunsoft.c-o.in My Web Home
ravimevcha is offline  
Old 23-11-2005, 12:28 PM   #3 (permalink)
In The Zone
 
Join Date: Oct 2004
Location: Ahmedabad, India
Posts: 210
Default

Non Rectangular Forms

Have you ever wondered how you can create nonrectangular forms? Windows Media Player is a good example. When you switch to different skins, the border changes shapes. It seems like quite a difficult task, but it ends up being extremely simple. It's really only a few lines of code! But these few lines of code can make a big difference in the visual impression your project creates.

First create a new Windows Forms project using C#. (This can be done in any .NET language, but we'll use C# for this example.) Add a button to the middle of the form. Add this code to the button:


private void button1_Click(object sender, System.EventArgs e)
{
System.Drawing.Drawing2D.GraphicsPath p = new System.Drawing.Drawing2D.GraphicsPath();
int width = this.ClientSize.Width;
int height = this.ClientSize.Height;
p.AddClosedCurve(new Point[]{new Point(width/2, height/10),
new Point(width,0), new Point(width, height/3),
new Point(width-width/3, height),
new Point(width/7, height-height/} );
this.Region = new Region(p);
}
__________________
Ravi-the Sun
Think Bright,Think Sun

www.ravithesun.c-o.in My Blog
www.sunsoft.c-o.in My Web Home
ravimevcha is offline  
Old 11-12-2005, 02:23 PM   #4 (permalink)
In The Zone
 
#/bin/sh's Avatar
 
Join Date: Apr 2004
Location: 42.65 N 73.76 W
Posts: 213
Default

here some http://www.microsoft.com/downloads/d...displaylang=en
__________________
\"99 little bugs in the code, 99 bugs in the code, fix one bug, compile it again, 148 little bugs in the code. 148 little bugs in the code....\"
#/bin/sh is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by chris
- by icebags
- by Tenida

Advertisement




All times are GMT +5.5. The time now is 01:15 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2