Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

Focus on a textbox whose name is stored in a variable in vb.net

Hello everybody, I have many textboxes in my form In the lostfocus event of every textbox I store its name in a string variable called LastUsedTextBox I also have many other controls on my form I have...

View Article


mutual nearest neighbor algorithm

Hi! I have to implement calculation of key point pairs, based on euclidean distance, between points described by 128 values. The idea is that I have the lists of points (set A, and set B )/>. First...

View Article


C# on a powerPC

I don't know if this is in the right place on the site or if this is the right site to post this question but i have a power Mac G5 and i was hopeing to use c# to make some powerpc app. so can i ?? i...

View Article

File already open?

Imports System.IO Public Class addCustomer Dim intCusNumbers As Integer = 0 Dim boolAgeVerified As Boolean Dim intAgeVerify As Integer Sub cusDetailsArrayAdd() FileReader = New...

View Article

Unable to cast object of type problem

Hi First of all, this is my bit of code: PictureBox p = new PictureBox(); p.Name = "p" + i.ToString(); p.MouseEnter += (s, ex) => {...

View Article


Problem with converting to hex to decimal

can anyone stop the mistake in my code for some reason giving this method AA returns 160 not 170 /** This method converts a string from hexadecimal characters to a decial number * @since 23/1/13 *...

View Article

Outputting information to screen using getDisplayText()

Hi everyone, I'm working on a project for a class that has a Product, Book, and ProductApp class. I have to make certain changes to them, and somewhere along the way I'm screwing up and it's not...

View Article

reverse sort

public class Sort extends WrapIt1 { public void run() { //task: reverse the sort, int[] unsorted = new int[100]; for(int i = 0; i < 100; i++) unsorted[i] = (int)(Math.random()*100); println("Here...

View Article


2d Array searching etc

I cant get my head around this for some strange reason. Im trying to create a database which asks the user for names and then the program saves this and they can search delete etc. I cant seem to get...

View Article


can somebody help solve this "DogSearch0.java:28: cannot find symb

public class DogSearch extends WrapIt1 { public void run() { // // // // // String input = new String("The Dogman was no ordinary dog, nor man, but rather a peculiar dog-like man who barked like a...

View Article

Image may be NSFW.
Clik here to view.

Spring & static content (css, js)

I'm quite new to spring and I got stuck just in the beginning... I wanted to create simple app, that would use css and js. But I can't reach that static content... I've found some solutions, but I...

View Article

Queue to read in a print job with number of pages Java

I have to create a Queue to read in a print job with number of pages, and then print the jobs in the queue. I have no idea how to access anything dealing with print jobs. How do i get access to print...

View Article

need help with short code for google dev assignment

Here is the prompt for which I want to write a code for. I have figured out how to write a code JUST for the word "babble" but i need to make a code that applies to any word. # C. fix_start # Given a...

View Article


I keep getting error messages.

Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click WebBrowser2.document.GetElementById("username").SetAttribute("value", TextBox1.Text)...

View Article

How to reverse the priority queue (and why it works)?

Sometimes I need to reverse the order in a priority queue to have items sorted smallest to largest. However, I have trouble implementing this for structs since I often need to sort by multiple...

View Article


how to stop index of loop

i want to count number of times "dog" appears on a sentence but my code its creating a loop how can i stop this loop?? println(input); int index = -1; int count = 0; print("Counting dogs:"); do{ index...

View Article

malloc or not to malloc

hello. I'd like to know why didn't I need to write malloc for the function below. list_data(element) returns a void*. is it because we don't allocate memory for void pointers? int* data; /* some more...

View Article


Iterating through XML files using lxml.etree

Hello. I'm trying to iterate through xml files with the lxml.etree module, but I'm having a bit of trouble. For now, I'm only using the one RSS feed, http://distrowatch.com/news/dw.xml. But eventually...

View Article

selection sort on an array of class objects incomplete

i have written a selection sort algorithm to go sort an array of class objects by age in ascending order, the problem is that the output being given does not match what i think the code should do. when...

View Article

Image may be NSFW.
Clik here to view.

Single line If, or Multiline?

Hello all, I learned about single line If statements today, and really like the idea of them. I was wondering what you all preferred, as in Single line If, Multiline If/Else, or Select Case Statement,...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>