473,811 Members | 3,260 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

User resizes a form: Only one event instead of hundreds

Hi,

I have a form that is resizable. On the form is a user control (ocx). To
resize the user control I have to call a certain method. Till now I used the
Form.Layout event. This works well. But what I would like to have is that
the certain method is called only once, when the user releases the mouse
button. It would also be sufficient if the whole form is only repainted when
the user releases the mouse button. I could imagine to display just a frame
for resizing. Like the windows-explorer windows where you have the option to
enable or disable this behaviour.

I tried it with ResizeRedraw = false in the load event of the form (but it
was false anyway when the debugger came to that line). But it has no effect
for some reason. Is it because I use the layout event? It there another
event?

Cheers,
Robert
--
E-Mail: r._sch_nei_d_er #_we_ingar_t_ne r.c_om
(remove each '_' from the address and replace '#' with '@')

Nov 21 '05 #1
1 981
I forgot: I'm using VS2005 with .NET 2.0
Maybe it's a bug?

--
E-Mail: r._sch_nei_d_er #_we_ingar_t_ne r.c_om
(remove each '_' from the address and replace '#' with '@')
"Robert Schneider" <lo*******@the. posting> schrieb im Newsbeitrag
news:es******** ******@TK2MSFTN GP15.phx.gbl...
Hi,

I have a form that is resizable. On the form is a user control (ocx). To
resize the user control I have to call a certain method. Till now I used
the Form.Layout event. This works well. But what I would like to have is
that the certain method is called only once, when the user releases the
mouse button. It would also be sufficient if the whole form is only
repainted when the user releases the mouse button. I could imagine to
display just a frame for resizing. Like the windows-explorer windows where
you have the option to enable or disable this behaviour.

I tried it with ResizeRedraw = false in the load event of the form (but it
was false anyway when the debugger came to that line). But it has no
effect for some reason. Is it because I use the layout event? It there
another event?

Cheers,
Robert
--
E-Mail: r._sch_nei_d_er #_we_ingar_t_ne r.c_om
(remove each '_' from the address and replace '#' with '@')

Nov 21 '05 #2

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

Similar topics

4
56680
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try clicking other links or the same link. I can prevent this when i use buttons by calling onclick and in a javascript getElementsByTagName("input") and then check the type to be type of "button" or "submit" which i then disable. It works. This also...
4
4298
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage I know I need to call a function that will save data but I'm not sure exactly when to call this function. I've tried two ways and both seem to have 'gotcha's':
8
345
by: Glenn | last post by:
Hi! I've developed an app that displays multiple textbox and combobox fields (most of which are autopostback) on a form along with a submit button. My users find it confusing when they change data in one of the autopostback textboxes then click on the 'submit' button and, instead of seeing the next form they see the same form come back to them, as if they never clicked the 'submit' button. What's happening behind the scenes is that...
10
5826
by: sqlboy2000 | last post by:
Hello all, I have something very simple going on here and I'm scratching my head as to what the problem is. There are 4 items in my project, 2 webforms, a user control, and a module: WebForm1.aspx ChangeValue.aspx WebUserControl1.ascx Module1.vb
5
1493
by: Phillip N Rounds | last post by:
I have a webform ( ASP.NET 1.1, CodeBehinde = C#). The user selects an address item from a dropdown list box. The details of the address then populate appropriate text boxes. Each textbox has an OnTextChange(), which serves several (necessary) purposes. One of these is that if there is a change in the textbox entry, a button 'Save Address' appears. When the user makes changes to only one textbox, the 'Save Address' button appears...
11
11581
by: John J. Hughes II | last post by:
I have a DataGridView displaying data from a DataSet. To the right of that I have a custom user control which displays one of the data set fields. The custom user control is bound to the data set object and displays the data correctly when I move from row to row. The problem I am having is the data set always reads the data back and considers it change even when it's not. I am looking for how to change the following code so the...
5
4386
by: Richard Maher | last post by:
Hi, Here I mean "User" in the Programmer or Javascript sense. I merely wish to programmatically trigger an Event. It would be absolutely fantastic if there was a (Form level?) ONUSEREVENT() and a setEvent() function but, in the absence of this, is it not possible to use DOM to change an object's properties resulting in a state-change event? I have tried with ONCHANGE() and that only seems to work if the "interactive" user changes the...
2
15078
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have been able to find the cause of the problem, and will describe it here first textually and then through a code example. The purpose of what I am trying to do is to create a postback-free web application through the use of ASP.net AJAX UpdatePanels...
35
2503
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
0
9734
marktang
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...
0
9607
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
10656
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
10397
jinu1996
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...
0
10138
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
9214
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
7674
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...
1
4353
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
3
3027
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.