154 Posted Topics

Member Avatar for mai.labarejos

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.

Member Avatar for Doogledude123
-1
137
Member Avatar for Doogledude123

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()` …

Member Avatar for JamesCherrill
0
269
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
1K
Member Avatar for eldiablo1121

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++) …

Member Avatar for Doogledude123
0
3K
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
410
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
259
Member Avatar for Doogledude123

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

0
122
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
753
Member Avatar for Miggle321

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.

Member Avatar for Chickzer
0
497
Member Avatar for linux
Member Avatar for Jake.20

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.

Member Avatar for Jake.20
0
291
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
283
Member Avatar for robbie.dunham.50

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.

Member Avatar for PixelDown
1
199
Member Avatar for northrox
Member Avatar for azareth

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.

Member Avatar for Doogledude123
0
151
Member Avatar for lavanya uppala
Member Avatar for Doogledude123
0
499
Member Avatar for MrEARTHSHAcKER

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

Member Avatar for Doogledude123
1
184
Member Avatar for brock.holman.7
Member Avatar for Lerner
0
113
Member Avatar for saraaw

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.

Member Avatar for Doogledude123
0
353
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
702
Member Avatar for Rahul47

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 …

Member Avatar for Rahul47
0
799
Member Avatar for aisehpe

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

Member Avatar for tinstaafl
0
2K
Member Avatar for MasterHacker110

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724353(v=vs.85).aspx Try reading over that, see if it helps

Member Avatar for Doogledude123
0
86
Member Avatar for Doogledude123

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 …

Member Avatar for Doogledude123
0
386
Member Avatar for Doogledude123

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.

Member Avatar for Doogledude123
0
1K
Member Avatar for mklove999

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 …

Member Avatar for Jx_Man
0
110
Member Avatar for dre-logics
Member Avatar for sumair khaliq
Member Avatar for akash.kotecha1
Member Avatar for Matigo

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

Member Avatar for Matigo
0
5K
Member Avatar for jontennyeah

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 …

Member Avatar for Icone
0
831
Member Avatar for Doogledude123

Hello everyone! Quick survey, are you guys liking Visual Studio 2012? Comment below and say why you are, or aren't enjoying it!

Member Avatar for deceptikon
1
266
Member Avatar for Ancient Dragon

Keep it! Honestly that would be worth QUITE a bit, if you know how hard it is to find, you would understand.

Member Avatar for BigPaw
0
110
Member Avatar for ~s.o.s~

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]!

Member Avatar for Doogledude123
1
317
Member Avatar for glenndr_15

What do you exactly mean, "parser"? Like as in a coding parser? What exactly are you trying to accomplish?

Member Avatar for Doogledude123
0
176
Member Avatar for Dv9UnKnoWn

Some code for the Alarm, and how you set up the timer would be nice. Cant debug without code.

Member Avatar for Dv9UnKnoWn
0
206
Member Avatar for Doogledude123

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 …

Member Avatar for TnTinMN
0
651
Member Avatar for joshl_1995

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.

Member Avatar for Reverend Jim
0
189
Member Avatar for Stealthbird97

Thanks mod for the deletion of my 2 cents. But yes, Jim's code should work :)

Member Avatar for Reverend Jim
0
101
Member Avatar for Jasminemali

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.

Member Avatar for Doogledude123
0
86
Member Avatar for DyO1
Member Avatar for Doogledude123
0
104
Member Avatar for Doogledude123

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 :)

0
174
Member Avatar for paoi00

Are you trying to Capture an image then put it in the PictureBox in your program? or just display a picture in the PictureBox?

Member Avatar for paoi00
0
338
Member Avatar for Doogledude123

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", …

Member Avatar for Reverend Jim
0
257
Member Avatar for Doogledude123

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") …

Member Avatar for TnTinMN
0
189
Member Avatar for Doogledude123

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 …

Member Avatar for ~s.o.s~
0
253
Member Avatar for Doogledude123

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?

Member Avatar for HTMLperson5
0
259
Member Avatar for pandeysk_13

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.

Member Avatar for G_Waddell
0
709
Member Avatar for Doogledude123

Heeey guys!! Where's the forum for Batch Scripting!?!? Imma noob if it's Shell Scripting... ~~Zephyr

Member Avatar for Dani
0
180
Member Avatar for riztra

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, …

Member Avatar for Nitesh Katia
1
211

The End.