132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for uDevv

Hey guys, what am i missing here: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Using sqlConn As New SqlClient.SqlConnection(sqlConnString) sqlConn.Open() sqlConn.Close() End Using End Sub Public Property ServerName() As String = "myip" Public Property DatabaseName() As String = "mytable" Public Property Login() As String = "sa" Public …

Software Development mssql open-source vb.net
Member Avatar for oussama_1
0
179
Member Avatar for fugio

hi all, I have a piece of code, I can delete the first value but fails and give notice InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If ComboBox1.Items.Count > 0 Then If e.KeyCode = …

Software Development vb.net
Member Avatar for oussama_1
0
1K
Member Avatar for wasme

I'm a student who is interested in coding his own Minecraft mods and there by hoping to learn Java Code. I have already taken many courses on line (Youtube) but those courses only take you so far and they DO NOT help you out if, by some chance an error …

Software Development java
Member Avatar for wasme
0
198
Member Avatar for kal_crazy

Creating a text editor. Thread 1 creates a file and listens for user input. Thread 2 checks for spelling mistakes. How do I show spelling mistakes on the console? Should I highlight the text that has the spelling mistake? I tried that but it just highlights the following text in …

Software Development c++ ide
Member Avatar for Moschops
0
223
Member Avatar for BogdanCov

Hello guys. I have queries, i made a matrix of Buttons and another of Panels and everythings is ok, that works. There is the code: private void button1_Click(object sender, EventArgs e) { for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) …

Software Development gui matrix-multiplication
Member Avatar for BogdanCov
0
192
Member Avatar for COKEDUDE

Is there a good way to slow down program output? usleep and nanosleep don't slow it down enough, delay doesn't work, and sleep keeps freezing my program. I am using Linux since I think this makes a difference in what I have to use.

Software Development c
Member Avatar for COKEDUDE
0
322
Member Avatar for nikolaos

I am trying to understand the structure of .class file in Java. Wrote a very simple program : package javautilities; public class Class_File_Structure { public static void main(String[] args) { int a = 10; int b = 20; int c = a + b; } } used the command javap …

Software Development java
Member Avatar for nikolaos
0
384
Member Avatar for i8kmon

Hi guys, I'm having problems converting .bmp to .jpg using vb6. :icon_question:The idea is to convert .bmp to .jpg so i can import the saved image to a pdf file for email and/or printing. I downloaded code that's supposed to convert .bmp to .jpg, but I get a compiler error …

Software Development pdf visual-basic
Member Avatar for Jose_9
0
2K
Member Avatar for runningirl

Hi, I would like to know the code for this problem: Write a program that asks the user to enter 5 numbers and display the numbers in descending order in iostream.

Software Development c++
Member Avatar for dereje mulie
0
90
Member Avatar for agrbinoo.albaker

Create a BMI calculator that reads the user’s weight in pounds and height in inches (or, if you prefer, the user’s weight in kilograms and height in meters), then calculates and displays the user’s body mass index.

Software Development c++
Member Avatar for jwenting
0
181
Member Avatar for dip7

Hi Does anyone know how to send sms using c#? do i need to buy a modem which can insert sim card? i have search the web. some do provide source code but it can't seem to work when i copy and paste the code to c#. Thanks

Software Development c#
Member Avatar for szurcsii
0
2K
Member Avatar for klevis.shkembi

can sb help me?İ have to make a project.... 4.power polinoms i have to find the real roots an complex root. anybody any idea for these. Thanks....!

Software Development c++
Member Avatar for David W
0
124
Member Avatar for JOHN-shirley

i need to Design and write a program to count the number of occurrences of each of the characters ‘A’ to ‘Z’, ‘a’ to ‘z’ and ‘0’ to ‘9 entered through stdin. i was thinking of defining a struc for char lower char upper and int digit but then how …

Software Development c
Member Avatar for David W
0
232
Member Avatar for nitin1

Actually, I am working on a project. I want to extract all the reviews from a website which has reviews related to movies, for example. I want to make an automated system which can extract the content of the website and save it to a file. That will be my …

Software Development c
Member Avatar for Suzie999
0
128
Member Avatar for DS9596

What's the difference between: int once; cout << "ok"; and this: char twice; cout << "ok"; Is the output for the first one just ok and the second one ok ok ?

Software Development c++
Member Avatar for Ancient Dragon
0
431
Member Avatar for SW-ENG mohamed

Given an integer n, print the following shapes using asterisks and spaces. For example, for n = 5 the following shapes are printed Input: 5 Output: * * * * * * * * * * * * * * *

Software Development c++
Member Avatar for Kristian_2
0
169
Member Avatar for Satyam_1

I have a textbox that select system time. and second textbox. In the second textbox i want to add time which is 2 hrs late from first textbox. How can i do it?

Software Development vb.net
Member Avatar for ddanbe
0
98
Member Avatar for veledrom

Hi, I'm about to start learning Python and want to find an IDE. For example something Visual Studio like stuff. WYSIWYG so when I write code, I should have a button somewhere to click and see the output. For free and for Windows and Linux platforms. I downloaded Komodo Edit …

