|
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 !
|
|
|
|
|
System.Windows.Forms.Form.Handle
Property Value
An IntPtr that contains the window handle (HWND) of the control. (or form)
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Yes... but that's a READ-ONLY property !
|
|
|
|
|
Yes - well, the window handle is assigned by the operating system when the window is created.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Dude, please read my question again... I want to set the *parent* handle.
Not read the Window handle of my form...
|
|
|
|
|
Then you will need the SetParent API call...and pass it the handle you get as per the earlier post.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
I have tried the SetParent API function but without luck ;(
The form is created but the parent-child relationship is not set somehow.
Both this...
m_MyForm = new MyForm
SetParent(m_MyForm.Handle.ToInt32, m_ParentHandle)
m_MyForm.Show()
...and...
m_MyForm = new MyForm
m_MyForm.Show()
SetParent(m_MyForm.Handle.ToInt32, m_ParentHandle)
...doesn't work... something else I need to call or set ?
|
|
|
|
|
MrBean wrote:
If you are not able to help, please do not post relys or irrelevant questions
man, i AM trying to figure out what you wanna accomplish. sorry if i bothered u with my "irrelevant" questions. if you want a .NET form to set its Owner to a not .NET form - the answer is you can't.
if you want a .NET form to become an MDI child of a .NET form - the answer is tou can't.
what i was trying to understand is for what purpose you need it so that i can judge if it is at least possible. you need to provide more info.
Regards,
Serge (Logic Software)
|
|
|
|
|
So in short (regardless if it's a MDI child or not)... I can't ;(
I think I have given enough info... but can can try to write it different
I'm making a .NET DLL which contains a single Windows Form. This form is used by an VB6 based application thru COM.
The VB6-based application then use my DLL/form by calling a few standard methods and setting the form size, parent handle and such. It's the application way of supporting plug-ins.
The plug-ins are shown as kind of controls on a form but not as a MDI form or ActiveX control - it's a kind of embedded form.
This works today but only with VB6 DLLs (COM) and VB6 forms.
So I basicly need to make a plug-in for the application but this time in .NET...
|
|
|
|
|
Ok, now I see your problem.
I am afraid you won't be able to implement it this way because of the different nature of forms in .NET and VB6.
One solution that I can think of now is to implement your plugin DLL without a form, and create another DLL in Vb6 that will consume your plugin DLL methods, while providing a form for your application to show it as usual.
hope that makes some sense
Regards,
Serge (Logic Software)
|
|
|
|
|
Have I got this correct:
HWND passed into .NET Object to be displayed as a child of a .NET form in the DLL?
Look into NativeWindow.FromHandle or Control.FromHandle. This should give you a .NET object from the handle and expose some more functionality.
If you just want to display the HWND as a child of a Form created in .NET you can use a windows UI function from User32, SetWindowParent will be able to reparent the child form as a child of your .NET form.
J
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Is it possible to create your own datatypes in .Net. If so, how. I have a need to create some new data types but want to be able to convert them as required. I will need to implement .Empty and the interfaces that allow me to cast them.
IntStrPair
Int as Int32
Str as String
Property IsEmpty
End Type
Ctype(IntStrPair, Integer) = Int Value
Ctype(IntStrPair, String) = Str Value
The obvious way is to just create a class or structure but I wondered whether it is possible to actually create datatypes? Any ideas of how to implement this would be greatly appreciated.
|
|
|
|
|
Hi fellas!
Did anyone try to use Managed DirectX? Any performance tests? Is it worth? Will a Managed 3D engine be fast enough?
Regards,
Serge
|
|
|
|
|
Hi,
Anyone tried to install the .Net Compact Framework Emulator (PocketPC 2002 Emulator) on a computer running WinXP Home?
It seems it does not want to install. All I get is:
"Installing Emulator Driver" then a popup:
---------------------------
Microsoft Development Environment
---------------------------
Emulator driver installation failed. Most common cause: user does not have administrator permissions.
---------------------------
OK
---------------------------
But I am an Administrator .. so I dont' get the problem.
Any ideas?
Thanks,
Tutu.
|
|
|
|
|
Tutu wrote:
Anyone tried to install the .Net Compact Framework Emulator (PocketPC 2002 Emulator) on a computer running WinXP Home?
I have Visual Studio .NET 2003 / Windows XP Home. I got the emulator as part of the full installation I did for Visual Studio. I tested it a couple of times and it seems to be working fine.
I also use Administrator account.
Regards,
Victor.
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
Hi,
I want to develop a setup project which installs .NET framework , MSDE , Flash based on its availability. It can be done with merge modules. MSDE installation has around 13 .msi files. I tried including all the files in the merge module & added to setup project.It did'nt help. Can anyone give me a walkthrough to deal with this issue?
Thanks in advaance
Priya
|
|
|
|
|
The latest merge module for MSDE includes 25 modules(language neutral - 17 and 6 -language specific modules). I guess you must be missing you some of the merge modules.
If you are a die hard coder and would love to code for the installable then this link will help you. http://msdn.microsoft.com/vstudio/downloads/addins/MSDE/instdwnld.aspx
Windows installer tools and tips for MSDE are included here http://www.installsite.org/pages/en/msi/tips.htm#CustomizeMSDE2000.
|
|
|
|
|
I cannot find any scripting engine for .NET to add my application a scripting language, except Lua.NET (witch seems to be actually supported my Microsoft Ressearch) but it seems dead ... http://www.tecgraf.puc-rio.br/~rcerq/luadotnet/
The scripting language must support classes (both ways - script classes accessable form main application and app scripts available to script). Python would be a perfect one here but it also doesn't have a .NET project yet it seems ...
Can anyone help me out ?
|
|
|
|
|
desmond5 wrote:
I cannot find any scripting engine for .NET to add my application a scripting language
Can't you use VB.NET / C# as your scripting language. You can make use of the on-the-fly compiling and execution features of .NET. You will also probably need to limit what user defined scripts can do using Code Access Security.
Regards,
Victor
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
No, you got me wrong. I don't want to use C# AS a scripting language. All I need is a scripting engine that I can use in C# on .NET platform. And I found one - Python.NET.
|
|
|
|
|
Hi,
I have an Installer Setup project which builds fine. However, if I select
Install from within the solution, the installation fails with a message "The
installer was interruped before XXXXX could be installed. You need to
restart the installer to try again."
However, if I move the MSI file to any directory other than where it was
compiled to, the MSI installs fine.
Note that if the application was already installed, then selecting Install
from within the IDE will correctly uninstall the old app before trying (and
then failing) to install the new version.
Any thoughts?
Thanks in advance
Jeremy
|
|
|
|
|