|
Is there a way to make a form show up as both an MDIChild and an MDIContainer? That is to have a top level window with sub-windows each of which has it's own sub-windows? I managed this once in C++ with MFC through a method much to complicated to describe here, but I'm totally new to C# and wondering if this is possible?
|
|
|
|
|
I just did a quick test and the following exception was thrown -
System.Exception: A form can't be both an MDI child and MDI parent.
So, if it is possible, it isn't done in the most obvious way. Maybe there is a complicated workaround?
|
|
|
|
|
Neill Jordan wrote:
I just did a quick test and the following exception was thrown -
System.Exception: A form can't be both an MDI child and MDI parent.
So, if it is possible, it isn't done in the most obvious way.
Yeah, I did get this far... Thanks for the attempt though. It sure as hell wasn't easy under MFC so it probably isn't easy this time around either. I guess this is a good indication that I should rethink my GUI design!
|
|
|
|
|
Here's some naming so I don't get confused while I'm typing this.
MDIParent
- MDIChild
- MDIGrandchild
On the MDIChild add a panel and set the dock style to fill; you may want to set the backcolor so it isn't the control color.
On the MDIGrandchild set the TopMost property to false, then add the MDIGrandchild to MDIChild's panel's control collection.
You'll probably have to add some logic for scroll bars and the Windows menu on the MDIChild, but that should work visually.
HTH,
James
[edit, fixed my naming chart so it didn't look like both were children were directly from parent]
|
|
|
|
|
My bad, its not the TopMost property, its the TopLevel property.
Guess thats what I get when I guess which of the two it was :P
James
|
|
|
|
|
Hi
I'm looking for the Intermediate language file for a C# DLL/EXE, but I'm either totally misunderstanding the concept or am looking in the wrong place.
I presumed that the MSIL file is very similar to an IDL-with implementation of course- and is also in PLAIN text.
What's going on?
Simon
Simon
"...Bill is watching..."
"An Object Is Simply A Referenced Thingy" quoted from Programming Perl
|
|
|
|
|
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.
|
|
|
|