Jump to content

Helius

Member
  • Posts

    16
  • Joined

  • Last visited

Awards

This user doesn't have any awards

Recent Profile Visitors

682 profile views
  1. That insert statement is quite weird. Could you paste the table structures of the "treatment" and "animal" tables? Of course might be too late now, but worth a shot.
  2. You don't seem to be that experienced, but here's a somewhat "advanced" suggestion anyway: You could loop through the alphabet (A-Z) and for each letter add a button to the form. For each button set the name and text to the current letter and assign the click event of the button a shared method that evaluates the clicked letter up against the word. Here's a quick example without positioning on the form: Private Sub AddButtons() ' Loop through the alphabet (A-Z). For letter = Asc("A") To Asc("Z") ' We create a new button and set it's name and text to the current letter of the alphabet. Dim button As New Button button.Name = "btn" + Chr(letter) button.Text = Chr(letter) ' We set the buttons click event to a shared method. AddHandler button.Click, AddressOf EvaluateGuess Next End Sub Private Sub EvaluateGuess(sender As Object, e As EventArgs) End Sub
  3. Hello, I just received my PG279Q and other than a couple of finger prints on the panel, it is in perfect condition! However..... I can't get the monitor to overclock to 165Hz (A buddy has the same problem). I've got a 980 TI, I've enabled G-sync, I've overclocked the monitor to 165Hz and turned it off and on again. It still won't show the 165Hz when I click the refresh rate button. Is there anything I'm doing wrong? There's literally nothing helpful to find online.. EDIT: I'm using the DisplayPort cable that came with the monitor. Best regards Marcus
  4. Thank you, I have already compared them side by side, however it's not entirely accurate and it doesn't actually help, as I am aware of the differences. What I am not aware of is which camera is better and how slow the G5S is.
  5. Hello, I accidentally stepped on my phone a day ago, and I'll need a "temporary" one. I have decided to get either Moto G5 Plus or Moto G5S as they aren't too huge (I'm not to fond of big phones, so this will be a test to see if I can get used to it or not.) and they are cheap. Pros for G5 Plus: Has a quicker processor. Has a better camera? It supposedly does, can anyone comment? Pros for G5S: Has a better body. Has smaller bezels. Has newer version of Android. I would like a phone that has quick navigation (e.g. doesn't take ages to load Google Now), and a phone with a "decent" camera. So if the G5S isn't slow and has just as good or better of a camera, then I would go with that, otherwise G5+. I would be getting the 32GB of internal storage and 3GB ram version of both phones (Europe). Best regards Helius
  6. I don't know wether this has been resolved or not, as I couldn't be bothered to read through all that text (it sort of went off-topic). I don't know what you're trying to accomplish either, but I do potentially see the error. First of all, as mentioned earlier just use a "List<>" and remember to specify the type. Second of all, the "ExecuteCommand" method in the "ControlledObject" class is private because you haven't specified a scope. This means that you can't access the method from a different class.
  7. I'm working on a game where there are a bunch of rectangles with x width & height in a grid of x width and height, where one rectangle is different in color from the others, and one has to guess which one it is. The rectangles should scale with the grid size and also the view size. I currently have a half working system, but it's not good enough since it doesn't always scale as much as it could. Here's an example of my game: http://i.imgur.com/Zi4yYG8.png Here's an example of where it could have scaled better: http://i.imgur.com/ui7god4.png What would the formula be for doing this? Would the formula use the views width & height and the grids width & height to somehow figure out the rectangles size? The way I have setup the code is like this: if(randomGridWidth > randomGridHeight){rectom = new Rect(0, 0, getWidth() / randomGridWidth, getWidth() / randomGridWidth);}else{rectom = new Rect(0, 0, getHeight() / randomGridHeight, getHeight() / randomGridHeight);} Note that this is not the same code as was used when I took the screenshots. I'm currently using the formula above and it's still not scaling well enough (it's even smaller now). I'd really like to hear your opinions and ideas because everything I try fails somewhat (not very good at math). EDIT: If you need more code, simply ask
  8. Very nice, this should definitely be pinned. I only have one thing to add, there's a third debugging option. One could debug by commenting out code. I'm quite new to this forum and I've noticed that 99% of the posts in this section are "Please help! Code doesn't work". Which of course, is okay, but I'd like to see more releases, tips, tutorials, and work in progress.
  9. You just have to jump in there, you'll pick it up along the way. I find that it doesn't matter what you start with, because whatever you're doing, you'll find something that you won't be able to finish without doing some research. I have no specific tutorials for you, but I definitely think you should have a look at the Bukkit forums and of course Google + Youtube. EDIT: Here's a direct link to something very useful: http://wiki.bukkit.org/Plugin_Tutorial
  10. Dude, please start adding what language you're talking about, instead of the IDE, prefferably in the title of the thread. Most people have no idea wtf "Lazarus" is.
  11. You should definetily have a look at http://www.dotnetperls.com/, I've found it very helpful so far.
  12. Helius

    Basic C#

    You need to add an "OnKeyDown" event and check which key is being pressed. Here's an example: //This event will be fired when a key is being pressed private void ControlName_KeyDown(object sender, KeyEventArgs e) { //If the pressed key is the 1 key, show a msgbox. if (e.KeyCode == Keys.D1) { MsgBox("Test"); } } I think you should have a look at this: http://www.dotnetperls.com/keycode
×