Hi all,
i have an application and i wan to call another program into it, like
notepad, so when i minimize the notepad, or maximize, it must rest in
my application.
thank you 7 5821
Hello Sheikko,
What does it mean? MDI style or what?
What's wrong with Process.Start method?
Sit must rest in
Smy application.
---
WBR,
Michael Nemtseva [C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Yes,
I have a parent child and want to call in it not a form, but an entire
application, like notepad, word..ecc.
I have solved the problem of process...I have used the HardwareButtons
(solution found in the visual help), at this scope I have included the
WindowsCe.Forms .dll to my project even if it for pocket PC.
I think is a bug of visual developper that filter this dll and it don't
let you to use it.
Thank you if you can help me.
On 21 Dic, 15:15, Michael Nemtsev <nemt...@msn.co mwrote:
Hello Sheikko,
What does it mean? MDI style or what?
What's wrong with Process.Start method?
Sit must rest in
Smy application.
---
WBR,
Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Hello Sheikko,
SYes,
SI have a parent child and want to call in it not a form, but an
Sentire
Sapplication, like notepad, word..ecc.
So call the app in the bounds of form?! Don't think it's even possible. What
are u going to do? Maybe there is another alternative solution for it, if
u describe what u wanna do
SI have solved the problem of process...I have used the
SHardwareButton s
S(solution found in the visual help), at this scope I have included
Sthe
SWindowsCe.Form s.dll to my project even if it for pocket PC.
All CE questions are more appropriate for the compactframewor k group, not
this one
>> What does it mean? MDI style or what? What's wrong with Process.Start method? Sit must rest in Smy application. --- WBR, Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
excuse me but this question if for pc not for pocket pc, in fact I have
postd it here in (microsoft.publ ic.dotnet.langu ages.csharp).
I want only to creaet an application parent MDI and to call in it
another program (i.e. notepad) like his child.
Do you think is possible?
On 21 Dic, 16:07, Michael Nemtsev <nemt...@msn.co mwrote:
Hello Sheikko,
SYes,
SI have a parent child and want to call in it not a form, but an
Sentire
Sapplication, like notepad, word..ecc.
So call the app in the bounds of form?! Don't think it's even possible. What
are u going to do? Maybe there is another alternative solution for it, if
u describe what u wanna do
SI have solved the problem of process...I have used the
SHardwareButton s
S(solution found in the visual help), at this scope I have included
Sthe
SWindowsCe.Form s.dll to my project even if it for pocket PC.
All CE questions are more appropriate for the compactframewor k group, not
this one
What does it mean? MDI style or what?
What's wrong with Process.Start method?
Sit must rest in
Smy application.
---
WBR,
Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo---
WBR,
Michael Nemtsev [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Hello Sheikko,
It's a kind of hack, redirecting the process' window handler on your form one
Use SetParent and ShowWindow WinAPI methods http://groups.google.ru/group/micros...564c2dff6613fb
Sexcuse me but this question if for pc not for pocket pc, in fact I
Shave
Spostd it here in (microsoft.publ ic.dotnet.langu ages.csharp).
SI want only to creaet an application parent MDI and to call in it
Sanother program (i.e. notepad) like his child.
SDo you think is possible?
SOn 21 Dic, 16:07, Michael Nemtsev <nemt...@msn.co mwrote:
S>
>Hello Sheikko,
SYes, SI have a parent child and want to call in it not a form, but an Sentire Sapplication , like notepad, word..ecc. So call the app in the bounds of form?! Don't think it's even possible. What are u going to do? Maybe there is another alternative solution for it, if u describe what u wanna do SI have solved the problem of process...I have used the SHardwareButto ns S(solution found in the visual help), at this scope I have included Sthe SWindowsCe.For ms.dll to my project even if it for pocket PC. All CE questions are more appropriate for the compactframewor k group, not this one
>>>What does it mean? MDI style or what? What's wrong with Process.Start method? Sit must rest in Smy application. --- WBR, Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelange lo---
WBR, Michael Nemtsev [C# MVP] :: blog:http://spaces.live.com/laflour "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangelo
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
thanks I will try tomorrow and I tell you something. thanks.
On 21 Dic, 17:02, Michael Nemtsev <nemt...@msn.co mwrote:
Hello Sheikko,
It's a kind of hack, redirecting the process' window handler on your form one
Use SetParent and ShowWindow WinAPI methods
http://groups.google.ru/group/micros...ramework/brows...
Sexcuse me but this question if for pc not for pocket pc, in fact I
Shave
Spostd it here in (microsoft.publ ic.dotnet.langu ages.csharp).
SI want only to creaet an application parent MDI and to call in it
Sanother program (i.e. notepad) like his child.
SDo you think is possible?
SOn 21 Dic, 16:07, Michael Nemtsev <nemt...@msn.co mwrote:
S>
Hello Sheikko,
SYes,
SI have a parent child and want to call in it not a form, but an
Sentire
Sapplication, like notepad, word..ecc.
So call the app in the bounds of form?! Don't think it's even
possible. What
are u going to do? Maybe there is another alternative solution for
it, if
u describe what u wanna do
SI have solved the problem of process...I have used the
SHardwareButton s
S(solution found in the visual help), at this scope I have included
Sthe
SWindowsCe.Form s.dll to my project even if it for pocket PC.
All CE questions are more appropriate for the compactframewor k group,
not this one
>>What does it mean? MDI style or what? What's wrong with Process.Start method? Sit must rest in Smy application. --- WBR, Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour "The greatest danger for most of us is not that our aim is too high and we miss it, but that it is too low and we reach it" (c) Michelangel o---
WBR,
Michael Nemtsev [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and we miss it, but that it is too low and we reach it" (c)
Michelangelo---
WBR,
Michael Nemtsev [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Hi,
I have tried the code example in the link you have provided, but he
doesn't work. The notepad process is creadte, but like a separated
program.
Here there is my code:
=============== ==
using System;
using System.Collecti ons.Generic;
using System.Componen tModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows. Forms;
using System.Diagnost ics;
using System.Runtime. InteropServices ;
namespace chilTest01
{
public partial class Form1 : Form
{
[DllImport("user 32.dll")]
private static extern int SetParent(IntPt r hWndChild, IntPtr
hWndNewParent);
[DllImport("User 32")]
private static extern int ShowWindow(IntP tr hWnd, int
nCmdShow);
private const int SW_MAXIMIZE = 3;
Process p = new Process();
public Form1()
{
InitializeCompo nent();
}
/**
* this code call a form like a child.
*/
private void newToolStripMen uItem_Click(obj ect sender,
EventArgs e)
{
Form2 newMDIChild = new Form2();
// Set the Parent Form of the Child window.
newMDIChild.Mdi Parent = this;
// Display the new form.
newMDIChild.Sho w();
}
private void processToolStri pMenuItem_Click (object sender,
EventArgs e)
{
// start your application
p.StartInfo.Fil eName = "NOTEPAD.EX E";
p.StartInfo.Use ShellExecute = true;
p.Start();
// change parent window and maximize inside the form
//SetParent(p.Mai nWindowHandle, this.Handle);
//ShowWindow(p.Ma inWindowHandle, SW_MAXIMIZE);
}
}
}
=============== ==
Sheikko ha scritto:
thanks I will try tomorrow and I tell you something. thanks.
On 21 Dic, 17:02, Michael Nemtsev <nemt...@msn.co mwrote:
Hello Sheikko,
It's a kind of hack, redirecting the process' window handler on your form one
Use SetParent and ShowWindow WinAPI methods http://groups.google.ru/group/micros...ramework/brows...
Sexcuse me but this question if for pc not for pocket pc, in fact I
Shave
Spostd it here in (microsoft.publ ic.dotnet.langu ages.csharp).
SI want only to creaet an application parent MDI and to call in it
Sanother program (i.e. notepad) like his child.
SDo you think is possible?
SOn 21 Dic, 16:07, Michael Nemtsev <nemt...@msn.co mwrote:
S>
>Hello Sheikko,
>SYes,
>SI have a parent child and want to call in it not a form, but an
>Sentire
>Sapplication , like notepad, word..ecc.
>So call the app in the bounds of form?! Don't think it's even
>possible. What
>are u going to do? Maybe there is another alternative solution for
>it, if
>u describe what u wanna do
>SI have solved the problem of process...I have used the
>SHardwareButto ns
>S(solution found in the visual help), at this scope I have included
>Sthe
>SWindowsCe.For ms.dll to my project even if it for pocket PC.
>All CE questions are more appropriate for the compactframewor k group,
>not this one
>>>What does it mean? MDI style or what?
>>>What's wrong with Process.Start method?
>>>Sit must rest in
>>>Smy application.
>>>---
>>>WBR,
>>>Michael Nemtseva [C# MVP] :: blog:http://spaces.live.com/laflour
>>>"The greatest danger for most of us is not that our aim is too high
>>>and we miss it, but that it is too low and we reach it" (c)
>>>Michelange lo---
>WBR,
>Michael Nemtsev [C# MVP] :: blog:http://spaces.live.com/laflour
>"The greatest danger for most of us is not that our aim is too high
>and we miss it, but that it is too low and we reach it" (c)
>Michelangelo---
WBR,
Michael Nemtsev [C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike |
last post by:
I am sure that I am making a simple boneheaded mistake and I would
appreciate your help in spotting in. I have just installed
apache_2.0.53-win32-x86-no_ssl.exe
php-5.0.3-Win32.zip
Smarty-2.6.7.tar.gz
on a system running WindowsXP SP2.
Apache and PHP tested out fine. After adding Smarty, I ran the
following http://localhost/testphp.php
|
by: Ron L |
last post by:
I have an MDI application which opens a number of child windows, each of
which could have data in a state that needs to be saved. Each child window
catches its Closing event and cancels it if the user wants to save the data,
but when the Application closes this event isn't thrown automatically. I
added a loop to close each child window, but can't seem find how to catch
the child window's cancel of the Closing event, so even if the user...
|
by: Bf |
last post by:
I was creating test projects using c# and was surprised that there seems to
be only a form based windows applications available. Is it safe to assume
that classic window applications that utilize a parent window with child
windows can only be done in c++ and mfc and there's nothing else in .net
that is meant to be used like that?
It seems to be that c# should be used for either form based windows apps,
console apps, and web apps (also...
|
by: meerubus |
last post by:
Hi,
Could someone advise how to go about writing a (simple?) C++ program to
block a windows exe file from running? For example, my child likes to
run halo.exe & the pgm can run even in a non-administrator account.
Can I write a C++ program to block it from running? In addition, if
the pgm filename is changed (eg. halo.exe to xxx.exe), can the block
still work?
Thanks a million.
meerubus
|
by: c676228 |
last post by:
Hi everyone,
I am just wodering in asp program, if there is anybody writing store
procedure for inserting data into database since there are so many parameters
need to be passed into store procedure(assume there are many columns in the
table).
I need to insert data into two separate tables, the relation between these
two tables is 1 row of data in table1 could have multiple rows in table2
related to table1, but if the data insertion into...
| |
by: Phil |
last post by:
I can check for MdiChildren.Length=0, but which event handler should I put
this in to detect when a child window is closed?
TIA
Phil.
|
by: Dean Slindee |
last post by:
Need to write a standalone application that processes data once per day.
Looking for the application program types available that would satisfy these
requirements:
Requirements:
1. Unattended processing that looks for rows in tables in a SQL Server
database that is updated in batch once per day via another company's daily
process. The newly added rows are selected based on a process date
parameter (see #4).
2. Cleans and reformats the...
|
by: cglobal25 |
last post by:
Here is the output from phpinfo() on my laptop running windows vista.
As you can see mysql is mentioned several times in the output. I'm
not sure why i get this error. Php scripts that i save in the htdocs
folder seem to work as long as mysql is not called. Any ideas?
Thanks
System Windows NT ELMEU 6.0 build 6001
Build Date May 2 2008 18:01:20
Configure Command cscript /nologo configure.js "--enable-snapshot-
|
by: Radz |
last post by:
when the fork system call is executed, a new process is created. The original process is called the parent process whereas the new process is called the child process. The new process consists of a copy of the address space of the parent. On success, both processes continue execution at the instruction after the fork call, with one difference, the return code for the fork system call is zero for the child process, while the process identifier of...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |