473,670 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListView Weirdness in TabControl?

TabControl on the right side of a form with two tabs:

Tab #1 contains two subforms that show some dynamic query results.

Tab #2 contains a ListView that gets dynamically populated as the user navigates
a TreeView on the left side of the form.

The first time I load the ListView, if the tab containing it is not selected
(i.e. the ListView is not visible) the screen draws the ListView's contents in
the upper left portion of the form - outside of the TabControl, and only
partially drawn.

As soon as I flip to the other tab and back again, the ListView is drawn
properly. Subsequent loads do not provoke the problem.

I'm working around it by making sure the ListView's tab is selected the first
time I populate it....but still wondering if I'm doing something dumb...

Anybody been here?
--
PeteCresswell
Nov 13 '05 #1
1 2422
Bri
Pete,

While I haven't seen that particular weirdness, I have seen some others
with TreeViews and Tabs. The TreeView seems to react to being 'hidden'
by the Tab Control when its page isn't the one with focus. My solution
was to have the TreeView not in the Tab Page, but over it. Then I have
code in the Tab Control that makes it visible if I am on the right Tab.
It looks the same to the user, but its a bit more work for the designer.

Hope that helps.

--
Bri

(Pete Cresswell) wrote:
TabControl on the right side of a form with two tabs:

Tab #1 contains two subforms that show some dynamic query results.

Tab #2 contains a ListView that gets dynamically populated as the user navigates
a TreeView on the left side of the form.

The first time I load the ListView, if the tab containing it is not selected
(i.e. the ListView is not visible) the screen draws the ListView's contents in
the upper left portion of the form - outside of the TabControl, and only
partially drawn.

As soon as I flip to the other tab and back again, the ListView is drawn
properly. Subsequent loads do not provoke the problem.

I'm working around it by making sure the ListView's tab is selected the first
time I populate it....but still wondering if I'm doing something dumb...

Anybody been here?


Nov 13 '05 #2

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

Similar topics

4
1836
by: Mr. B | last post by:
VB.net issue here. I've a strange event that I can't seem to figure out... On my Form, I've a TabControl (two Tabs)... On my first tab, I load an Ascii file and dump some info onto my ListView (which is located on my other Tab). Now IF I click on the 2nd Tab... the Info IS to be sorted out - as I've set
2
1538
by: pietlinden | last post by:
I have a stupid question (so finish swallowing now... I don't want to be accused of any beverage-related mishaps). I have a form with several subforms, with each subform on a separate tab. I'm trying to loop through the subforms so that I can set the caption of the tabcontrol page to something like <SubName> (recordcount) Okay, now the two dumb questions... 1. why do these subforms think they're called "tbl..." when I saved the
5
18501
by: Tamir Khason | last post by:
How be able to manage more deeply UI of TabControl and TabPage For example - I want to manage border color, change color of TabPage reef, eliminate spaces from both sides of the reef, so I bould custom control that inherit all information from TabPage, but how to access those properties, not supported by standart interface??? Thank you
2
2694
by: Andreas Fredriksson | last post by:
Hello I am using a TabControl wich includes a ListView on each TabPage. On the click event I use the text on each tab to fill the ListView with data. When the user click on a TabPage a use the Validating event to validate the data in the ListView. Now to the problem, it seems that after the Validating event, the TabPage:s focus will change, the clicked TabPage will be active but the problem is that the Click event will not be fired....
9
3453
by: Michael Turner | last post by:
Hi Guys Having problem with the tab control, I need to set the background color to something different than the standard, I have found code on the web and now can redraw the tabpage buttons so the are set to the right color, I can obviously change the tabpage colour but I am left with a grey top edge(Where there are no buttons) when the background of the form is changed any ideas on what I can do? Mike.
1
1863
by: Lars Netzel | last post by:
Is it possible to have 5 Subitems in a listview and only take over the draw item for the last of them or do I have to draw the whole item? I just realized I need a little image before the text in the last SubItem, is that possible without having to mess with the first 4 Subitems? mvh /Lars Netzel
5
1695
by: David Thielen | last post by:
Hi; I am creating png files in my ASP .NET app. When I am running under Windows 2003/IIS 6, the file is not given the security permissions it should have. It does not have any permission for several users that the directory it is in has, including IUSR_JASMINE (my system is named jasmine). Here is the weird part. In my aps .net code I have the following: String jname = Request.PhysicalApplicationPath + "images\\java_" + fileNum +...
1
265
by: Vmrincon | last post by:
Hi! I am working with a TabControl that has several TabPages and each of them has a listview where I show my data. My problem is that the listviews have IndianRed as backcolor, and anytime that I delete a listviewItems from any of the listviews a strange effect appears, in the position of the deleted row, the color shows white instead of IndianRed. It looks like the row where selected...
1
3447
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all In a Visual Studio 2005 C# project, I have a simplest tabcontrol with two tabpages. When I set tab control's Alignment property to Right, tab texts (captions) disappear. Does anybody know how to fix this? I tried this on two computers, at work and at home, both with Windows XP with latest service packs, and Framework 2.0 and 3.0 with latest SP.
1
8591
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,...
0
8660
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
7415
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
6213
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
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4209
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
4390
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
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
2
1792
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.