473,386 Members | 1,694 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,386 software developers and data experts.

c# Console Like control - show/hide

77
Hi, Theres a part in my program that i cant know the length of time the process will take. This is not due to me but due to the API's im having to deal with. i know the group amount (ie. 3 groups) but i dont know how many are within that. So... ive set my progressBar1.Maximum = groups.Count;. However, if theres 100 items in that group it will look like the page is not doing anything. What im trying to achieve is a console like log on the screen where i can just put a string of what its currently doing. Id also like to show or hide this control. Now my first thoughts were a groupbox with a richTextBox inside but the groupbox doesnt have a show/hide(well i could not find it?). i have seen this in some installers where youve got a progress bar and then a show details arrow and ti drops down with a console log.

Does anyone know of a control i could do this with? Also, any hints or tips with regards to this sort of output/ logging is very welcome.

Thanks and rergards,
Piercy
Mar 10 '08 #1
2 4115
Plater
7,872 Expert 4TB
GroupBoxes have the Visible property which you can set True/False to.

One of the thing I had done was make a custom control that contained a progressbar and a few labels (arranged in a fashion that I like)
Then I gave the control methods for changing those labels to reflect what was going on ( "performing step a" etc etc) as well as dealing with the ProgressBar stuff.

You could probably do something like that, if you wanted to re-use the functionality in other projects.
Mar 10 '08 #2
piercy
77
GroupBoxes have the Visible property which you can set True/False to.

One of the thing I had done was make a custom control that contained a progressbar and a few labels (arranged in a fashion that I like)
Then I gave the control methods for changing those labels to reflect what was going on ( "performing step a" etc etc) as well as dealing with the ProgressBar stuff.

You could probably do something like that, if you wanted to re-use the functionality in other projects.

ok, just installed something and realised i what i was thinking of is not what usually seen. i was expecting some sort of arrow (>) which on a click will show the details below. Although, after installing something i realised they actually use a button. So i think ill just use a button to hide/show it. Im also planning to use this logging to help with debugging. So im going to give the user the option to save the log. (might do auto saves for the last 10 logs or something.. not sure yet. With this in mind would it be better to use a string builder or just to append the text in the richTextBox already(ie. richTextBox1.Text += "text"; ).

I dont know if it matters either way.. Although i think im going to have to use delgates(*cries* not good with these) as the method i want to log is being run in a background worker.


Thanks once again,
Piercy
Mar 10 '08 #3

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

Similar topics

2
by: Ajai Kumar .R | last post by:
Hai all, I've two or more forms on my app. My requirement is, Have to show the first form asa the user press a button have to hide the first form and show the second form. If the user press the...
10
by: oLE | last post by:
I would like to add some javascript to show/hide a certain row of a table. The first row of the table contain the hyperlink that calls the javascript the second row is the one i want to show/hide...
5
by: dje | last post by:
In the OnClick event on a radioButtonList, I run a javascript to show/hide the appropriate div along with a submit button, which displays as expected. The problem is the submit no longer works on...
8
by: Andrew | last post by:
Hello, friends, We created a drop-down menu bar and a show/hide calendar web user controls mainly using javaScript and html. However, they both have the problem that they are not dispaly as...
4
by: bridgemanusa | last post by:
Hi All: I have a very long page of html that I want to take portions and hide them in divs, then show when a link is clicked. I have the hide show part working when the link is clicked, however...
7
by: FP | last post by:
I'm new to Java Script. I'm displaying comments people have made. Below each persons' comment I want to add 2 buttons "Reply" and "Amend". Clicking "Reply" would display an empty text field...
3
by: | last post by:
I'm using the DataList and GridView controls, and I am trying to wrap my head around the problem of conditionally showing or hiding cells/cell content based on the presence or absence of DB data. I...
1
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. ...
1
by: ll | last post by:
I'm currently working on a form which consists of a show and hide javascript. The toggle works fine, although when I click on submit, I would like the page to reload with the toggle (show/hide)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.