Search results for query: *

  • Users: ARC
  • Content: Threads
  • Order by date
  1. A

    Table update with OnClick

    I'm trying to figure out how (or find a tutorial that explains how) to change data in an sql database table in the OnClick of a button, on an asp.net website project. Im aware of the gridviews ability to allow modifying however, I dont want there to be user access to how it changes... I just...
  2. A

    Resizing an array

    This is set up with the ability to add and remove user names from a listbox. Below, I have this in the Remove User code in order to shift all the data past the tempIndex (the index that was removed) all the way up to the last entry, all down 1. Because totalUsers provides a value that's +1...
  3. A

    Custom Classes question (again)

    Alright so i've been trying to understand classes, and how to use them recently... and i still have some trouble with understanding the concept of using the objects that you add/create using the class. My understanding as of now, is that you create a Class and create it's Properties -- each of...
  4. A

    Class question

    I was wondering if someone could try explaining the concept of creating your own class to me in laymans terms. I'm having a hard time grasping the concept. I have examples of it in code, and I can see the logic somewhat but, i dont really understand how it works exactly. From my understanding...
  5. A

    button to edit value in database

    I have a database with one table, and a button on the webpage. I want to run some math on a value stored in that table (column1, row1 -- for example) when the user clicks the Button. i DONT want the user to be able to just edit the value to anything they want (just the math that i put in the...
  6. A

    Card Trick

    Not done yet, still have to add the suits to it, but you get the idea. This is based off of a card trick I really enjoy, and it drives people crazy if you're good at it. takes a bit of practice to get it to look convincing though. Anyways, you should test run it before actally looking at the...
  7. A

    Enum questions

    I've looked around, and im still having a little trouble wrapping my head around the use of Enums. Enums give a textual name to a variable? or does it have to be a constant? And then what's actually being recovered? the text you labeled the variable with? or the actual integer of the...
  8. A

    datasourcing a formview to a gridview

    Im having problems getting the Formview to display the correct field that the user selects from the Gridview... Am I missing something obvious? This is in the Code Behind (default1.aspx.vb) Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)...
  9. A

    loop order (again)

    I'm trying to get the 'space-less' messege, one letter at a time, and convert that letter into a number between 1 and 26. I'm doing so by turning the letter into ascii value, then minus 96. a = 97 so 97 - 96 = 1. a is the first letter of the alphabet. Then, i use that number (1) in...
  10. A

    Nested Loops Question

    Does a nested loop finish firing before the rest of the outer loop continues? I'm trying to fill a 3d array with the following loop and I'm not sure if this is the correct way to do it.
  11. A

    Efficient?

    Hi, so my biggest problem right now is being sloppy with my code. If someone could skim through this quick and see if it's efficiently arranged; or maybe make some suggestions about how to streamline the processes better -- I would be greatly appreciated. PublicClass Form1 Public Drow...
  12. A

    Fake array

    Hey, I'm creating kind of a fake array for a variable to move around in. it's 8x8 as you can see in the code below. For the purpose of my question, the form simply has 2 lables (xlable and ylable) and 4 buttons (north, south, east, and west). It's fairly obvious how it works. And I dont need to...
  13. A

    StreamReader help

    In VS, i added an item (bankroll.txt) and there's only 1 line of text on it: 2000 And I'm trying to assing that number (the only line in the text document) to a Public TotalMoney But when I run it, TotalMoney stays at 0 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
  14. A

    Checkboxes and select case Statements

    When i test it, it just quits when I 'check' b1. anyone know why? Err.. when the user checks box 1, i want it to toggle b2 and b6 from whatever their current state is; checked or unchecked. Public Class Form1 Private Sub b1_CheckedChanged(ByVal sender As System.Object, ByVal e As...
  15. A

    Game Test

    Hey, could someone check this out and see what they think? I havnt compiled it yet, but just open it, and test it out by doing CTRL+F5 Check out the code, and make any suggestions, good and bad critisism plz! I'm fairly new, as im sure you'll see by the code, but I'm a quick learner.:D :cool:
  16. A

    psuedo code idea

    I've already written this in actual code, but it's not organized well enough (I dont think)... And parts of it still dont work. Before I get into that though, I was wondering if someone would comment on whether or not this looks like the right way to do the things I wanna have it do. User...
  17. A

    ScrollToCaret()

    So I have timer events firing... which adds text to the bottom line (essentially) of the maintext.text -- The Me.maintext.ScrollToCaret() in the past has assured me that the textbox would scroll to the bottom before sending focus back to another textbox -- My problem though, is that it isnt...
  18. A

    changing the font color dynamically?

    Hey, so I made a fake chat interface, kind of based on a text based adventure. So there are a bunch of case statements for commands you can make in game. I have timers that are set at different intervals, and they display text in the text box on the main form: Private Sub...
  19. A

    loops/counters

    Could anyone offer a hint at what I'm doing wrong? This only spits out the first letter ascii value then stops. counter = 1 encodeme = Me.TextBox1.Text codedTextBox2 = Me.TextBox2.Text Do 'grabs (Counter) letter from the string in TextBox1 letter = Microsoft.VisualBasic.Mid(encodeme...
  20. A

    If Thens and Buttons

    Hey, so i have three buttons on the form (button1, button2, button6), and in each onClick I want the other two buttons to be effected. I have a module variable for each button, defulty set to 0. Upon the onClick, any and all of the buttons that have a 0 value, then it changes that value to 1 and...
Back
Top