43,549 Solved Topics
Remove Filter ![]() | |
It sort of works - the thing is without clicking the picturebox or anything, the form, whenever I move the mouse, it moves any help? Thanks Public Class Form1 Dim drag As Boolean Dim mousex As Integer Dim mousey As Integer Private Sub CloseButton1_Click(sender As Object, e As EventArgs) Handles … Software Development vb.net | |
C program that extends my.c to take file names as command line arguments. It will read each named file and write the first 10 lines to standard output. If there are no command line arguments, it will read from standard input. If "-" is given as a file name, it … Software Development c file-stream unix | |
I'm trying to change an excel file to csv but the methods I've used so far have corrupted the file. I've tried renaming the file and using saveas from excel. Dim importsFileList As New ArrayList Dim sFile As String Dim extension As String Dim newExtension As String Dim file As … Software Development vb.net | |
Hi chaps, what do we define as a client of a class please? I keep reading about "clients of a class" but I don't understand what that means. Maybe it is better to have some examples: take the following 2 files: //Employee.java public class Employee{ public static void main(String[] args){ … Software Development java | |
Hi, i have a form and i have 2 input box. Is there any way to restore the last input in reopening the Form. 'is there any code like this? userform1.input_date.value = userform1.input_date.lastValue Thank you in advance. Software Development visual-basic | |
Ok so i have implemented a program that simulates a post offie, but now i cant figure out why my threads arnt join and printing, also not sure why my threads are not interleaving. Anyone care to take a look at my code?, its kinda long thats why i dint … Software Development java | |
How to know which version 1.Microsoft SQL Server 2008.(Express) 2.Microsoft SQL Server 2012.(Express) Both installed on my machine,am I running(using)? | |
How to convert C++ code to C. Write a program in C that asks a user for the name of a file. The program should display the first 10 lines of the file on the screen (the "head" of the file). If the file has fewer than 10 lines, the … Software Development c c++ file-stream file-system ios visual-studio | |
Hello, Iv recently been having trouble with a java project im working on as i need a button to add a sentence to a Swing list box. The problem im having is it uses an observable class and an observer. Fundamentally the list adds the elements to an array in … Software Development java java-swing storage | |
Hi everyone, I need to use integer that is typed into textbox to do some math functions. here is what i have: Private Sub btnDivide_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click dim x as integer dim y as integer dim tbox as integer tbox = (Textbox1.Text) x … Software Development vb.net | |
Whenever I try to run this nothing happens. Does anyone know what's wrong? package hobbits; public class Hobbits { String name; public static void main(String[] args) { Hobbits []h = new Hobbits[3]; int z = 0; int x = 0; while (z < 4){ h[z] = new Hobbits(); if (z … Software Development java | |
I want to read a datafile which consits of 5 coloums and 4 rows, which consists of numbers seperated by commas. The first line of the data file looks like this: 103343, 24, 55, 24,12. I have started my program by allowing to input the file in my program, however … Software Development c file-system operating-system | |
Hi Guys, wondered if someone could help please? in my customer form i have managed to pull in the data from the table to the right txtboxes, and i can move forwards and backwards ("happy days") but now im trying to update a record, this one has seem to thrown … Software Development open-source vb.net | |
I installed the new **pillow 2.0** on windows 7 python 3.3 using one of the installers with no problems. Apparently that installer provides the jpeg support necessary for Vegaseat's program (link below). However, I am having some kind of trouble getting the jpeg support to work on Ubuntu. After my … | |
Hey guys, I'm making a hangman project just for fun, and i was wondering if you could help me. * I have 5 classes * class 1- main (basically controlls everything except recognizing where the letters are located in the word and printing the hangman picture) * class 2- char_array … Software Development java | |
I have no problem of putting a break statement in the default option of a **switch case** statement, just wondering why it is needed. Anyone any ideas? int a = 42; switch (a) { case 1 : case 2 : //statements for case 1 and 2 break; // probably more … Software Development | |
Hi All, I'm taking a different approach to importing the csv to access and trying to import the csv to the dataset. I've found the following code but it's giving me an error Dim fileToOpen As String Dim da As New OleDbDataAdapter() Dim ds As New DataSet() fileToOpen = ImportFiles.SelectedItem … Software Development dataset microsoft-access open-source vb.net | |
con1.Open() Dim com2 As New OleDb.OleDbCommand("insert into Department(DNo,DName,Manager,AddressL1,AddressL2,City,Telephone,E-mail)values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox8.Text + "')", con1) com2.ExecuteNonQuery() MessageBox.Show("Succsessfuly Inserted", "Insert", MessageBoxButtons.OK) con1.Close() Me.Hide() Form2.Show() it … Software Development vb.net | |
Hi, I'm having issues with driver class is giving me issues. The code needs 2 for loops requirement. The driver class will create an array of 3 CircusClown objects. Use a loop to get user input for your 3 objects. Use a loop to print the toString() method of your … Software Development java | |
I came across the foll code: #include<stdio.h> main() { int i=4,j=7; j=j||(printf("you can")&&(i=5)); printf("%d %d",i,j); } output: 4 1 Athough I am specifying the braces for the && operator so that it gets executed first..Then also the value of i remains 4 only..Why doesnot it gets changed to 5??Also the … Software Development c | |
which is better for a noob programmer ? netbeans or jcreator? or any other ? please help me thanks in advance Software Development java | |
Hello, Would someone be willing to take a look at this segment of code? I am trying to figure out how this segment of code operates. I can see how the program can evaluate a simple prefix statement like + 7 6. I cannot see how the program can solve … Software Development java | |
Hi Guys, wondering if someone could help me please, this is probably easy for most, but im a beginner :) i want to make an array from my dataset dataset is from (tbl_Employees) i want the array to hold 3 columns/items = item 1 (Username), item 2 (password) item 3 … | |
I am supposed to create a binary tree using strings typed in by the user, to build a balanced tree using recursion. When I type in letters: A, B, C, D, E, F and the output is set up for preorder output, what I am getting is:A B D F … Software Development java | |
Hi I want to get pixel value from picture. Anyone know how to do this? Regard Software Development image visual-basic | |
Declare an integer variable size of 10 elements, input the elements. find the sum of the elements. display the elements. display sum using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int size, sum = 0; Console.WriteLine("input 10 elements"); size=Convert.ToInt32(Console.ReadLine()); … Software Development | |
CAn anyone help me how to create a file browser using excel macro? Thank you guyss. Software Development visual-basic | |
616.00 -first value -1 empty -2 empty 616.00- last value 791.00 791.00 -1 empty -2 empty 994.00 1,008.00 - - - -- - 910.00 882.00 -1 empty 826.00 756.00 can anyone show me a code to interpolate this replacing the blank space that is not more than 4 to tha … Software Development visual-basic | |
Hi everyone! I haven't seen this question here, so I'll give it a try. I'm from a country where some words have accents, like *MarÃa*. I have all this words in a database and I would like to use the Select function from a DataTable but ignoring accents in the … Software Development | |
Hey Everyone, I want to instantiate an ArrayList in java. I realize the method to doing this is: ArrayList<String> determiners = new ArrayList <String>(); determiners.add("A"); Where "A" is added to the arraylist once created. However, the problem I'm having is that the .add method doesn't work unless in a main … Software Development java | |
I'm stuck, can someone teach me on how to populate my listview using database. | |
**I have some errors in my code and can't figure out how to get rid of them any help is wonderful.** The full code is: import java.util.Scanner; public class FindGeneSequence2 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Please enter a genome for segmentaion into genes: … Software Development java | |
import java.util.Scanner; import java.util.Random; public class HangmanGame2 { public static void main(String[] args) { Scanner input = new Scanner(System.in); final String[] WordList = { "porcupine", "flamingo", "sasquatch", "poseidon", "minnie mouse", "mickey mouse", "galileo" }; String ChosenWord = WordList[(int)Math.random()*WordList.length]; StringBuffer display = new StringBuffer(ChosenWord.length()); for (int i = 0; i < … Software Development java | |
Problem: I have a version of 2003 of MS EXCEL for example I have Line A and Line B in the same work sheet the DATA of Line A has a b c d e and f the data of Line B has b and d only if I use … Software Development mathematics microsoft-office | |
I have this code Dim con = New SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True") con.Open() cmd.CommandText = "SELECT Firstname,Lastname FROM Employee where Firstname = @Firstname and Lastname = @Lastname" cmd.Parameters.Add(New SqlParameter("@Firstname", TextBox1.Text)) .Value = TextBox1.Text cmd.Parameters.Add(New SqlParameter("@Lastname", Lname_txt.Text)) .Value = Lname_txt.Text dr = cmd.ExecuteReader While dr.Read Label4.Text = dr(0) … Software Development dataset open-source sql vb.net visual-studio | |
Hi all, I'm trying to change the file extensions of some excel files to csv and add the file names to a list box. The box is coming up blank however. My code is as follows: Private Sub Project_Load(sender As Object, e As EventArgs) Handles Me.Load Dim importsFileList As New … Software Development vb.net | |
Dim siar As Integer, siac As Integer Set SIATable = SIADoc.Tables.Add(SIADoc.Bookmarks("\endofdoc").Range, rs.RecordCount, 7) SIATable.Range.ParagraphFormat.SpaceAfter = 0 SIATable.Range.Font.Underline = wdUnderlineNone SIADoc.Tables(1).Borders(wdBorderTop).LineStyle = wdLineStyleSingle SIADoc.Tables(1).Borders(wdBorderLeft).LineStyle = wdLineStyleSingle SIADoc.Tables(1).Borders(wdBorderBottom).LineStyle = wdLineStyleSingle SIADoc.Tables(1).Borders(wdBorderRight).LineStyle = wdLineStyleSingle SIADoc.Tables(1).Borders(wdBorderHorizontal).LineStyle = wdLineStyleSingle SIADoc.Tables(1).Borders(wdBorderVertical).LineStyle = wdLineStyleSingle For siar = 1 To rs.RecordCount For siac = 1 To 7 SIATable.Cell(siar, … Software Development visual-basic | |
hi everyone I'm supposed to write a wifi analyzer in java , what are the libraries I need to do it ? also I'm using linux will my work be protable for windows?? Software Development java | |
Hello all, I'm suppose to write a program that asks the user to input five numbers. Out of those five numbers, the program is suppose to select the maximum value. I attempted to do it with "else-if" statements as can be seen in the following code. I was hoping there … Software Development c | |
Hi i got this problem and i dont why it occured in my query i know that the Table name is correct and the Column Name is correct but this error always appear No value given for one or more required parameters. the it highlights the da.fill(dt) Dim da As … Software Development vb.net | |
I have the following code on threads.I have a doubt that is it possible that any of the two threads created ie one and two will execute the 2nd print statement in run method before the first print statement in it?That is print hello first and then the current thread … Software Development java | |
Hi, All, Greetings! Is this doable? I have a textbox for email address entry, now, when I type the email address and reach the @ character, there will be a dropdown suggesting common domains like msn.com,hotmail.com, aol.com, yahoo.com and etc. I hope you can help me. Thanks in advance. Software Development vb.net | |
I'm writing classes for widgets on a ui. While planning what I would do, I realized majority of the of the classes would look very similar. What I decided to do was to use a macro that takes a few parameters to define the similar parts of the class bodies. … | |
Hello. I have to design 2 classes that use a binary search tree for storing some orders for some products. I've researched on the Internet about BST implementations in Java, and I've found TreeSet. Do you have any other suggestions? Thank you:) Software Development java | |
I am running a database with about 200,000 records, so not too big. It runs fine except when I try to update one of the tables. Here is the code: Private Sub Add_History() Dim cb5 As New OleDb.OleDbCommandBuilder(da5) Dim dsNewRow5 As DataRow Dim sql5 As String sql5 = "SELECT * … Software Development vb.net | |
Guys how do I install WxPython in Ubuntu? I tried following the directions here: But to no avail.... [URL="http://wiki.wxpython.org/InstallingOnUbuntuOrDebian"]http://wiki.wxpython.org/InstallingOnUbuntuOrDebian[/URL] Is there an easier way to do this? | |
I'm looking to make a single method that takes in my object and spits out a checkbox with an item listener. Here's my relevant portion, the IDE wants me to make my argument and checkbox final prevents the listener from functioning during runtime. Any ideas or help would be appreciated, … | |
I have a simple data input form in which when the form is activated if sets focus on a textbox and sets the back color. I later have a datetimepicker control. The tab stops are coreectly set but when ever the users selects a a date from the datetimepicker the … Software Development vb.net | |
So, my assignment wants me to take an integer and print how ever many numbers until it reaches that number. So basically, if you type 5, the output would be : 1,2,3,4,5. My logic was this Define a for loop that starts at 1 and iterates until i is equal … Software Development | |
i have no insert method and still its adding node in linkedlist. code below have no error so you can run to see the problem better. if u run this it will ask u to enter a command. i only have two commands exit and display. display command will print … Software Development java linked-list |
The End.