I have a single threaded application in c# that scans through a file system.
While doing this if I try to minimize, maximize buttons on the top,right
hand corner of my form do not do as they are supposed to do. To maximize the
window I have to go to "task manager" and double click the application.
How do I control those maximize, minimize buttons on the top right section
of my form?
A learner here
Thanks 2 2813
>I have a single threaded application in c# that scans through a file system.
Why don't you do the work on a background thread to keep your UI
responsive?
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Hi jj,
the control box buttons should work without any intervention from you. I
suspect that they work before you start your scan (not mentioned) and after.
This probably means that you are doing a lot of intensive processing in the
main UI thread which is in charge of handling UI requess. The main UI thread
does not get chance to process the UI messages while your intensive
processing is going on so the UI becomes unresponsive. The solution is to
move your processing in to a new thread, not the main UI thread, this way the
main UI thread is still free to handle requests during the intensive
processing. For a great tutorial on this check out: http://www.yoda.arachsys.com/csharp/...winforms.shtml
This should answer all of your questions.
Hope that helps
Mark Dawson
http:/www.markdawson. org
"jj" wrote: I have a single threaded application in c# that scans through a file system. While doing this if I try to minimize, maximize buttons on the top,right hand corner of my form do not do as they are supposed to do. To maximize the window I have to go to "task manager" and double click the application.
How do I control those maximize, minimize buttons on the top right section of my form?
A learner here Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: JJ |
last post by:
I have athe following code, but nothing happens when I minimize or maximze
the form using "top right corner minimze/maximize buttons". What am I
missing!!!!! Help please!!!!!!!!!!
Thanks
JJ
private void Form1_SizeChanged(object sender, System.EventArgs e)
|
by: Paul Welter |
last post by:
I'm building a MDI application that has child forms. I'm trying to find a
way to hide the inner boarder of the child frame area. Setting the
FormBoarderStyle of the child form has no effect.
Also, when the parent form's FormBoarderStyle is set to nothing, then the
child form is maximized, I get the minimize and maximize buttons at the top
of the parent from even though the boarder style is set to none for both
forms. How do I prevent...
|
by: steve |
last post by:
hi all,
i was wondering how is it possible to add an extra box ( i think they are
called boxes: upper right corner ...) in a form that will minimize it in the
system tray?
You know some applications have a 4th one (apart from the square , bar and
X ) which contains a dot and once u click it minimizes the application to
the tray.
TIA
|
by: Bill |
last post by:
Hi
I have a parent child forms. I want the close, maximize, and minimize
buttons to be removed.
One the child form I have set the maximize and minimize buttons to false. I
have the child form mamiximze in the parent form. So then the maximized
button is still active. But I want the child form to fill the parent form
without the ability to close minimize or maximize the form like a default
page.
|
by: Stanav |
last post by:
Hello all,
Is there a way I can get into a form's close/minimize/maximize events when
those buttons (the 3 small squared button in the upper right corner of a
form) are clicked? For example, after a user makes changes on the data on
the form and clicks on the form's Close button (instead of updating the
datasource first), I want the program to run the update routine first, then
close the form.
All helps are greatly appreciated.
I'm using...
| |
by: Linda |
last post by:
My environment is Windows Server 2003, .NET Visual Studio Academic 2003,
ASP.NET. I need to create a page with no top title bar, no mimize button, no
maximize button, no close button. It is for a student exam system. I don't
want students to be able to copy from other windows. I have put a close
button on the page in order to close the page. I have been searching though
the website, all I can do now is to diable the maximize button, the...
|
by: M O J O |
last post by:
Hi,
I'm creating my own Sidebar (like in Vista).
In my XP's quick menu, I have a button called "Show Desktop". When I click
it all forms are minimized.
Since I don't want my SideBar to be minimized, how do I prevent this?
Thanks!
|
by: EmilH |
last post by:
Hi,
Can anybody show me how to minimize/maximize a window dynamically? I placed
buttons for each of these commands and want to place the code which will
minimize and maximize the window.
Thanks in advance.
Emil.
|
by: variouz3ckz |
last post by:
ei is there anyone who has the knowledge of Einstein and Bill Gates genius-like who will help me to remove the following buttons in the upper-right corner...
MINIMIZE....
MAXIMIZE....
OR EVEN THE EXIT....
*Please teach me how...
tnx in advance...
have a nice day...
|
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: 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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |