Type: Posts; User: ErikJohansson
Hello, I just need some quick help here:
this.Controls[string.Format("S" + S)].Show();
this.Controls[string.Format("S" + S)].Visible = true;
Here's my picture puzzle that I've been working on for the last couple of days, I hope that anyone likes it! :)
- Scrambler that lets you see the scrambling process
- High Score for...
This is just a simple high score program that stores 5 scores in "settings" and displays them on labels. Not sure if anyone wants this..
I have made a custom class with a property called BlockPos which is an integer.
I can do this same thing with for example Width, but with my own property it doesnt work..
hmmm... I'm getting this error now:
Non-invocable member 'System.Windows.Forms.Control.Controls' cannot be used like a method.
You can't change values of variables outside of subs.
Public Class Form1
Dim num1 As Integer = 0
If you want to change the value after you have declared it, you...
posY is a string and it's value is "panel16". "controls" in the line of code is underlined red and the error in the Error List is:
Error 1 'Slider_Puzzle.Form1' does not contain a definition for...
block15.Top = ((Panel)this.controls(posY)).Top;
This doesnt seem to work..
I know that this post isn't in the c# section, but what's the C# way of doing this exact thing?
This doesn't work..
Could you show me how to override the properties?
Why doesn't this work? the panel does not show. It really should, it does if i add the panel from the Designer..
I have created a custom control:
Thank you paul for another great answer, will try this tomorrow!
Is it possible to replace "button1.backcolor" or just "button1" in this code with a variable(which will contain a buttons name):
button1.backcolor = color.blue
Thank you for the answer, can you explain more about how bounding boxes works and how you create them?
I'm making a simple platform game using shapes, and I have a question about grouping objects. When the player bounds intersects with the grounds bounds, it stops at the ground. However, so far I only...
I'll try it When I come home from work
Can you explain more, do you get an error? also post your code
I dont know, but at the top of your code you have used integers. That might be it.
Wow, this looks like a game that I would play! If you manage to make it, I want to see it! Even better would be to make online multiplayer
Works perfectly, thank you both dday9 and Shaggy Hiker!
Looks like i cant add this to your rep dday9, you've helped me too much already :)
The code works great, but how can I use the shape in another Sub, for example form1_keydown? I tried to put the code into a public sub and Call it in form1_load, then use it in form1_keydown, but it...
Thanks, but how can i create a panel in the code and not in the designer?
Edit: Would i use the CreateObject thing?
I have this code:
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
I was trying to make a slider puzzle game, but the way I was planning it in my head was probably a really bad and hard way of doing it. Firstly, the "panel" isn't really a panel, it's a picture box....
My Code Is:
Public Class Form1
Dim FreeSpace As String = "Panel16.Location"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
So I've been trying for TOO long with this now, i really need some help..
I'll try to explain..
I want to "Dim" a command, so that when i want to use the "command" (which is "button1.location" I...
Yeah I'm using one of those themes, my desktop looks almost like this one:
Edit: I have another question, I'm...
Thanks again, but could you explain what "nothing" and "tostring" does/mean? I'd like to understand everything that i put in my programs :)
I know right! :)
view this thread for finished program: http://www.vbforums.com/showthread.php?690695-A-different-calculator&p=4233531#post4233531
Just wanted to show the calculator i made today, just because i haven't seen one like it before.
Replace the * with what's in the small boxes
I'm trying to make a really simple calculator, which looks like this:
The user should enter values in the three big textboxes, and between those enter either +, -,...
When a webpage in my browser wants to open in a new window, it opens it in IE. What is the code to make it open the page in webbrowser1 instead?
Sorry, was in a hurry.
Can I have some more feedback please? :)
Could you give me an example of how you would do it? It does work though, but you cant have more than 3 tabs.
Edit: dunno why it double posted, these forums are pretty slow