Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
19% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
6
Posts with Downvotes
4
Downvoting Members
4
0 Endorsements
Ranked #2K

43 Posted Topics

Member Avatar for george_82

Is it "better" to programmatically create form objects at run time or is it better to use the IDE tool box to drag items onto the form?? For example I made a project that had 27 buttons. I decided to create all 27 of them at run time with a …

Member Avatar for asdfiuo
0
7K
Member Avatar for RunTimeError

Hey guys, So I have been practicing some common interview questions and have been stumped on one. I got asked this a few weeks ago at a job interview and I failed pretty miserably on it. It is removing duplicates in an array. The problem is as follows: "Given an …

Member Avatar for MvKTheBoss
0
425
Member Avatar for moshe12007
Member Avatar for Executionerr

I have no idea where in your code your having problems. Can you please describe the issues you are having and perhaps post in code tags the area in your code where you are having problems?

Member Avatar for RunTimeError
0
121
Member Avatar for RunTimeError

Hey guys. Got a pretty simple question about getting my navigation DIV to stay in one spot. I've got a DIV that I have given a height and width of 100% and a fixed position to. I also have a background image aligned to center in this div. My problem …

Member Avatar for RunTimeError
0
259
Member Avatar for Arjun_Sarankulu

The link you posted is not working. (got a 404 error) Can you take a screenshot and post it? You might also want to try margin-bottom:0

Member Avatar for gogreen1
0
60
Member Avatar for MokaChick

Hey MokaChick, Since you have a 'StringBuffer' object your string is now mutable which means you can overwrite whatever position in the string to whatever character you want. I would do this: [CODE=JAVA] if (pos>=0) { sb.charAt(pos) = guess; } [/CODE] That should work.

Member Avatar for MokaChick
0
196
Member Avatar for newack

Yes. It seems like you have a trial version of 'SQL Server 2008' installed on your machine and the period has expired. So what you can do is: 1) Just install the 2008 version from your university website. It should just update the existing version of your sql server. 2) …

Member Avatar for Mitja Bonca
0
78
Member Avatar for kukuruku

Great answers from Jon and James. It's just telling the code to return back to the calling function if you hit that chunk of code.

Member Avatar for RunTimeError
0
104
Member Avatar for rithish

There are loads of resources on the web for building sites. I would google 'ASP.NET tutorials'. ASP.NET incorporates a lot of the basic principles of html,css so you can also google html guides as well to assist.

Member Avatar for RunTimeError
0
167
Member Avatar for RunTimeError

Hey guys, I've done this so many times before but I can't seem to get it working!! All I'm trying to do is in the JavaScript at the top change a span tag to whatever the current window location is but it doesn't work! [CODE=HTML] <div id='Box' class="whitebox"> <div class="position"> …

Member Avatar for Luckychap
0
360
Member Avatar for RunTimeError

Hey guys, For some reason I cannot get an image I have uploaded to display when I try to render it through an <img> tag within a response.write() API Call in C#. Here is my code: [CODE=C#]protected void uploadFiles(object sender, EventArgs e) { HttpFileCollection allFiles = Request.Files; for (int i …

Member Avatar for CrappyCoder
0
614
Member Avatar for RunTimeError

Hello, I just have a very simple n00b question so please forgive me. Basically I have an ASP.NET website connected to an SQL server database. Everything is working fine (I can connect to the database, execute queries) but where should I put the SQL connection/logic code? In the aspx.cs code …

Member Avatar for MichaelWClark
0
486
Member Avatar for GAME

[QUOTE=GAME;1158257]I've tried google and this site but cant seem to find anywhere to start? I'm trying to make a character limit one then automaticaly go to the next open text box.[/QUOTE] Text boxes have a .Length API call which will tell you how many characters are currently in the text …

Member Avatar for RunTimeError
0
113
Member Avatar for sidd.

