I want to provide a child form that will display some scrolling text. I want to provide a way to hide this box with a button, and then reverse the action by clicking on the same button.
Sorry, I wanted to ask how would one go about doing this.
Printable View
I want to provide a child form that will display some scrolling text. I want to provide a way to hide this box with a button, and then reverse the action by clicking on the same button.
Sorry, I wanted to ask how would one go about doing this.
okay, go for it!
Problem Solving...
It's what programming is all about! You shouldn't come to these forums so that people will do things for you. I think you should come when you need something explained, or you don't understand WHY something your trying doesnt work. And then use that information to try something else, don't expect others to do your work for you...that is like cheating!!
Ok, first off I need to explain something here. I'm not a programmer. I want to learn how to do this. I'm asking for guidence. I don't know what I should be looking for, when searching on the MSDN site, or on Google.
I'm not looking for someone to write the code for me. If I wanted that, I would go out and hire someone to do this for me. instead, I want to do this on my own time. I didn't mean for my post to come off as a "can someone pause what they are doing and write this for me."
I have a few reference books on order, but I wanted to just ask the question on one of the forums I frequently visit for answers.
Also, my post was added quite hastely. I didn't finish reading it before I clicked the submit button, and didn't take the time to read it after it was posted. Got quite a bit of stuff going on here at work.
Ah...sorry mate!
First I'm a beginner programmer too, and I'm only able to work at school, so I can't help much, but I bet i could find a way (probably the longest way imaginable) to do what u want...But first what is a Child Form?
Scrolling text is probably animation which is kinda advanced.
and what do you want to make invisible? to make lets say a Label invisible you do
Label1.visible=false
Does that help? I think to do anything is just Object.visible=false
object.invisible=true works too ;-)
NP. I "dislike" other that attempt to ask for help, when they in fact want someone else to do it for them.
But, what I was thinking was more of a re-drawing of some sort with the form itself. I call it a child form, because it is going to be spawned from the main form that asks the user for some information. Then, this "child form" will be a status window that will have a progress bar and display some text in a dialog window.
What I want to be able to do is click on a button that will call a procedure that will extend the window on the Y axis, and show the dialog window. Then, if the user clicks on the same button again, to undo what just happened.
I don't know where to start for re-drawing the form. I have some sort of idea for showing the dialog window. I can use the Show() and Hide() expression. But, it's how I would go about re-drawing the form.
As far as "scrolling text", it will just be adding another line into a combo box. Let's say I am going to display the following on Line 1 within the Combo box:
Scanning SERVER1...
Then, I would add some more text into line 2, while leaving line 1 alone. So it would look like this:
Scanning SERVER1....
--Getting hardware info...
Does that make sense? I believe I know how to do this.
Actually, after some digging around, I might have found what I was looking for.
Could the following do it? Is there a better way of doing this?
Code:'We want to see what the current height of the window is.
If Me.Size.Height = "208" Then
Me.Size = New System.Drawing.Size(512, 308)
ElseIf Me.Size.Height = "308" Then
Me.Size = New System.Drawing.Size(512, 208)
End If