Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB Gui, changing the gui design without changing the window?

Is this possible?

For example say I had a gui on a page I want to be able to change the image (for example change from tutorial to play) This is just an example and doesn't relate but I don't want to have to have the use change the window they're using to use the program I'm writing, What can I do?[/align]
Do you mean altering the GUI programmatically instead of the drag and drop designer?
I am lost.
Skype: happy.cbb
0x38E6A0912657E
(Mar 10, 2015 11:01 AM)Chesso Wrote:  For example say I had a gui on a page I want to be able to change the image (for example change from tutorial to play)

Uhm, something like this?

The code below will change the image in a picture-box to the file you pointed the path at.

Code
YourPictureBox.Image = Image.FromFile("C:\play.png")
(Mar 10, 2015 11:49 AM)Minimal. Wrote:  Uhm, something like this?

The code below will change the image in a picture-box to the file you pointed the path at.

Code
YourPictureBox.Image = Image.FromFile("C:\play.png")

I'm not sure how to explain this, I've not got any code to show to aid in explanation.

But for example I create a gui called #main and I want to change to another gui so I could change the position of a button without having to open a new window.
(Mar 10, 2015 01:06 PM)Chesso Wrote:  I'm not sure how to explain this, I've not got any code to show to aid in explanation.

But for example I create a gui called #main and I want to change to another gui so I could change the position of a button without having to open a new window.

In terms of GUI, do you mean a form?
(Mar 10, 2015 01:06 PM)Chesso Wrote:  But for example I create a gui called #main and I want to change to another gui so I could change the position of a button without having to open a new window.

Be as thorough as possible in future. That way, you'll get your answer far quicker. To move a control programmatically:

Code
Button1.Location = New Point(10, 10) 'Move 10px each way from the top left XY axis
You could do that, or you could do tabs. I don't know which would be better suited to your purpose.
Freelance Programmer

Selling Scripts

Non-Sharing Virus Scanning Script
PM Me For Anything

I'd recommend using a tabcontrol, you could also use panels to bring fourth the one you want to use and then hide the other one/s?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by MorphineApr 29, 2017 04:47 PM 1 135 Apr 29, 2017 04:47 PM
Last Post: Malicious Intent
[Python] by S0lo.spikrJul 7, 2016 11:16 AM 2 111 Jul 7, 2016 11:16 AM
Last Post: S0lo.spikr
[C] by MeterpreterMar 12, 2016 11:24 AM 6 214 Mar 12, 2016 11:24 AM
Last Post: Mouse❤️