[QUOTE=sidd.;1051675]hi, how to round up a number. e.g. 3.4 to 3 and 3.5 to 4 thanx in advance[/QUOTE] Use: [CODE=C#] Math.Round(4.4)); [/CODE]

Member Avatar for Geekitygeek
0
194
Member Avatar for RunTimeError

Hey everybody I have a large collection of e-books and pdf files. The problem is it really hurts my eyes after reading from the computer screen for a few hours. I've seen products such as the Amazon Kindle that has e-ink but are there any applications that can make reading …

0
66
Member Avatar for rogger_tare

Well in your instance..I'd recommend 'a-Squared Free' you can download it at: [URL="http://download.cnet.com/A-squared-Free/3000-8022_4-10262215.html"]http://download.cnet.com/A-squared-Free/3000-8022_4-10262215.html[/URL] A-squared free will most likely find it but not be able to remove it. The problem lies in the fact the nasty trojan you have is probably a root kit. So basically its embedded itself in your …

Member Avatar for PhilliePhan
0
199
Member Avatar for RunTimeError

Hey guys, is there any program out there that will scan a directory of files and record its file size on disk and its name? I've been searching and can't seem to find anything.

Member Avatar for RunTimeError
0
98
Member Avatar for jas2010

Wow since none of us are psychics and/or mind readers would you please post some code in code tags and maybe we could help.

Member Avatar for jas2010
0
150
Member Avatar for bords

[QUOTE=bords;1065701]Hello...we are to make a project like "Text Twist"... but in the network connection form... maximum of four players so there will be also 4 computers connected by LAN... i just need ur advice guys f how could i make this project... is it about using database? when i tried …

Member Avatar for RunTimeError
0
95
Member Avatar for gad10

Sounds like you got a really bad case of Mal-Ware. The goods news is that most of it is fairly easy to remove. First of all, I want you to download two programs: Malwarebytes Anti-Malware [URL="http://download.cnet.com/Malwarebytes-Anti-Malware/3000-8022_4-10804572.html"]http://download.cnet.com/Malwarebytes-Anti-Malware/3000-8022_4-10804572.html[/URL] (After downloading it make sure you hit the 'update' tab and update the virus …

Member Avatar for jholland1964
0
781
Member Avatar for teatime

[QUOTE=teatime;1045078]I have to build a media player in C# for my final project and I'm not sure where to begin. I want it to be able to play most of the video and audio formats and have basic features like a track bar, a play list, and the option to …

Member Avatar for teatime
0
171
Member Avatar for saadismail85

[QUOTE=saadismail85;1048764][B][COLOR="Red"]mmm.... i think its good [/COLOR][/B] [CODE] import java.util.Scanner; public class Studentgrade { public static void main(String[] args) { int num_of_student ; Scanner input = new Scanner(System.in); System.out.println("Enter the number of Student :"); num_of_student = input.nextInt(); String []name = new String [num_of_student] ; int array[] = new int [num_of_student]; String …

Member Avatar for RunTimeError
0
321
Member Avatar for hippo120190
Member Avatar for d7o0om

Er...do you even need to use all those data types?? [CODE=java] private static boolean isPalindrome(String str) { //end index int end = str.length() - 1; //loop through string for(int index = 0; index < str.length();index++ ) { //convert String to lower case..and if at anytime //the characters don't match return …

Member Avatar for Ezzaral
1
353
Member Avatar for basketball4567

From your post it appears that you're relatively new to programming. Have you harnessed the power of Google? Have you tried searching Google with the terms: -"Read File C++" -"Read File Line by Line C++" -"C++ Reading Files" As programmers it is impossible for us to know how to do …

Member Avatar for amishraa
0
82
Member Avatar for venkates.99

I'm assuming its because the SQL is having trouble reading the 'Sheet1$.' Not sure if this will work but try and escape character: [CODE=C#] OleDbDataAdapter myCommand = new OleDbDataAdapter("SELECT * FROM [Sheet1\$\]", strConn); [/CODE] In some languages special characters such as '$' will be a prefix for the start of …

Member Avatar for Geekitygeek
0
1K
Member Avatar for RunTimeError

I'm trying to do something very simple...just access a JavaScript function that exists in a separate file but I can't seem to get it to work. [CODE=html] <form id="form1" runat="server"> <script type="text/javascript" src="styleScript.js"></script> <div id="container" class="container"> <button id="button1" onmouseover="mouseOver('button1')" style="margin-left:900px;width:200px;background-color:Transparent;height:100px;margin-top:120px;">About Me</button> </div> </div> </div> </form> [/CODE] My styleScript.js class: [CODE=javascript] …

Member Avatar for RunTimeError
0
135
Member Avatar for CSG-SQU

Here is an example of an object: [CODE=C#] //The Card Object. Global Object class Card { public int value; public string suit; public string type; public string image; } static void Main() { Program myProgram = new Program(); myProgram.createCard(); } private void createCard() { //Create a new instance card object …

Member Avatar for RunTimeError
0
121
Member Avatar for realdrouin

Er..I think it is possible but the problem lies in the fact that the Java Script code executes on the Client side will the C# class you wrote to handle the tree handles code on the server side. Here are a few links: [URL="http://stackoverflow.com/questions/3713/call-asp-net-function-from-javascript"]http://stackoverflow.com/questions/3713/call-asp-net-function-from-javascript[/URL] Another: [URL="http://sappidireddy.wordpress.com/2008/03/31/how-to-call-server-side-function-from-client-side-code-using-pagemethods-in-aspnet-ajax/"]http://sappidireddy.wordpress.com/2008/03/31/how-to-call-server-side-function-from-client-side-code-using-pagemethods-in-aspnet-ajax/[/URL]

Member Avatar for RunTimeError
0
109
Member Avatar for RunTimeError

With apologies to ddanbe, I just have a question regarding using the IDE toolbox vs programmatically creating form objects at run time. I use to fall into the habit of only using the tool box to create from objects such as buttons or picture boxes but have now started to …

Member Avatar for sknake
0
131
Member Avatar for RunTimeError

Hey guys, I just have a question regarding the separation of UI code from business/logic code. I always seem to get in trouble for putting to much code in form classes. I don't understand where the line is drawn between code that needs to be in form/UI code vs code …

Member Avatar for mikiurban
0
315
Member Avatar for Philip134
Member Avatar for thines01
-4
66
Member Avatar for ebumark
Member Avatar for RunTimeError

Hello, I've made a website but I've run into a problem. The site looks great when the user has the browser window maximized but when the browser is minimized an image I have on the right side of the screen is pushed over onto my background image. This is what …

Member Avatar for RunTimeError
0
175
Member Avatar for RunTimeError

Hello, I'm just wondering about static and non-static methods. I have a basic understand that non-static methods require a new object to be initialized to be used such as: [CODE=C#] public static void main() { mainProgram main = new mainProgram(); main.doNothing(); } public void doNothing() { } ][/CODE] V.S. [CODE=C#] …

Member Avatar for DdoubleD
0
348
Member Avatar for RunTimeError

Hello everyone, I'm trying to make a kind of log in system for an application. It's pretty simple. There are 6 picture boxes which display images. Of these 6 picture boxes one of the images is a recognizable to the user. When the user clicks on the 'correct' image the …

Member Avatar for sknake
0
110
Member Avatar for sgour03

Er..they want you to make an online website using C++?? Or just some form of a client that can make hypothetical reservations on a C++ server? You can't really make a website using C++ because obviously the front end of a web page consists of xhtml/html. That a long with …

Member Avatar for vmanes
0
216
Member Avatar for kadamora

If you want a unique picture than ddanbe is right. There are about 5 images..well actually icons rather than you can display in a message box. These are similar to your standard windows error messages. Example: [CODE=C#]System.Windows.Forms.MessageBox.Show ("Danger Will Robinson", "ERROR!", System.Windows.Forms.MessageBoxButtons.OKCancel, System.Windows.Forms.MessageBoxIcon.Error);[/CODE] But these aren't really images.

Member Avatar for RunTimeError
0
9K
Member Avatar for haven_u

Fairly new at C++ but I believe something like this will work. Comments or improvements appreciated. [CODE=C++] int main() { cout << "Please enter some text below:\n"; //string to hold user input string userInput; //user inputs info cin >> userInput; //create a char array of desired length. char chrArray[5]; //loop …

Member Avatar for haven_u
0
157
Member Avatar for RunTimeError

hey everyone, I've been a bit bored lately and have made a 'snake' game. I've made made a 10x10 grid of picture boxes and I'm holding the snake positions in a linked list. I'm changing the picture box to either 'snake.jpg' or 'blankSpot.jpg.' I have a pretty decent implementation working …

Member Avatar for Geekitygeek
0
380
Member Avatar for RunTimeError

I want to thank the helpful posts. I'm now having a new problem. I have created 100 picture boxes at run time and I am giving each a dynamic name (pictureBox_1, pictureBox_2, etc). I want to be able to change the background image of the picture box of my choosing …

Member Avatar for ddanbe
-1
466
Member Avatar for RunTimeError

Hey everyone, So basically I'm making a 'snake' game in a windows form. I want to make my line 'move' across the screen. I'm using the System.Graphics pen class to draw the line but for whatever reason the 'front' point of the line is incrementing but the back of the …

Member Avatar for Diamonddrake
-1
139

The End.