473,413 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

More info button

Hey guys!

Was wondering how to make a button that when you click it, the window will show more information.

You commonly see it at Error windows with the "Details" window that adds height to the window and displays some extra information...

Thanks alot!
Jan 18 '12 #1
1 1537
Joseph Martell
198 Expert 128KB
The height property of a window is not set in stone. In your button click event handler you need to add code that updates the window's height:

Expand|Select|Wrap|Line Numbers
  1. me.Height = 100
  2.  
or whatever your desired height is.

As for the data displayed on the window after expansion, you have 2 options:
1. Once the window is expanded, you could add the components to the form in your code. This works well if you want to display different controls for different scenarios. It does add complexity because you are positioning and sizing controls by trial and error more than anything.
2. You could just design your form in its expanded form and then set the height so that the extra controls are not visible when the form first shows. This is useful if you are always going to have the same controls, but their content will change. That way all you have to do is update content and not dynamically add controls.
Jan 19 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JD | last post by:
This is more details about my problem, which I already managed to post as a Python bug to Sourceforge This problem is not related to the bug I encountered earlier, and this is related to a...
1
by: roni | last post by:
hi. i have vb.net application , with Managed C++ dll that wrap unmanaged dll. i also have bug that crash the application. the crash happen because i dont use the unmanaged dll (which is...
5
by: Tom Petersen | last post by:
I am using a response.write to test the formatting of the output. I am supposed to get this: BEGIN:VCALENDAR VERSION:1.0 BEGIN:VEVENT DTSTART:20051022T090000Z DTEND:20051022T090000Z...
5
by: SQLDBA | last post by:
Is there any third party s/w that lists SQL servers in a network and query more info about the server?
4
by: james | last post by:
I upgraded my 2002 project to 2003 and I am getting several of there errors on my forms xxxForm.resx Resource transformation for file 'xxxForm.resx' failed. Possible Version mismatch. Type...
6
by: rh | last post by:
I am not able to send email using SmtpMail.Send. I imagine that it is a configuration issue. I see that the emails that I attempt to send are in the Mailroot/Queue folder but they never actually...
7
by: theyas | last post by:
How can I get my code to NOT display two "Open/Save/Cancel/More Info" dialog boxes when using the "Response.WriteFile" method to download a file to IE I've asked about this before and didn't get a...
4
by: Jeff | last post by:
Hey asp.net 2.0 I have a UserControl which contain many TextBoxes. When I from the webpage (the webpage containing this UserControl) click on a button to start save the text in the textBoxes,...
1
by: David S. Zuza | last post by:
< Category("Appearance"), DefaultValue(GetType(Double), "0.1"), Description("Gets or Sets the opacity level of the panel.") > I see these xml "Things" in other peoples code and they seem...
5
by: rolfjb | last post by:
Friends, Thanks for being here! I am pretty new to all this ... I want to avoid people having to scroll on my website to see the content. Therefore I am using 4 layers overlapping each...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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...
0
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...

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.