Software Development ide python visual-studio
Member Avatar for Tcll
0
518
Member Avatar for kxjakkk

file_spellcheck = input("Name of the document to be spell-checked: ") with open(file_spellcheck, "r") as i: spellchecking = i.read() for item in spellchecking: items = item.split() if items in with open("file.out", "w") as i: i.write() I need to make a spell checker that uses another file as a dictionary. So let's …

Software Development python
Member Avatar for vegaseat
0
276
Member Avatar for castajiz_2

I ve been searching google for a long time now but I m not sure what kind of application (gps) should I develop. I would like from you guys to give me some trendy suggestions on what kind of gps app would be interesting to make and the most important …

Software Development asp.net
Member Avatar for castajiz_2
0
202
Member Avatar for rody9

Hello,I am Vanen,from Mauritius Island,new to c# and vs. I am getting difficulties while saving values from my datagrid to database. If possible,option for selecting all the rows and option for selecting which rows to save to database from the datagrid. Can someone guide me?please! Thanks in advance.

Software Development vb.net
Member Avatar for rody9
0
216
Member Avatar for Raymond_3

this is my code, the problem the compiler is saying is i need an extra parentheses after 5 in get fahr, but i know that cant be it... help meeeeeee please :) public double getFahr() { if (tempUnit.equals('C')) { return (5(tempNum-32)/9); } else { return tempNum; } } public double …

Software Development java
Member Avatar for JamesCherrill
0
192
Member Avatar for jatin24

I'm trying to find a way where the database name and the server name can be dynamic. I'm developing an application which uses C# and crystal reports. Both application and the reports use the same database which is setup on a separate database server. This application now needs to be …

Software Development c c# c++ client-server visual-studio
Member Avatar for johnsonjeven
0
3K
Member Avatar for ikel

