473,608 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clicking on Form's Capiton Bar Event (how to ignore it)

Max
Hi,
I have written a small vb.net program that downloads a file through
ftp and displays the progress of download on a form (kind of the one
you see when you save file from the internet). The problem I am having
is when clicking (and holding mouse button) on the form's
caption/title bar the download just stops until I let go of the mouse
button. I've tried to do Application.DoE vents on several form events
but that doesn't work. I would appreciate solutions to my problem.
Thank you!
Nov 21 '05 #1
5 2816
Hi Max,

Change formborderstyle to 'none' and there won't be a caption to click on.

HTH,

Bernie Yaeger

"Max" <ma*****@hotmai l.com> wrote in message
news:2c******** *************** ***@posting.goo gle.com...
Hi,
I have written a small vb.net program that downloads a file through
ftp and displays the progress of download on a form (kind of the one
you see when you save file from the internet). The problem I am having
is when clicking (and holding mouse button) on the form's
caption/title bar the download just stops until I let go of the mouse
button. I've tried to do Application.DoE vents on several form events
but that doesn't work. I would appreciate solutions to my problem.
Thank you!

Nov 21 '05 #2
Max
Bernie, thanks for a quick reply.
Yeah, I know how to remove the title bar from the windows form but I
wanted to leave it there.
I basically want the same functionality that you get from the form you
see when downloading a file from the internet. When you click or drag on
its caption bar it has no effect on download.
Thanks,
Max

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #3
You could always try some weird things like calling the form's mouseup event
when the mousedown event occurs. Never tried it. Might be worth it.

-Jason
"Max" <[No************@ hotmail.com> wrote in message
news:uM******** ******@TK2MSFTN GP10.phx.gbl...
Bernie, thanks for a quick reply.
Yeah, I know how to remove the title bar from the windows form but I
wanted to leave it there.
I basically want the same functionality that you get from the form you
see when downloading a file from the internet. When you click or drag on
its caption bar it has no effect on download.
Thanks,
Max

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #4
On 1 Nov 2004 12:00:03 -0800, Max wrote:
you see when you save file from the internet). The problem I am having
is when clicking (and holding mouse button) on the form's
caption/title bar the download just stops until I let go of the mouse
Does the download actually stop, or does the form displaying the progress
stop updating?
button. I've tried to do Application.DoE vents on several form events
but that doesn't work. I would appreciate solutions to my problem.


This may be a situation where spawning a thread to perform the download
will help.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #5
Max
Chris,
Yes, the download actually stops but the timer continues to tick.
So my bytes transferred stays the same, transfer rate begins to
decrease, remaining time starts to grow. This only happens when I
click on the caption bar, clicking inside the form doesn't produce
this result.
I'll see what I can do with threads but there has to be some event of
clicking on the caption bar that I can override.
Chris Dunaway <"dunawayc[[at]_lunchmeat_sbcg lobal[dot]]net"> wrote in message news:<1n******* *************** *******@40tude. net>...
On 1 Nov 2004 12:00:03 -0800, Max wrote:
you see when you save file from the internet). The problem I am having
is when clicking (and holding mouse button) on the form's
caption/title bar the download just stops until I let go of the mouse


Does the download actually stop, or does the form displaying the progress
stop updating?
button. I've tried to do Application.DoE vents on several form events
but that doesn't work. I would appreciate solutions to my problem.


This may be a situation where spawning a thread to perform the download
will help.

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4487
by: Ori | last post by:
Hi Guys, Here is my problem, but maybe someone can help me with this. Background: 1. Using C#. 2. I'm having a form which the KeyPreview is on (and must stay like this) and I'm implementing some functions on the Key up event of some controls and the form.
3
3960
by: John Smith | last post by:
Hi, How can I tell on the double click event of the datagrid whether or not a row was double clicked or a column header was double clicked? My problem is I open a new form on the double click event of the datagrid based on the selected row. Users however are used to doubleclicking the column headers to have them automatically resize the column width to see all of its contents. Unfortunately when they double click the columns headers,...
10
2539
by: Jim Bayers | last post by:
We need to stop students from clicking on the form button more than once. We have a form that students fill out with their credit card information. They click, the form sends the data in xml to Bank of America, theres a short wait, BofA sends back some xml, and on to the next page. Sometimes, though, BofA is slow and the students get impatient, clicking twice or even more. They get charged each time they click. We have a warning...
2
3110
by: 23s | last post by:
My site's login page has a form w/ 2 textboxes and a submit button. If I'm in either of those textboxes (i.e., either one of the textboxes has focus), in any given browser, hitting "enter" on my keyboard submits the form. Server side, I handle the click event of the submit button. This is the expected behavior, and this is the behavior irrespective of what browser I use on the login page. However... I have different page that is an...
7
1423
by: feng | last post by:
I need to test if the form is closing because of user's clicking on the "x" button, instead of other buttons, such as my "Exit" button, on my form. I would like to test this in my form's Closing event handler, but I don't know how to do this. Can someone show me how? Thanks.
6
1902
by: drec | last post by:
I am just learning Javascript and I would like to create a basic form that gives me two options. This will be using either checkbox or radio input type, however I would like the second option to allow the user to type in a value. Also, I would like the 2nd option only editable if the button for that option is selected. All I can seem to find is basic examples of forms, and none of which have this feature. The form would look something...
3
2419
by: gazelle04 | last post by:
Which happens first AfterUpdate event of a form or Clicked event of a button on a form. I have these codes on an AfterUpdate of a form: If UpdateDone = True Then UpdateDone = False MsgBox "A record has been changed" End If I also have these on a save command button on a form:
2
4955
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All, I am trying to determine if the user clicked the "x" close button within the controlbox of the form (top right corner - next to minimize and maximize buttons). I am using the datagridview within VB2005. I validate the values in the row when the user leaves the row via the grid's RowValidating event. I want to allow the user to exit the application by clicking the "x".
3
1851
by: Patrick | last post by:
Hi, Newbish on JS here. Found this script on the web and it does what I want in FF, but works oddly in IE. When I check the box in IE nothing happens, but when I click on the body after the box is checked it displays the dropdown. Any ideas on how to make this work correctly in IE (displaying the dropdown when box checked)? Thanks for your help. <html> <head>
0
8002
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,...
0
8496
Oralloy
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...
0
8338
tracyyun
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...
0
6816
agi2029
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...
1
6013
isladogs
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...
0
3962
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...
0
4024
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
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
0
1329
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.