|
.NET is mainly designed for Windows and could be assumed to
work with only little endian binary files.
However, what is the real behavior?
BinaryReader : Is this designed to read system/hardware supported
endian of will always read little endian no matter the system?
BinaryWriter: Is this designed to always write little endian binary or
it depends on the system?
I wish to know in order to extend these classes.
BTW, anyone got extends to support big endian binary files?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I know somewhere in the code the dialog is told which icon to load and display. Does anyone know where that code is? How can I supply my own custom icon to display on my dialogs?
|
|
|
|
|
You could always create your own dialog forms by subclassing System.Windows.Forms.Form , including your own icon on it, then showing an instance of it using its ShowDialog() method.
|
|
|
|
|
Let me make sure I understand the question before I say something stupid. You have created a custom dialog and you want to change the icon for that dialog. Correct?
If so, then you should be able to simply change the Icon property of the dialog. It should simply be a matter of mapping to the Icon file that you would like to use. For simplicity, you could add the Icon to your project, then you won't have to worry about validating whether the file exists or not. It will be a part of your solution.
Is this what you meant?
Dan
|
|
|
|
|
I thought I did that. I only have one icon in my project and I can't see where the code is loading it into the dialog. It MUST BE somewhere. There's that stupid default icon with the three cubes. That's no longer visible. Now I have a "dialog" icon which must be the default icon if the three cubes are not available. I know it can be done because in one of our other appilications the custom icon is showing. Maybe I'll just look at that one. I was hoping there was an easier answer.
|
|
|
|
|
Okay. I just ran a test of this and I have found two specific ways of doing this (although I am sure there are more out there). I created a project and added two different looking icons. The first I went into the form's properties and changed the icon there. The mis-leading part is that even though your icons are loaded as "part" of your project/solution, you will still have to reference them by path and filename. So, I set one of them at design time to make sure that worked. It did.
Once this was successful, I went into the Form1_Load procedure and created an object of type System.Drawing.Icon. This has 6 different constructors, one of which accepts a path/filename. I created that and passed it "..\Icon2.ico" as the path/filename (.. because the root for execution is bin and I had the file in the main project directory). I then simply set the Me.Icon property to the Icon object I had just created. All tests were successful.
Does this make sense?
|
|
|
|
|
Hi,
I have two forms: the principal and what will be called. The first possesses a button and the second anything it contains. The code of the button is like this simple:
Form2 f = new Form2 ();
f.Show ();
PROBLEM:
Making an analysis of the instances created during the processes I arrived in a subject that, for me, it is stranger:
Before the form2 call
----------------------
Instances of the class Icon: 2 (I imagine that is one of the main form and one of the application)
After the form2 call
---------------------
Instances of the class Icon: 3 (+1, that´s OK)
After the form2 closing
------------------------
Instances of the class Icon: 3 (that is a leak or am I being paranoid?)
Obs.: The fact of the form to be not modal, it doesn't alter the values.
Hugs,
Marcelo Palladino
Brazil
|
|
|
|
|
i have .net 1.0.3705 framework installed. I want to know if its SP1 or SP2. How do i do this?
|
|
|
|
|
Can anyone help me with this one, I'm all out of ideas
I have a custom Component deriving from Component. This component also implements the IListSource interface.
The most important method I have to implement for this is GetList();
In the GetList method I need to obtain the parents type where my component is placed on. In this case a standard form derived from System.Windows.Forms.Form.
I tried to do the following:
IDesignerHost host = Site.Container as System.ComponentModel.Design.IDesignerHost;
With the host I have now, I can get the RootComponent, BUT, and now comes the problem, the RootComponent is at that time the baseclass of the actual parent object. So I get System.Windows.Forms.Form instead of my derived parent class' type.
I've discovered that this is because the designerhost is at that moment still in the loading state. The problem is that the GetList() is called before the loading state finishes and by the time the host is fully loaded, it it already too late, GetList isn't called again.
Can anyone help me with this ?
I'll be worshipping you until the end of my days
|
|
|
|
|
Hi
i want to deploy my project by creating setup.Can you help me how to create setup which includes the dot net framework.Let me know the procedure how to include Dotnet FrameWork in my project's msi file.Let me know the procedure to deploy my project on system which does not have dotnet framework.How to install the required supports to run my vb .Net Program.
Thanks for your help.
|
|
|
|
|
Send me your email, I've written a tutorial but haven't post it anywhere yet. It's in pdf format 498k.
norm
|
|
|
|
|
My email is: norman_lm_fung@hotmail.com
norm
|
|
|
|
|
Hi, can I please have a copy of your tutorial too? My email is rydwc@hotmail.com.
Thanks
Russ.
|
|
|
|
|
Hi,
My address is terrence@enterprocity.com. I'd like a copy of the tutorial too.
Thanks
Terrence
Terrence J. Joubert
Chief Technology Officer
Enterprocity Inc
www.enterprocity.com
Email: terrence@enterprocity.com
|
|
|
|
|
I've sent it to you both, in pdf format. Just want to ask, is this topic covered by another article in Code Project? I think I came across one - but I didn't read it beacuse I already wrote mine. If there isn't I will send the package to Code Project web master to have it posted here.
And no, been working on different stuff. So, as for mdac (question you asked over email), I don't have the answer for ya.
Norman Fung
|
|
|
|
|
microsoft has already written a program for this. you can find the link to it, along with other info about install programs, on this page, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/dotnetframedepguid.asp
|
|
|
|
|
I have an ASP .NET application in which I had to open an Excel file and read data. I included a COM reference for Excel Object and used the Excel Application object to read from a spreadsheet. I am assuming this is an unmanaged code.
Doesn't .Net have some class similar to this which can allow me to access any cell inside an Excel Sheet?
Praveen
|
|
|
|
|
Hello there,
I'm quite new to the .NET Framework. At the moment I'm trying to draw an image, actually it's working quite nice. Nevertheless when I draw the image bigger than it normally is, it gets blurred a lot. I guess thats some kind af antialiasing.
So does anyone know how to disable this effect?
I'm using this code for drawing:
g.DrawImage( m_bmpTileSet, rcDest, rcSrc, GraphicsUnit.Pixel );
Thanks,
Menne
|
|
|
|
|
I'm developing a .NET based DLL (in VB.NET) which exposes a COM class for an old system which only supports COM/ActiveX.
So I'm basicly calling my new .NET COM class from an old VB6 based application.
One of the methods in my .NET based COM class takes a HWND handle (long) which is used as the parent handle for a form which my DLL creates and displays.
But how do I set the parent handle to my .NET Windows form ?
The form is displayed with the Show method (modeless).
|
|
|
|
|
let me ask why do you need to pass a HWND?
i am not sure if it is possible.
Regards,
Serge (Logic Software)
|
|
|
|
|
Because the old system that will use my .NET component and form, only supports a win32 HWND...
|
|
|
|
|
i mean, why do u need a parent HWND, for what purpose?
Regards,
Serge (Logic Software)
|
|
|
|
|
My .NET form need the HWND handle because it's an child form within another application.
|
|
|
|
|
|
If you are not able to help, please do not post relys or irrelevant questions in this thread - thank you !
|
|
|
|