I's like to simulate the behaviour of Dynamixel Pro's robot actuator, including the control table, please see [it here](http://support.robotis.com/en/product/dynamixel_pro/control_table.htm). I can simulate the robot actuator fine, but simulating the control table is a bit puzzling for me. The control table has address from 0 - 892. One way I can …

Software Development java
Member Avatar for JamesCherrill
0
303
Member Avatar for Labdabeta

Hello, I was recently looking through some of my code and found what I believe to be a memory leak. It is in a function that appends two strings and I am not sure how to resolve it. Here is the function: const char *strapp(const char *str,const char *s) { …

Software Development c++ motherboards-cpu-ram
Member Avatar for mike_2000_17
0
551
Member Avatar for COKEDUDE

I am using fgets to read lines of a file. I am then using if statements based on the location of the new line character to decide which sscanf to use. I have been getting a lot of windows files which usually use carriage returns. Most of the timeit "seems" …

Software Development c
Member Avatar for rubberman
0
815
Member Avatar for Complete_1

I can't work around these errors. Can someone help me out? Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Error 3 error C2238: unexpected token(s) preceding ';' Error 1 error C2143: syntax error : missing ';' before '<' Code: #pragma once #ifndef …

Software Development c c# c++ linked-list
Member Avatar for Ancient Dragon
0
642
Member Avatar for HacruLeian

i have a .csv file contain some name as below: William Shakespeare charlie chaplin david Copperfield and i'm supposed to write a java program that will turn the input above into the output below: WS cc dC but i still couldn't get the output that i want, i wanna ask …

Software Development java
Member Avatar for HacruLeian
0
1K
Member Avatar for pbarks1

I'm quite a newbie when it comes to coding, but i feel like i have done everything as it should be. I believe to get a transparent label i need to use the code - Label1.Parent = PictureBox1 Label1.BackColor = Color.Transparent I double clicked my picture box and inserted the …

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for pbarks1

This is what i have so far. Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click Timer2.Start() Button7.Enabled = True Label8.Text = "Match Begins" End Sub Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick ProgressBar1.Increment(1) If ProgressBar1.Value = 3 Then Label8.Text = "1st Half" End If ProgressBar1.Increment(1) …

Software Development vb.net
Member Avatar for oussama_1
0
1K
Member Avatar for rbyrd

I'm trying to write a program in which a message box is to appear on the application window when the application is launched. The code below produces the message box, but it appears as a separate window that is not over the application window. Is there a way to fix …

Software Development python tkinter
Member Avatar for woooee
0
317
Member Avatar for kristian.ssyn

I've been trying to resize my jbuttons to the size of my pictures, but the jbuttons keep on occupying the whole frame. The size of the photos are 150x267. import javax.swing.*; import java.awt.event.KeyListener; import java.awt.*; import java.awt.event.KeyEvent; import java.util.Timer; import java.util.TimerTask; public class StartGame extends JFrame implements KeyListener { Timer …

Software Development image java java-swing
Member Avatar for JamesCherrill
0
13K
Member Avatar for Satyam_1

I have table-accessonbook and second table as report register I want to fetch data from one table as name,age,sex with unique id from 2nd table i want fetch Hb with same id so that when i enter peticular id it should fetch data from both tables linked to that id. …

Software Development vb.net
Member Avatar for oussama_1
0
471
Member Avatar for ziggystarman

Hi I've written this small program to demonstrate the Diffie–Hellman key exchange algorithm. The desired output from the program is for most runs correct. However occasionally there are some discrepancies in output of the shared secret keys values in that they don't match, when they should. I've found that certain …

Software Development algorithm c++ cybersecurity
Member Avatar for logicslab
0
993
Member Avatar for kxjakkk

#Import Story text = open('./alice.txt', 'rb').read() #Split the text into individual words def split_text(text): #Import known words index index = open('./words.dat', 'rb').read().split() index_file = open('./words.dat','wb+') for word in index: index_file.write(word) index_file.write('\n') import string #Remove punctuation out = "".join(c for c in text if c not in string.punctuation).lower() # split the …

Software Development python
Member Avatar for snippsat
0
2K
Member Avatar for Tariq Amin

what is the usage of getch() function? how to creat recovery softwear?

Software Development c
Member Avatar for Ancient Dragon
0
167
Member Avatar for xanawa

Hi, I am trying to call the '`getMembershipDetsPrice()`' php function in the html drop down list 'duration'. I tried to follow the W3schools tutorial but when I changed the value the html printed again. When the dropdownlist changed the value the label needs to be filled by the returned value …

Software Development javascript javascript-jquery php
0
162
Member Avatar for xanawa

Hi I have the following code so far. Basically I have a drop down list were the user selects the type of membership he wants. When he clicks the button buy now from the database the membership cost and type are displayed in the pg. The problem is that I …

Software Development javascript php sql
0
213
Member Avatar for priyamtheone

How do I detect left mouse button down and up events on the 'Close' option of the system menu that appears when the mouse is clicked on the top left corner of a form?

Software Development asp.net c# visual-basic visual-studio
Member Avatar for priyamtheone
0
399
Member Avatar for Richa_2

import java.util.Scanner; package p1; class Electricity { int cread=18634,fix_rate,due,ub_tax,curr_charge,bill,to_bill ; int pread,unit ; System.out.println("fix_rate="); Scanner sc=new Scanner(System.in); int fix_rate=sc.nextInt(); System.out.println("due="); int due= sc.nextInt(); System.out.println("ub_tax="); int ub_tax= sc.nextInt(); System.out.println("curr_charge="); int curr_charge= sc.nextInt(); System.out.println("unit="); int unit=sc.nextInt(); public void calc() { do { pread=cread-unit; System.out.println("fix_rate=" +pread); } while(unit<200) { int c1=2.75*unit; System.out.println(c1); } …

Software Development java
Member Avatar for Richa_2
0
297
Member Avatar for abhig

Write a program in Java to create an applet which take radius of a circle as input and find the area of a circle and draw the circle. Java Code: // Java Document import java.applet.Applet; import java.awt.Color; import java.awt.Event; import java.awt.TextField; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.geom.Ellipse2D; class Circle extends …

Software Development java
Member Avatar for JamesCherrill
0
453
Member Avatar for asadmoosvi

I have been programming for quite a while in Python but have just started to learn OOP properly. I find it really confusing and I don't really understand it. Especially the implicit self that python automatically passes. It just isn't clicking, really. May someone provide an easy explanation of what …

Software Development oop python
Member Avatar for vegaseat
0
325
Member Avatar for tutsie12
Member Avatar for vegaseat
0
378
Member Avatar for naveen1993

Help me with ur inputs, how to insert and move the image using C language.. we can use by using "Type Argument Approach" to move the image??

Software Development c image
Member Avatar for Ancient Dragon
0
115
Member Avatar for dennis.ritchie

My IDE codeblocks 10.05 cant run a program which is overloading functions. Any help please..maybe due to settings

Software Development c ide
Member Avatar for Ancient Dragon
0
213
Member Avatar for vinay L
Member Avatar for veledrom

Hi, Is OXYGEN better or ALTOVA XML SPY? Or, other? Thanks

Software Development xml
Member Avatar for mike_14
0
359
Member Avatar for BogdanCov

Hello, I try to play a video I i don't know how.. I searched and i found some tips and articles, but all of it if about Windows Media Player. It's fine, but i need to play something lika an intro an i don't wanna show all that buttons of …

Software Development video
Member Avatar for Hanif_1
0
268
Member Avatar for endri_1

Hi, i have a home work to do and is about Array-based Lists and Array-based Queues but i have no idea what goes on with my class since they have put me a higher level that i was supposed to be. Does anyone know any sites to send the hw …

Software Development c++
Member Avatar for David W
0
333
Member Avatar for Bitgod

I'm trying to parse this csv-like file, and I seem to be failing at it. Below is the contents of said file, and below that is the record format. Can someone give me a clue? Thank you. Source Code [Click Here](http://pastebin.com/xNFn1p7C) CSV File [Click Here](http://pastebin.com/L7w25eLh) Record Format [Click Here](http://pastebin.com/Rhb0UEdP)

Software Development
Member Avatar for Momerath
0
219

The End.