|
Just install the 2.0 framework and the EXE will work. Then you can use the app to convert the project from 2.0 to 1.1.
If they are using 2.0 specific code, you need S.O.L. insurance.
|
|
|
|
|
The article you refer to doesn't convert VS2005 to VS2003, but rather VS.NET 7.0 to VS.NET 7.1.
You want something like this: Whidbey to Everett Project Converter (VS2005 to VS2003)[^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Hi-
I'm about to embark on a new project, developing a couple of different tools and I don't know what C# Winforms Control set to use. In the past I've used Syncfusion controls (in my day job) to create Outlook style applications. I've also used Component One, but they're also too expensive.
Also, I now prefer the look and feel of an Active Panel style approach where the application has a container (I Guess its an MDI Parent) and a user can turn off/on panels and drag them around, and access all the panels at once.
I guess what I'd like to know is, what GUI Components do you use? What can people recommend? I'd prefer something free or very cheap, and something that looks good! I guess those things may be at odds.
Any advice/tips/ideas you have would be greatly appreciated!
Cheers
Waz
"I hear they've even got the internet on Computers now." - Homer Simpson
|
|
|
|
|
We're using DevComponents DotNetBar. It looks good, and doesn't cost a lot of money, but it does get upgraded frequently (plus you can use it to mimic the new Office look and feel).
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks Pete! That's exactly the kind of thing I'm looking for. I might download the eval and give it a try.
Looks like a pretty extensive suite of tools/support.
Thanks again,
Waz
"I hear they've even got the internet on Computers now." - Homer Simpson
|
|
|
|
|
Hello ,
How can any service install programmatically in windows 2003 server ?
For Example :
Control Panel -> Add or Remove Programmes -> Add or Remove Windows Components -> and from Networking Services Group, install DHCP SERVER, Select Remote Installation Service Group check box (For Installation of TFTP Server)
This is manual process , but i want to do this thing in single click by programmatically .
Please, guide me.
pwk
|
|
|
|
|
hi there,
I'm in need for a method which rounds a decimal number to the next full integer, e.g. 1.1 becomes 2 (instead of 1, like if you use Math.Round() ).
Can somebody help? Thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
|
thanks a lot!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
Math.Ceiling is what you're looking for. You can also create your own (for practice reasons) that adds 5 to the decimal position +1 passed as a parameter.
So, 1.1 would become 1.6 and round to 2.
|
|
|
|
|
I am searching for a few days now, but I didn't find any examples of creating a System.Drawing.Bitmap without using unsafe code.
I've an int[] with one pixel in BGRA per int. The pixel values are created in my program, so I don't have any loadable bitmap so far.
I tried to create a bitmap via
new Bitmap(Int32 width, Int32 heigth, int32 stride, System.Drawing.Imaging.PixelFormat format, IntPtr scan0);
but I didn't get the IntPtr to refer to the data correctly.
If anyone has an idea how to correctly create that bitmap, I'd appreciate your help.
thanks in advance,
Norbert
|
|
|
|
|
Hi,
I have not done this for bitmaps yet, but passing a sound array to the unmanaged
function PlaySound() requires a pointer to a data object (array) that can not be
moved by the GC; see GCHandle and pinning in code snippet below.
Stream stream=type.Assembly.GetManifestResourceStream(resourceName);
int len=(int)stream.Length;
byte[] buf=new byte[len];
stream.Read(buf, 0, len);
GCHandle handle=GCHandle.Alloc(buf);
IntPtr ptr=Marshal.UnsafeAddrOfPinnedArrayElement(buf, 0);
int res=sndPlaySound(ptr, 4);
handle.Free();
I expect what you need is very similar to the above.
Don't forget to free the handle when the pinning is no longer needed (otherwise
the GC can not collect or even move it, possibly ending up in out-of-memory problems).
Luc Pattyn
|
|
|
|
|
Thanks for your reply. I'm getting a valid (non zero) IntPtr with your help, so I can create a new System.Drawing.Bitmap. The saved image is not what I did expect, but that's a problem with the PixelFormat.
So thank you very much for your help.
Norbert
|
|
|
|
|
|
No it wasn't. I knew that article, but I didn't get that code working. Also the ImageConverter which is mentioned in the articles message board didn't work for me.
My code, as nasty as it is by now looks like this:
using System.Runtime.InteropServices;
using System.Drawing;
...
public void saveImage(String filename)
{
List<byte> byteList = new List<byte>();
lock (this)
{
foreach (int color in m_data)
{
byteList.AddRange(System.BitConverter.GetBytes(color));
}
}
byte[] byteData = byteList.ToArray();
GCHandle handle = GCHandle.Alloc(byteData); ;
try
{
IntPtr imgDataPtr = Marshal.UnsafeAddrOfPinnedArrayElement(byteData, 0);
if(imgDataPtr != IntPtr.Zero)
{
Bitmap img = new Bitmap(this.Height, this.Width, byteData.Length, PixelFormat.Format32bppArgb, imgDataPtr);
Random rnd = new Random();
img.Save(filename, System.Drawing.Imaging.ImageFormat.Tiff);
}
else
{
System.Diagnostics.Debugger.Break();
}
}
catch(Exception e)
{
System.Diagnostics.Debugger.Break();
}
finally
{
handle.Free();
}
}
The creation of the Bitmap always threw ArgumentExceptions, when the PixelFormat is anything else than Format32bppArgb. It took me quite a time to figure out, that PixelFormat was the parameter which caused the problem, since I don't see any obvious differences between Format32bppArgb and Canonical which are both 32 Bits / pixel and should at maximum cause some mixed up channels when stated wrong.
So maybe I'd get the Bitmap creation running with one of the linked examples above, if I check again for the correct PixelFormat, but by now I think I better use that maybe unnecessarily complicated version you helped me to figure out.
If I get a shorter and less complicated version running, I'll post it here.
Norbert
|
|
|
|
|
Please tell me what interface Microsoft Office 2003 provides. Is that SDI (Single Document Interface) or MDI (Multiple Document Interface)?
It looks like MDI but it shows one child window that cannot minimized or restored but provides ability to close document only.
Please tell me how I can get that functionality with my application.
I have made a "MainForm" having Menu, toolbar and statusbar and made it isMdi property true. I have "subForm" that I want to create but same like MsWord 2003.
Please guide.
Thank You.
-- modified at 6:37 Friday 8th December, 2006
|
|
|
|
|
Why not use TabPages ??
Regards,
Bhupi Bhai.
|
|
|
|
|
Office works using a different architecture to MDI/SDI, known as Multiple-SDI. .NET 2 supports this architecture through the WindowsFormsApplicationBase class. As an example:
class MyOffice : WindowsFormsApplicationBase
{
static MyOffice application;
internal static MyOffice Application
{
get
{
if (application == null)
application = new MyOffice();
return application;
}
}
public MyOffice()
{
IsSingleInstance = true;
ShutdownStyle = ShutdownMode.AfterAllFormsClose;
}
protected override OnCreateMainForm()
{
MainForm = CreateTopLevelWindow(CommandLineArgs);
}
}
This should give you an idea as to how they are constructed. Have a search for WindowsFormsApplicationBase on Google.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thank you
can u guide me more. I have not found "WindowsFormsApplicationBase" usage through google search
|
|
|
|
|
|
Thank you again.
Can u look at code I am using for the purpose?
|
|
|
|
|
Hello Sir and Madam
Is there any sample of RichEdit like "VS.net Code Editor"?
The "VS.net Code Editor" have region that user can expand and collpase.
Thank You Very Much.
|
|
|
|
|
You can actually host the VS editor in your own packages you know. This article gives a great introduction to it: http://www.divil.co.uk/net/articles/designers/hosting.asp[^]
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I mean "Code Editor" not Designer
Thank You.
|
|
|
|
|
Hi,
I need to develop a web application in C# in which the data to be refreshed at every 2hrs, four times a day. I don't have any idea of page refreshing in web applications. Anybody can give any idea of about it? Or else provide some link which will give documentation of Page Refresh in Web Applications?
Thanks,
Raja Raman S
Reuters India Pvt.Ltd.
Bangalore
|
|
|
|