|
Use the IL disassembler ILDASM.EXE to view MSIL. Under Visual Studio.NET RC1 it is located at "F:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin\ildasm.exe". Use it to open a .NET assembly.
|
|
|
|
|
MSIL is in a bytecode format like java. Like someone else said you need to use ILDASM to view the MSIL going on in the bytecode.
James
|
|
|
|
|
How to compare data stored in two byte arrays (byte[]).
I need function like memcmp in C.
/Thx 4 hlp
|
|
|
|
|
I am having trouble calling a method on a COM object that takes a SAFEARRAY of VARIANTS as an argument. This array of values is really an array of strings but when the array is contructed like this:
System.Array arr = new System.String[1] {"Some String"}
it raises a "System.Runtime.InteropServices.SafeArrayTypeMismatchException" exception.
When the array connstructed like this:
System.Array arr = new System.Object[1] {"Some String"}
it raises a "System.Runtime.InteropServices.COMException" exception saying that a referenced object is not found.
The method I am trying to call is ICOMAdminCatalog.InstallMultipleComponents
Any suggestions?
Tony Cleveland
|
|
|
|
|
I have been trying to extract the first image in the following video files.
.mpeg
.avi
.mov
I know that you can use Windows Media Player or the DirectShow api. But if any body could give some samples are at least point me in the right direction for some more help I would really appreciate it.
Thanks
|
|
|
|
|
I have an scriplet object defined in 'createservice.aspx' using the following code
<object data="editor.aspx" type="text/x-scriplet">
Where createservice have registered and inherits from src='createservice.cs' (code Behind), this file includes funtions to insert DB written in C#.
in editor.aspx, <IFRAME> is defined where user types in texts.
and editor.aspx is linked to compose.js using<script src="compose.js?169" language="javascript"></script>
1) My question is simple but took me hours, how to retrieve mytext.value from editor.aspx and to be use in createservice.cs(code behind), say like store in a string defined in createservice.cs,
2) should I declare the object in createservice.cs, but how to declare an OBJECT, i only know how to declare htmlTeatArea, htmlLabel and etc from the UI.webcontrols class from .NET framework
Thank you very much
regards, karsin
|
|
|
|
|
Hi guys, is there a bug in Beta 2's implementation of the splitter control?
Try to create a form where a splitter seperates a treeview on the left and
an edit view on the right. I find that you are unable to drag the splitter
all the way to the right like a normal splitter.
Has anyone tried something like this?
Just another wannabe code junky
|
|
|
|
|
For this to work, first the treeview and then the splitter should be docked to the left. The editview should be set to DockStyle.Fill.
|
|
|
|
|
I had big problems with the Beta2 implem of the splitter - however, I got everything working if you design them visuall in the correct order (i.e. place the tree first, then the splitter, then the edit)
|
|
|
|
|
Software4net Inc. has released bCodeParser™ - C# class library for parsing Java bytecode under GNU General Public License (GPL). This set of C# classes - part of the bigger product currently being developed - addresses all routines of translating Java bytecode into reach object model. We decided to release this class library under GPL to facilitate developers in their Java - .NET integration efforts. More details at http://www.software4net.com
Software4net Inc. - <j2ee and="" .net="" specialists="">
http://www.software4net.com
|
|
|
|
|
Does anyone know how to run an external application from a c# windows application?
|
|
|
|
|
This puzzled me for a while too. I searched high and low in the .NET Framework SDK and figured you just couldn't do it. Then by chance I ran across it when going individually through each assembly.
It's in a really obvious location. (read with a sarcastic attitude)
System.Diagnostics.Process.Start("notepad.exe");
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Hello All,
Anyone knows how to connect to proxy servers? there is a method for web requests, but not for the plain socket component. I have seen samples in C++, but none yet in C#
fadi
|
|
|
|
|
How can I make dockable windows like tool windows in Visual Studio with C# ?
|
|
|
|
|
I've been trying to figure that out myself. I found this article
http://codeproject.com/csharp/dockingcontrol.asp
which demonstrates a docking control, not a standalone window though.
|
|
|
|
|
www.icsharpcode.net has released the code for their C# editor which has that functionality. It is however built around te .Net SDK and even though they ported a version to VS.Net, it is still in same coding style as that of the SDK (no visual forms all code)
It does implement the same docking and tabs look and feel as that of .Net... hopefully someone can extract that functionality and make a standalone sample out of it. It is too advanced for me right now.
fadi
|
|
|
|
|
Can someone point me to some code for a C# grid control? Is it possible to use the datagrid for displaying an editable grid which is not loaded from a database?
Why hasn't Microsoft included a grid control in VS.NET?
|
|
|
|
|
C# ?
Why are you using that? It only encourages Microsoft.
(I don't want to live in a Microsoft world - so only use their stuff when you HAVE to - otherwise it reinforces their monopolies.)
|
|
|
|
|
I thought that there was a c# grid control on here, perhaps a false memory.
|
|
|
|
|
Is there something in C# (maybe working with a 'string' variable) that allows formating like we use in C++ with the sprintf() function or the CString class's member function Format()?
Rick Crone
|
|
|
|
|
Use String.Concat
using System;
class nish
{
public static void Main()
{
string s;
int a=10;
int b=17;
s=String.Concat(a," ",b);
Console.WriteLine(s);
}
}
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
|
VS.NET bug: In Visual Studio, if you have one Form which has its WindowState property set to "Maximized", and you then derive a second Form from that first one, the derived Form does not correctly inherit the WindowState from its parent. It will often end up with a WindowState of "Normal".
The same may be true of the "Minimized" state; I haven't tried it.
Repro steps:
1. Create new project: C#, type "Windows Application", any name.
2. Form1 is now open. In the Properties pane, set WindowState to "Maximized".
3. Build and run the program. The window is maximized, as it should be.
4. Select "Project > Add Windows Form..." from the menus. In the right pane (Templates), select "Inherited Form." Leave the name as "Form2.cs". Click Open. When the "Inheritance Picker" dialog comes up, select "Form1" as the base class.
5. Notice that over in the Properties pane, the WindowState for Form1 is "Normal", not "Maximized"! Oops.
6. Open Form1.cs, and in the Main() function, change "new Form1()" to read "new Form2()", so that Form2 is the one that will be launched by the program.
7. Run the program. Despite the fact that the Properties pane said "Normal", the program is in fact maximized. Oops.
8. Open Form2 in the Designer. Drop a button on it. Doing this will force Visual Studio to re-generate the Form2.InitializeComponent() function.
9. Run the program again. Now, notice that it is NOT maximized! Oops.
You'll find that you can manually change WindowState back to "Maximized", but then, from time to time (I think mainly when you reload the project), Visual Studio will switch it back to Normal.
Mike Morearty
mike@morearty.com
http://www.morearty.com
|
|
|
|
|
Hi folks,
I recently stumbled about an annoying problem while designing components:
It just seems impossible to me to create a control that allows other controls to be put upon at designtime.
As far as I understood the MSDN every control derived from UserControl has the ability to support child controls. That works ok when adding controls simply by code but I can't add them using the designer.
I tried to set AllowDrop to true and played around with the DragDrop events. The problem is I didn't found a way to extract the control from the DragEventArgs parameter (if it is there at all).
Would be great if anybody could tell me how to create a control that act like the GroupBox for example, including visual component adding.
Thanks in advance,
Matthias
|
|
|
|
|
Replace :
System.Windows.Forms.UserControl
with :
System.Windows.Forms.ContainerControl
|
|
|
|