Search:

Type: Posts; User: ErikJohansson

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    2
    Views
    1,120

    Re: C#- Help with code

    Thanks!
  2. Replies
    2
    Views
    1,120

    C#- Help with code

    Hello, I just need some quick help here:



    this.Controls[string.Format("S" + S)].Show();




    this.Controls[string.Format("S" + S)].Visible = true;
  3. Replies
    0
    Views
    13,770

    C# - 15 Puzzle

    Here's my picture puzzle that I've been working on for the last couple of days, I hope that anyone likes it! :)

    Features:
    - Scrambler that lets you see the scrambling process
    - High Score for...
  4. Replies
    0
    Views
    9,812

    C#- HighScore List

    Hello There.

    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..



    using System;
    using...
  5. Replies
    1
    Views
    1,225

    C# Custom Object

    Hello.
    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..


    SomeShit =...
  6. Replies
    14
    Views
    1,578

    VS 2010 Re: [RESOLVED] Is this possible?

    hmmm... I'm getting this error now:

    Non-invocable member 'System.Windows.Forms.Control.Controls' cannot be used like a method.
  7. Replies
    4
    Views
    804

    Re: declare and assign variables

    You can't change values of variables outside of subs.
    this works:


    Public Class Form1
    Dim num1 As Integer = 0
    End Class

    If you want to change the value after you have declared it, you...
  8. Replies
    14
    Views
    1,578

    VS 2010 Re: [RESOLVED] Is this possible?

    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...
  9. Replies
    14
    Views
    1,578

    VS 2010 Re: [RESOLVED] Is this possible?

    block15.Top = ((Panel)this.controls(posY)).Top;


    This doesnt seem to work..
  10. Replies
    14
    Views
    1,578

    VS 2010 Re: [RESOLVED] Is this possible?

    I know that this post isn't in the c# section, but what's the C# way of doing this exact thing?
  11. Replies
    4
    Views
    1,474

    Re: Simple C# Question

    This doesn't work..


    This.controls.add(Panel) ;
  12. Replies
    3
    Views
    1,179

    Re: Custom Object Properties (C#)

    Could you show me how to override the properties?
  13. Replies
    4
    Views
    1,474

    Re: Simple C# Question

    Thanks!
  14. Replies
    4
    Views
    1,474

    Simple C# Question

    Why doesn't this work? the panel does not show. It really should, it does if i add the panel from the Designer..



    using System;
    using System.Collections.Generic;
    using System.ComponentModel;...
  15. Replies
    3
    Views
    1,179

    Custom Object Properties (C#)

    Hello all.

    I have created a custom control:


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
  16. Replies
    14
    Views
    1,578

    VS 2010 Re: Is this possible?

    Thank you paul for another great answer, will try this tomorrow!
  17. Replies
    14
    Views
    1,578

    VS 2010 [RESOLVED] Is this possible?

    Is it possible to replace "button1.backcolor" or just "button1" in this code with a variable(which will contain a buttons name):

    private sub()
    button1.backcolor = color.blue
    end sub


    So...
  18. Replies
    3
    Views
    806

    VS 2010 Re: Platform game help

    Thank you for the answer, can you explain more about how bounding boxes works and how you create them?
  19. Replies
    3
    Views
    806

    VS 2010 Platform game help

    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...
  20. Replies
    15
    Views
    3,608

    Re: Game Idea: Crazy or Cool?

    I'll try it When I come home from work
  21. Re: VS 2010/2012 Web browser problem https

    Can you explain more, do you get an error? also post your code
  22. Replies
    22
    Views
    1,500

    VS 2010 Re: Going beyond the assignment

    I dont know, but at the top of your code you have used integers. That might be it.
  23. Replies
    15
    Views
    3,608

    Re: Game Idea: Crazy or Cool?

    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
  24. Replies
    9
    Views
    1,115

    VS 2010 Re: "Name" A Shape

    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 :)
  25. Replies
    9
    Views
    1,115

    VS 2010 Re: "Name" A Shape

    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...
  26. Replies
    9
    Views
    1,115

    VS 2010 Re: "Name" A Shape

    Thanks, but how can i create a panel in the code and not in the designer?
    Edit: Would i use the CreateObject thing?
  27. Replies
    9
    Views
    1,115

    VS 2010 [RESOLVED] "Name" A Shape

    Hello

    I have this code:


    Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
    e.Graphics.FillEllipse(Brushes.Blue, 100,...
  28. Replies
    12
    Views
    1,612

    VS 2010 Re: Ignore errors in Private Sub

    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....
  29. Replies
    12
    Views
    1,612

    VS 2010 Ignore errors in Private Sub

    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
    ...
  30. Replies
    4
    Views
    993

    [RESOLVED] Help with variables

    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...
  31. Replies
    4
    Views
    4,910

    Re: A different calculator

    Yeah I'm using one of those themes, my desktop looks almost like this one:
    http://browse.deviantart.com/?qh=&section=&q=windows+7+to+os+x#/d498clt

    :)


    Edit: I have another question, I'm...
  32. Replies
    15
    Views
    1,369

    Re: Calculator idea help

    Thanks again, but could you explain what "nothing" and "tostring" does/mean? I'd like to understand everything that i put in my programs :)
  33. Replies
    15
    Views
    1,369

    Re: Calculator idea help

    I know right! :)
  34. Replies
    15
    Views
    1,369

    Re: Calculator idea help

    Thanks paul!



    view this thread for finished program: http://www.vbforums.com/showthread.php?690695-A-different-calculator&p=4233531#post4233531
  35. Replies
    4
    Views
    4,910

    A different calculator

    Just wanted to show the calculator i made today, just because i haven't seen one like it before.

    Screens:
    http://i.imgur.com/PtND4.png
    http://i.imgur.com/tZRsr.png
    http://i.imgur.com/Ngd4i.png...
  36. Replies
    15
    Views
    1,369

    Re: Calculator idea help

    Replace the * with what's in the small boxes
  37. Replies
    15
    Views
    1,369

    [RESOLVED] Calculator idea help

    I'm trying to make a really simple calculator, which looks like this:

    http://i.imgur.com/aD1Xd.png

    The user should enter values in the three big textboxes, and between those enter either +, -,...
  38. Replies
    1
    Views
    692

    VS 2010 [RESOLVED] Web Browser New Window

    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?

    Thankies
  39. Replies
    6
    Views
    1,179

    Re: First Application (Web Browser)

    Sorry, was in a hurry.







    Can I have some more feedback please? :)
  40. Replies
    6
    Views
    1,179

    Re: First Application (Web Browser)

    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
Results 1 to 40 of 45
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width