Hello.
I have a listview and a listbox. If the listbox gets vertically scrolled,
the listview should make the same movement.
So I have extended the listbox control:
public class ExListBoxScroll ing : ListBox
[...]
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_VSCROLL)
{
// will be put in the scrolling event args
this.vScrollV = GetScrollPos(th is.Handle, 1);
// will be put in the scrolling event args
this.message = m;
this.listBoxScr olled();
}
base.WndProc (ref m);
}
[...]
And every time this event is called, I execute the following:
PostMessage(han dleFromListView , m.Msg, m.WParam, IntPtr.Zero);
This code is working if the user only clicks on the little arrows to scroll
up and down!
But if the user drags the thumb or clicks beside the thumb to make a large
change,
neither the listviewContent gets updated correctly nor is the thumb from the
listview set correct.
Has anyone an idea?
Searching the internet, I often found (SB_THUMBPOSITI ON + 0x10000 *
postion) instead of m.WParam as a PostMessage parameter but that is not
working for me!!??
Thanks really a lot for any help!
Greetings,
Tim.
P.S.: Is it possible to scroll the listview without showing the scrollbars? 0 1369 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wesman |
last post by:
Threads, textboxes and scrolling
Thanks in advance for any information on this matter. I have run into
a small richtextbox, scrolling and tread issue. Which has me totally
confused. Instead of trying to explain it I wrote some small C# code
to demonstrate the fact that in the threaded version the textbox
simple doesn't scroll like it should… please look to the
startButton_Click method for the distinction between the two
programs..
|
by: craig |
last post by:
I have two questions that I was hoping to get some input on:
1. How can I synchronize the horizontal scrolling of two controls on my
form? I realize that I will have to use the Windows API to do this, but I
haven't been very successful in determining exactly how. Are there any good
API references for .NET developers?
2. What would be the most efficient way to paint the background of a
scrollable user control in such a way as to...
|
by: chris |
last post by:
hi all,
i need to create vertical scrollbar dynamically for the controls
that are created dynamically in the form. (i'm not adding any controls
to the panel). when the form exceeds(coz of dynamic controls creation)
the default system coordinates, vertical scroll bar should be
dynamically produced in the form.
in this case i could produce the vscrollbar dynamically. but when
i'm scrolling the form,the controls which are down couldn't...
|
by: James CC |
last post by:
I have a strange bug in C# using windows forms. To make sure it's not some
bug with my code, I've gone back to a simple test app, and still see the
same behavior.
I have created a simple C# Windows MDI Application, as in MSDN, ie :
1) Create Windows Application (Form1), set IsMDIContainer to true
2) Create MainMenu component in the form, with top level '&File', submenu
'&New' and '&Close', and another top level '&Window' with MDIList...
|
by: Oddball |
last post by:
Hello again,
I have a problem that I can't seem to find any help for. I'm probably not typing the
correct words into goo... *cough*... MSN.
I have created a user control which I would like to use as items in a list. The list would
display as many of these controls as I wish to add, scrolling as it needs to.
I KNOW this functionality exists already in every list you care to mention but I don't
know how to go about making a list...
| |
by: Tim Frawley |
last post by:
I have a large form with many controls, almost like legal size paper
in height.
Just so I can head these off, I am not looking for suggestions to the
effect of using Tab controls, multi-window or multi-page forms. The
Forms AutoScroll property is set to true so the user can scroll the
window.
What I would like to do is scroll the form for the user. I have
explored the possibility of Me.ScrollControlIntoView(control further
|
by: Oberfuhrer |
last post by:
Hello all VB.net friends !
i have done most of my programming in assembly, at least so far. Recently i
decided to learn a high level language for windows programming. I didnt take
long to realize that VB.net would be my perfect friend.
I have already rewritten most of my assembly controls in VB, but i am not
satiesfied with the scrolling performance, though.
In assembler, where you can write directly to the video memory, this
|
by: atif |
last post by:
Hi,
I m new to CSharp.. so may be my preliminary questions look stupid..
but plz help me..
I want to drag controls like buttons or some other user controls over form..
i have set form's autoscroll = true to handle scrolling automatically. but
when i drag the components of form, scrolling occurs extra ordinary too
fast..
so plz help me to control scrolling as in visual studion designer.. as we
|
by: Rob Pollard |
last post by:
Hi All,
I am using the flow control (can't remember its full name), to display a
few dynamically created controls based on the tags the user has added to my
system. This works fine, except when a user scrolls this control area (when
there are a lot of controls) the screen update is terrible whilst the user
is actually scrolling. The result looks fine when they stop scrolling
though.
The nature of the problem is that it appears to me...
|
by: Assam |
last post by:
I am developing a custom control which would act as a PDF viewer. I am extending this control from the Panel control(Please note i have enabled double buffering of controls). I am not using the auto scroll property i.e. i am manually controlling the scrolling. The control works fine if there are no controls. But when there are controls in it then i have to change the poistion of the controls when the scroll bar value changes. The problem is...
|
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:
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: 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...
| |