Hello everybody,
I have a problem when I try to activate my Window Form and I don't
understand why.
I have a owner form with 3 different owned forms and one of this forms
is named letter.
In my code I open all the owned form and I switch between them using
the visible property.
For example when I want to see the letter form I write the following
code:
letter.Visible = true;
letter.BringToF ront();
MessageBox.Show ("lettera.Focus ()= "+lettera.Focus ().ToString
()); // I use messagebox to evaluate the output
MessageBox.Show ("lettera.Focus ed= "+lettera.Focus ed.ToString
()); // I use messagebox to evaluate the output
MessageBox.Show ("lettera.Focus ed= "+lettera.Focus ed.ToString
()); // I use messagebox to evaluate the output
but when the form become visible I can see it but it's not the active
window (I have to vlick over it to see the prompt blinking inside the
textbox that's in the letter form....).
What's my error? if I try to evaluate the expression letter.Focused at
the end of the code it returns true... what's wrong?
--
My Email is correct
Inviato da www.mynewsgate.net 4 1988
use Form.Activate() ;
In your case, letter.Activate ();
ShaneB
"Giox" <gi************ *@yahoo.it> wrote in message
news:20******** ********@mynews gate.net... Hello everybody, I have a problem when I try to activate my Window Form and I don't understand why. I have a owner form with 3 different owned forms and one of this forms is named letter. In my code I open all the owned form and I switch between them using the visible property. For example when I want to see the letter form I write the following code:
letter.Visible = true; letter.BringToF ront(); MessageBox.Show ("lettera.Focus ()= "+lettera.Focus ().ToString ()); // I use messagebox to evaluate the output MessageBox.Show ("lettera.Focus ed= "+lettera.Focus ed.ToString ()); // I use messagebox to evaluate the output MessageBox.Show ("lettera.Focus ed= "+lettera.Focus ed.ToString ()); // I use messagebox to evaluate the output
but when the form become visible I can see it but it's not the active window (I have to vlick over it to see the prompt blinking inside the textbox that's in the letter form....). What's my error? if I try to evaluate the expression letter.Focused at the end of the code it returns true... what's wrong?
-- My Email is correct
Inviato da www.mynewsgate.net
It still doesn't work.... the active form is still the owner form.....
ShaneB <st********@yah oo.com> ha scritto: use Form.Activate() ;
In your case, letter.Activate ();
ShaneB
--
My Email is correct
Inviato da www.mynewsgate.net
Since that did not work, I would recommend posting enough code so that one
of us here can duplicate the problem.
ShaneB
"Giox" <gi************ *@yahoo.it> wrote in message
news:20******** ********@mynews gate.net... It still doesn't work.... the active form is still the owner form.....
ShaneB <st********@yah oo.com> ha scritto:
use Form.Activate() ;
In your case, letter.Activate ();
ShaneB
-- My Email is correct
Inviato da www.mynewsgate.net
Since that did not work, I would recommend posting enough code so that one
of us here can duplicate the problem.
ShaneB
"Giox" <gi************ *@yahoo.it> wrote in message
news:20******** ********@mynews gate.net... It still doesn't work.... the active form is still the owner form.....
ShaneB <st********@yah oo.com> ha scritto:
use Form.Activate() ;
In your case, letter.Activate ();
ShaneB
-- My Email is correct
Inviato da www.mynewsgate.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: offers |
last post by:
I have tried searching for the past 3 hours (I'm probably just using
the wrong search phrase) with no success. I wrote a program to run in
the background. It generates data on a timer and I need that data to
be inserted into the active field of the active window. I have been
successful in finding the active window using GetForegroundWindow, but
not so much with the inserting of the text. Any help would be great.
Thanks,
--Edd
|
by: James Spibey |
last post by:
Hi,
I have an MDI application which has aboout 10 child windows. The way
the app needs to work is that only one window should be visible at a
time and it should be maximized within the parent window. I have set
all my child windows to be WindowState.Maximized but after showing 2
or 3 windows, the windows all drop back to Normal state.
I have tried various things to overcome this inclusing overriding
OnResize etc but none seem to give...
|
by: Chris Wertman |
last post by:
I am looking to capture the URL of the ACTIVE IE window.
How the heck can I determine which window is the active window.
Better yet how do I grab the URL of that particular window ?
I am searching and searching but see no VB samples of anything I want
to do.
I have a bit of code that will grab the URL but it grabs the URL of
|
by: graemeharnish |
last post by:
Hello. I'm trying to mod an open source app called TinyERP and inherit
from a parent object, and in essence change how _column is defined. I
found sample code of:
class custom_product(osv.osv):
__inherits__ = "product.product"
__name__ = "product.product"
_columns = {
'color' : fields.many2one('color','Color'),
'size': fields.many2one('size','Size'),
|
by: Greg |
last post by:
Hi,
I've designed a bookmark in Ajax / PHP that I will put soon on
sourceforge.net.
But I've got an very tricky bug.
I try it on some computers with Internet Explorer/Windows, Firefox
1.07/Linux, Firefox 1.5/Linux, Firefox 1.5/Windows and Firefox 1.5/Mac,
Safari/Mac.
It works perfectly on a lot of configurations but, on some PC with
Firefox 1.5/Windows (not all), the Javascript code with XmlHttpRequest
| |
by: Bryce Calhoun |
last post by:
Hello,
First of all, this is a .NET 1.1 component I'm creating.
SUMMARY
-----------------------
This component that I'm creating is, for all intents and purposes, a
document parser (I'm actually deserializing a SOAP document into an
object and parsing out the fields, but that's fairly immaterial to this
|
by: daniel_xi |
last post by:
Hi all,
I am running a VS 2003 .NET project on my client machine (Win 2000 SP4,
..NET framework 1.1), running an ASP.NET application on a remote web server
(Win 2000 Server, IIS 6.0, .NET framework 1.1).
The application implements a Progress Bar webcontrol, that pops up in a
window, using the HttpHandler interface, on the event of a button click. The
handler's process request routine reads the status of the progress by
querying the...
|
by: Gary |
last post by:
I'm using an Act database. I was stuck on this a year ago and am still
having trouble.
I have three bits of code like so : -
act.CActAppObj objACT = new act.CActAppObj();
act.CAIBaseView objBaseView = new act.CAIBaseView();
act.CAIViews objViewsCollection = new act.CAIViews();
|
by: Photobug |
last post by:
I have downloaded Allen Browne's function TableInfo() and am getting a
ByRef Type Mismatch error when I try to execute it.
I don't know if it is a reference problem or not, but my references
for Access 2000 are set at:
VB for Applications
MS Access 9.0 Object Library
OLE Automation
MS ActiveX DataObjects 2.5 Library
MS VB for Apps Extensibility 5.3
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |