154 Posted Topics
Re: You realize you posted 3 different threads for this? I'm pretty sure thats against the rules you agreed to when you signed up. Also, It is `REQUIRED` you post previous code in which you attempted this. Please do so or no help will be provided. | |
Alright so I'm coding a Quadratic Equation Solver to help with my Math Class. However the teacher requires each calculation to be written out. I have the solver working, however I'm not sure where to start when it comes to printing each step. I know I will need to `System.out.println()` … | |
What I want to do is add items to an ArrayList then print. Each item needs to either be selectable, or non selectable. The list needs to be interactable with the arrow keys. I have the list being printed out, and thats about it. Heres my source, I have no … | |
Re: I just finished a ceasar cipher not too long ago. I'll give you my code for reference. package com.github.geodox.ceasarcipher; public class CeasarCipher { private static StringBuilder sb = new StringBuilder(); public static void main(String[] args) { String key = args[1]; String text; for(int i = 2; i < args.length; i++) … | |
I'm programming Blackjack and all is well, except after I type 'y' to hit again, the program terminates even though total is still less then 21. So my while statement is doing nothing? package com.github.geodox.blackjack; import java.util.Random; import java.util.Scanner; public class Blackjack { private static int total = 0; private … | |
I created a custom 'text menu' that should print each String passed to it. This is the class: package com.github.geodox.areacalculator.menu; public class Menu { private static int index = 0; private static String[] menuItems; public void addItem(String menuItem) { menuItems = new String[index+1]; menuItems[index] = menuItem; index++; } public void … | |
Alright, so I have been coding a Ceasar Cipher in Java and I have the encrypting working, However, I cannot seem to find my problem decrypting. Here is the code, I thought just by revearsing all the operations it would decode it, but that doesnt seem to be the case. … | |
When I run the game and try to use the Arrow keys to control the movement of the selection box, nothing happens. I'm pretty sure the game is redrawing itself properly because the ticker text is updating. Aswell, I tried doing: selectVal++; in the update function in TankShooter.Java, which made … | |
Re: Nexon is a trusted company, so I wouldnt see why not. As for the original question: You can buy game cards? like at walmart and stuff, WoW Gametime Cards, if you dont have a credit card, then these are your bestfriend. | |
Re: I believe what he is saying is when he presses the . key on his calculator multiple times, it adds more then one . As tinstaafl says, please post code on what you have done to attempt to accomplish this. | |
Im reading a text file and storing the characters in an array. I get a "Unhandled exception at 0x0109985e in Executable.exe: 0xC0000005: Access violation writing location 0xcccccccc." void drawMap(string MapLoc) { int i = 0; int x = 0; int y = 0; char* arrayMap[5225]; ifstream mapReader; mapReader.open(MapLoc); for (i … | |
Re: YouTube is your bestfriend. Search up "Game Development Language" where Language is the programming language you wish to use. Some good starting ones are C++(SDL and OpenGL), Java and C#. XNA may be good aswell. | |
| |
Re: Bringing up the issue of always keeping it resizable, I dont see the point if your project is small, unless you make everything resize with the form. In which case I never figured out how to do. | |
Re: @tinstaafl If you understood that, you my friend, are a bloody genius. :D | |
Re: Depends on how nice your really want. Im using C++ with SDL and OpenGL. My very basic UI. http://img577.imageshack.us/img577/3320/ui2t.png | |
| |
Re: As mentioned above, we cannot do your homework. However, if you attempt this code, and post the code you attempted, we could then give you a hand in helping you figure out how to do it. | |
void drawMap(std::string MapLoc) { char* gridMap[95] [55]; ifstream Map(MapLoc, ifstream::in, ifstream::binary); while (Map.good()) { for(int i = 0; i < 95; i++) { for(int j = 0; j < 55; j++) { if (gridMap[i] [j] == "X") { //Draw Wall glColor4ub(255,255,255,255); glBegin(GL_QUADS); glVertex2f(10*i,10*j); glVertex2f(10*i,10*j); glVertex2f(10*i,10*j); glVertex2f(10*i,10*j); glEnd(); } else if … | |
![]() | Re: Private Const CP_NOCLOSE_BUTTON As Integer = &H200 Protected Overrides ReadOnly Property CreateParams() As CreateParams Get Dim myCp As CreateParams = MyBase.CreateParams myCp.ClassStyle = myCp.ClassStyle Or CP_NOCLOSE_BUTTON Return myCp End Get End Property That should work, put into the Form's code you wish to disable under: Public Class Form Credit goes … ![]() |
Re: Change e As System.EventArgs To e As System.KeyEventArgs Try that, post back with results Try this too http://msdn.microsoft.com/en-us/library/system.windows.forms.keyeventargs.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 | |
Re: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724353(v=vs.85).aspx Try reading over that, see if it helps | |
Hey guys, I need a function that reads a text file and stores the character someway, (I am assuming a 2D Array would be best?) then a function that reads through the characters and if the char is something specific (like "X") then it would draw a square (QUAD) 10wx10h … | |
Im incrementing a value in a while loop, but its only incrementing when my mouse is moving. Any ideas? while (isAlwaysTrue) { value += 1; } Thats basically what Im doing. | |
Re: Please slap them in the face and tell them "No." On a more serious note, all you need is a database with the student info, a textbox, a few labels, and a button. Program the button to use the text from the textbox to search the database and output info … | |
Re: Should be the same, did you try it yet? | |
Re: What do you mean by the message? like as in a text? | |
Re: Im not too sure if this is what your looking for, but give it a go! http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3194&lngWId=10 | |
Re: Dim i As Integer = 0 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load form2.TextBox1.Text = CStr(i) End Sub Private Sub Increment_Click(sender As System.Object, e As System.EventArgs) Handles Increment.Click i = i++ form2.TextBox1.Text = CStr(i) End Sub Private Sub Decrement_Click(sender As System.Object, e As System.EventArgs) Handles Decrement.Click i … | |
Hello everyone! Quick survey, are you guys liking Visual Studio 2012? Comment below and say why you are, or aren't enjoying it! | |
Re: Keep it! Honestly that would be worth QUITE a bit, if you know how hard it is to find, you would understand. | |
Re: I really need to get caught up on Anime, and Manga. I used to spend 100's of $ on Manga (per month)! Was really awesome and I need to start watching again. I guess with To Love Ru out, theres no better time but the [present]! | |
Re: What do you exactly mean, "parser"? Like as in a coding parser? What exactly are you trying to accomplish? | |
Re: Some code for the Alarm, and how you set up the timer would be nice. Cant debug without code. | |
Hey guys, Im having a problem when trying to detect mouse clicks inside a function. Heres some code, and hopefully you can see what it's doing as its really confusing trying to explain. Sub ImageFollow(e As System.Windows.Forms.MouseEventArgs, myImage As System.Drawing.Image) Dim pBox As New PictureBox While TimerLeft pBox.Image = myImage … | |
Re: I dont believe there is anyway of doing this, after multiple google searches, nothing. So unless someone comes out and says for sure. Im gunna be saying no. | |
Re: Thanks mod for the deletion of my 2 cents. But yes, Jim's code should work :) | |
Re: Make a ComboBox, and name some colors and set some variables containing the color data. then change it based on the selected item, using the above code. | |
![]() | Re: PictureBox1.BackgroundImage.Save(filename) Should work, haven't tried it myself. |
Button1.DoDragDrop(BackgroundImage, DragDropEffects.None) Throws an error ' Object reference not set to an instance of an object. ' First time I've used DoDragDrop, and first time with 2012 :) | |
Re: Are you trying to Capture an image then put it in the PictureBox in your program? or just display a picture in the PictureBox? | |
Dim FileTrue As Boolean = True While FileTrue = True If My.Computer.FileSystem.FileExists("/Paths/aPath.txt") Then Form2.RichTextBox1.LoadFile("/Paths/aPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/mPath.txt") Then Form2.RichTextBox2.LoadFile("/Paths/mPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/lPath.txt") Then Form2.RichTextBox3.LoadFile("/Paths/lPath.txt", RichTextBoxStreamType.PlainText) Else Call PathSet() FileTrue = False End If My.Computer.FileSystem.FileExists("/Paths/wPath.txt") Then Form2.RichTextBox4.LoadFile("/Paths/wPath.txt", … | |
Whats wrong with this, doesnt make sense that it wont create the folder or files. If PathRead() = 0 Then MsgBox("Error Reading Path Info: One or more Paths do not exist.", MsgBoxStyle.Critical, "Path Read Error") MsgBox("Would you like to create these files?", MsgBoxStyle.YesNo, "Create?") If MsgBoxResult.Yes Then MkDir("/Paths/") System.IO.File.Create("/Paths/aPath.txt") System.IO.File.Create("/Paths/mPath.txt") … | |
Hey People of DaniWeb! I have a question for you! What would you think about having the Mobile Section split up? An Example: OLD: Mobile Development > A bunch of un organized threads. NEW: Mobile Development > iOS > All iOS threads IN HERE > Windows Phone > All Windows … | |
when trying to output the string of a variable to a text file, the string try's to run and therefore pops up like this, %localDrive% 2>>fileCompare.log 'C:' is not recognized as an internal or external command, operable program or batch file. Any ideas? ![]() | |
Re: Dim studentID as Long Private Sub StdntIDGen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles StdntIDGen.Click studentID = sessionID.Text + courseID.Text + levelID.Text + tmpID.Text End Sub tmpID.text would be a text box that increases by 1 each time the button was clicked. | |
Heeey guys!! Where's the forum for Batch Scripting!?!? Imma noob if it's Shell Scripting... ~~Zephyr | |
Re: Just add a new button and stick in this? Cls Form1.DrawWidth = 30 For i = 1 To 5 Line (150, 200)-(150, 100), vbMagenta: Delay: Cls Line (150, 300)-(150, 200), vbCyan: Delay: Cls Line (300, 300)-(150, 300), vbBlack: Delay: Cls Line (450, 300)-(300, 300), vbBlue: Delay: Cls Line (450, 200)-(450, … |
The End.