43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for joshl_1995

Hello Community, I was wondering if its possible to make an editor like [Notepad++](http://notepad-plus-plus.org) (I'm talking about the text area). So it will change the colour of the words (funtions and commands) also with the margin with the numbers and the code folding. Please help with what you can even …

Software Development ide vb.net
Member Avatar for joshl_1995
0
543
Member Avatar for aplh_ucsc

this is my code:: <!--school.xml--> <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="school.xsl"?> <UCSC> <student> <name>Isuru ilangakoon</name> <age>21</age> <contct_no>0714234672</contct_no> <degree>computer science</degree> <school>DVharmapala college</school> </student> <student> <name>randika malinga</name> <age>22</age> <contact_no>0713567134</contact_no> <degree>computer science</degree> <school>Nalanda college</school> </student> <student> <name>vinod kawinda</name> <age>22</age> <contct_no>0783451024</contct_no> <degree>computer science</degree> <school>maliyadewa college</school> </student> <student> <name>Inshaf mahatt</name> <age>21</age> <contct_no>0777234151</contct_no> <degree>ICT</degree> <school>D.S.Senanayaka college</school> …

Software Development xml
Member Avatar for f-aplh
0
150
Member Avatar for themaj

Can you Close or Exit an application from within a Sub or what would be the 'best practise' for Exiting when the app has failed a logic test? My app checks for the existance of various files in a Sub Routine off the Form_Load and writes to a log along …

Software Development vb.net
Member Avatar for themaj
0
5K
Member Avatar for l_rankov

i have the following situation. how can I change the value in the column in a dataGridView? thanks!

Software Development
Member Avatar for jasonrle0332
0
11K
Member Avatar for pinsickle

I'm trying to learn Java, pretty easy so far as my previous experiance is with C/C++. I was just curious how to call java classes from different files. That way I don't have to have main as well as all of my classes crammed into one file. I'm sure the …

Software Development java
Member Avatar for dimapoter
0
10K
Member Avatar for MasterHacker110

I am trying to make something like a firewall but it isnt a firewall it is just suppose to see all the incomming and outgoing connections of each port. And put the IP address and port into a .txt file. Basicly creating a log of incomming and outgoing connections. Nothing …

Software Development c++
Member Avatar for L7Sqr
0
222
Member Avatar for MasterHacker110

I use code::blocks as an IDE but now i want to create a .dll file. I have followed this tutorial however it is for VC++. TUTORIAL: http://msdn.microsoft.com/en-US/library/vstudio/ms235636 I am strugeling becuase I am used to creating .dlls in C#. They are so easy. You just create a new library project. …

Software Development c++ ide visual-studio
Member Avatar for Valaraukar
0
403
Member Avatar for Hyperion101

Hey guys, Here's what I have to do: *Write a program that displays the table of Fahrenheit - Celsius temperatures. The formula is : C = (5/9) (F-32) C - Celsius, F- Fahrenheit The range should be: 0 - 200, where as the step should be set to 20. The …

Software Development c
Member Avatar for Hyperion101
0
662
Member Avatar for zeusprog

Please I am relatively new to Java and would really appreciate your help. Can anyone please tell me what I am doing wrong. I'm trying to send a string to an oracle and save it's output. My program just hangs when I get to this block of code. try { …

Software Development java oracle
Member Avatar for zeusprog
0
158
Member Avatar for zeusprog

Please I'm new to python and I'm trying to understand a line of code. Can someone please explain to me the implications of the addition of the for loop inside brackets with the random integer generator. Thank you for i in range( 0, 50 ) : ran_values = [ random.randint( …

Software Development python
Member Avatar for zeusprog
0
275
Member Avatar for hassan980

Hello, Im new to VB and therefore i require some guidance in this tricky situation that im stuck in. Basically, what my program does is calculate the mach number of an aircraft when the speed of sound and value of temperature are added into the text box. The problem arises …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
284
Member Avatar for maurya10

Here is the c code:- #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc,char *argv[]){ if(argc==1){ //default printf("first version\n"); int i,j,k; char line[1024],*str1,*str,str2[1024],ch; FILE *in=fopen("/proc/cpuinfo","r"); i=0; while((fgets(line,1024,in))!=NULL){ // printf("%s",line); str=strtok(line, " :"); if(str!=NULL){ //point 1 if(strcmp(str,"model")==0){ printf("%d %s\n",i,str); //point 2 str=strtok(NULL, " :"); printf("%s\n",str); //printing "name" if(strcmp(str,"name")==0) //point 3 printf("CPU Model:=%s\n",strtok(NULL,":")); } else …

Software Development c c# c++
Member Avatar for maurya10
0
282
Member Avatar for franzrivas

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then 'open connection if it is not yet open cnn.Open() End If cmd.Connection = cnn 'check whether add new or update If Me.txtReg.Tag & "" = "" Then …

Software Development vb.net
0
61
Member Avatar for mcgarry101

Hi, I am fairly new to VB.NET and i'm just wondering if anyone can help with a problem I am having. I am looking to pass some parameters to a vb.net application fwhen I call the app from another program (written in oracle forms). My question relates to how these …

Software Development ide oracle vb.net
Member Avatar for Carlosky5
0
925
Member Avatar for Khav

Hi Guys i need help on my school project.Currently i want to validate some important data in a textbox as soon as they are entered by the user Here is my coding........ Private Sub Textbox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1_Leave Call ValidateTextbox(Textbox1.Text) - Set saved = …

Software Development vb.net
Member Avatar for Khav
0
247
Member Avatar for jalpesh_007

I have one CSV file containing so many attribute but i want max and min values of particular specified columns. I have write following code for finding minimum value from each specified column,but i got only minimum of last column, not all column. In dataset.csv file contains 25,185,98,65 15,-20,6,95 17,20005,63,-78 …

Software Development dataset java
Member Avatar for Taywin
0
3K
Member Avatar for HibaPro

i have a combobox that binding to table , what i need is wneh i retured the data i dont want to duplicate entries for example i have combobox with item BOQ Section and the item as the following "concrete , concrete, concrete , Utilities , utilities, concrete, AirCondiotioning ,utilities, …

Software Development vb.net
Member Avatar for Reverend Jim
0
180
Member Avatar for PM312

i am trying to add values in two coloums of data grid view. Howeaver the result is values are concatenated instead of adding. i.e 10+25 result is 1025 and not 35. DgvLedger.Rows.Item(GRNO).Cells(6).Value = DgvLedger.Rows.Item(PRNO).Cells(6).Value + DgvLedger.Rows.Item(GRNO).Cells(3).Value howeaver multiplaying two coloums value result is correct.

Software Development vb.net
Member Avatar for PM312
0
133
Member Avatar for HibaPro

How i can hide or remove a column in DGV??? i use this code : DGVname.columns.remove(colindex) but the column didnt remove it jsut became the last column

Software Development vb.net
Member Avatar for Reverend Jim
0
113
Member Avatar for PinoyDev

Good day! I have started a little inheritance on my simple class that takes the addition function of two numbers on the other class but the sum is always zero even if it is not supposed to be. Here is my code so far: #include<iostream> using namespace std; class Addition …

Software Development c++
Member Avatar for iamthwee
0
150
Member Avatar for Bile

-->>Hi,I'm having an Access database (.mdb) with Members table and column Date registered just for an Example with datatype as text. -->>Now I have an Interface that I need to use it to get all registered members within the specified range of dates by using the Datepickers (1. Is for …

Software Development listview sql visual-basic
Member Avatar for Bile
0
139
Member Avatar for linabeb

hi im back with the new problem and the same problem..huhuh first is the same problem which is why does the data is not being inserted to the db..below is my full code for the custhome page 'Imports WindowsApplication1.LoginForm1 Imports System.Data.OleDb Imports System.Text.RegularExpressions Public Class Custhome Private _OrderID As Int32 …

Software Development microsoft-access open-source
0
91
Member Avatar for Despairy

Hey I just tried using the OpenCV for the past few hours but I keep on failing. I am a Windows 7 user with Visual Studio 2008. I followed the instructions for OpenCV2.2 (whilst downloading the newest stable version 2.4) did the CMAKE phase exactly the way it says . …

Software Development c++ gui visual-studio
Member Avatar for DJSAN10
0
262
Member Avatar for ryantroop

I have taken up the Python Challenge and I am stuck on challenge 6, which requires PIL - and sadly I am using 3.2 and there is no PIL support. Yes, alternatively I could simply download 2.7. However, I know there are some differences between 2.x and 3.x and I …

Software Development python
Member Avatar for ryantroop
0
162
Member Avatar for PM312

I have combobox on child form. combobox get populated when form is loaded. Now the problem is when child form is closed and reloaded combobox get populed twice with same items. it appears that combobox dosen get cleared when for is closed. Below code dosen work CboScrip.Items.Clear() Below code is …

Software Development vb.net
Member Avatar for PM312
0
114
Member Avatar for jalpesh_007

i have write a code for making a string that is being read from CSV file. i want to make a string from particular location of each and every line. i have attached a code what i have done.but i want it as it for any number of location. In …

Software Development dataset java
Member Avatar for jalpesh_007
0
297
Member Avatar for modesto916

Hi, I have a homework to do for college, which asks me to write a pascal lexical analizer in C. I'm trying to figure out the best way to ignore the comments, so far I've written this code, which works, but I would like to know if there is an …

Software Development c c# c++ pascal
Member Avatar for modesto916
0
264
Member Avatar for angel06

I'm currently creating a program where a user should enter the correct color shown in it. This should be entered in text box. What code should I use to make the program accept both upper case and lower case text inputs? For example "red" should be equivalent to "Red" something …

Software Development visual-basic
Member Avatar for debasisdas
0
558
Member Avatar for jakubee

Given an Arrayl.ist that contains a list of Employee object references, describe two ways in which you could write code to make a copy of that ArrayL ist. (Hint: one way would be a shallow copy). Use code examples to illustrate your answer. Discuss the implications of each way you …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for borchu

Hello guys, I start to learn&code some basic small client/server console applications in java -especially in android- and also I try to learn Threads, in fact, I managed to connect 2 different machine by uploading different projects to these machines, for example one project only consists of client and the …

Software Development android client-server java
Member Avatar for borchu
0
3K
Member Avatar for semicolon

I have a Thread running sql query how can do i force stop the thread when i dont want to use it anymore. I have a form that loads 100k from sql server i retrieve first the 2k then the thread runs to retrieve the other data i want to …

Software Development
Member Avatar for nmaillet
0
116
Member Avatar for daino

A really rooky question here but I'm still trying to understand something. If I'm using WXWidgets I assume the purpose of the GUI is to provide a trigger point from where I can process event s via the event loop. I basically create the gui as I want it and …

Software Development c++ gui
Member Avatar for daino
0
261
Member Avatar for jerviejeb

Hey guys, I need help. See, im trying to compare dates. if say, deadline is set and if the user is over the set deadline, it should display a message box saying that he passed his deadline. what i have so far is: If Date.Today > txtDeadline.Text Then Msgbox.Show("You've passed …

Software Development vb.net
Member Avatar for jerviejeb
0
331
Member Avatar for kraykezia

hey everyone, i am trying to write a code that will calculate the sum of all values in a column of Jtable. the total sum will change when a row is removed or added. i tried many ways. i need help urjently. :)thanks

Software Development java
Member Avatar for NormR1
0
262
Member Avatar for Vish0203

while((c=getch())!=13) { pass[z++]=c; printf("%c",'*'); } I used this while loop to take the input of the password. Everything works fine until no "wrong" key is pressed. the problem is, suppose, if i press a wrong key n i want to delete it (backspace) then even backspace is taken as a …

Software Development c
Member Avatar for Vish0203
0
125
Member Avatar for kanjali

HI, How to use multiple forms in c# windows application? Where i need to fetch the information form "Form2" to "Form1". Here Form2 is used to get information from user and again those informations will be used in Form1. Please suggest me to do this. Thanks a lot, Anjali :)

Software Development c#
Member Avatar for pavithra R
0
2K
Member Avatar for angel06

Option Explicit Dim score As Integer Private Sub Command1_Click() Dim Values(3) As ColorConstants Values(0) = vbRed Values(1) = vbBlue Values(2) = vbGreen Dim RandomNumber As ColorConstants RandomNumber = Values(Rnd * 2) Label1.BackColor = RandomNumber Randomize End Sub Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As …

Software Development vb.net
Member Avatar for angel06
0
197
Member Avatar for zukushikimimemo

mov eax, 4 mov ebx, 1 mov ecx, msg1 mov edx, len1 int 80h mov eax, 3 mov ebx, 0 mov ecx, num1 mov edx, 2 int 80h mov eax, 4 mov ebx, 1 mov ecx, msg2 mov edx, len2 int 80h mov eax, 3 mov ebx, 0 mov ecx, …

Software Development assembly
0
97
Member Avatar for silversurf

Hello everyone, I am new to vb 6.0 and trying to build an inventory software. in the stock entry form I used a MSHFlexgrid, 10 text box and a add button. I want to various items in ten txtboxes and each time a click the add button it will be …

Software Development visual-basic
Member Avatar for AndreRet
-1
850
Member Avatar for ITshard

sorry for my english but im really so desperate. This is due next week monday, and i don't know what do to or even where to start. Our professor didn't explain this homework , she just gave us a photocopy problem, we dont have any reference to look at. soo …

Software Development java
Member Avatar for stultuske
0
345
Member Avatar for ms_farenheit1

I am trying to implement a JScrollPane, containing a JTextArea, whose vertical scroll bar automatically remains as the bottom when new text is added, if it is already at the bottom, and stays in place otherwise. I have found a solution that seems to work, except when I move the …

Software Development java
Member Avatar for NormR1
0
667
Member Avatar for benk1

Hi everyone I have a simple piece of code thus: char userChoice = '\0'; validate:; printf("Please make a choice [y/n] \n"); //fflush (stdout) ; scanf("%c", &userChoice); if(userChoice != 'y' && userChoice != 'n' ) { printf("\nInvalid input; please enter y or n. \n "); userChoice = '\0'; goto validate; } …

Software Development c
Member Avatar for WaltP
0
150
Member Avatar for Dili1234

hi i'm doing a vb application to inventory mangement system Private Sub AppendItem(ByVal Major As String) myConnection = New SqlConnection(connectionstring) myConnection.Open() Dim TempData As New DataTable myCommand1 = New SqlCommand("Select Departement,Suject_Name From Major Where MajorName='" & ComboBox1.SelectedItem & "'", myConnection) myCommand1.ExecuteNonQuery() 'sqlcmd = New SqlCommand("SELECT P_Id,P_Selling_Price FROM Product_Details WHERE P_Id='" …

Software Development vb.net
0
84
Member Avatar for sanjeewa.abeywardana

How can I **convert this code to csharp code**, seems to be simple but little confused. Dim Temperature As Integer = 30 Select Case Temperature Case 31 Console.WriteLine("stay in bed") Case 32 Console.WriteLine("play the lottery") Case Else Console.WriteLine("Just read the newspaper") End Select

Software Development vb.net
Member Avatar for sanjeewa.abeywardana
0
88
Member Avatar for jsco2289

B)(i)Create a class file BankAccount.java under c:\myjava folder. Declare a String member type variable called accountType and a double member type variable called balance. There are three account type values allowed: "student", "basic" and "advanced" . (ii)Create a method called minimumBalance which takes one argument of type String (acccType) and …

Software Development java
Member Avatar for NormR1
0
231
Member Avatar for Simes

So I am working on a Traffic Simulator and I am having a fair bit of trouble with it. I need the menu to display, user chooses the option enters a value for the option and then either it loops with the menu again and they can set other options. …

Software Development java
Member Avatar for JamesCherrill
0
255
Member Avatar for SnHnBoLt

#Dictionary practice def menu(): print("1. Add name and number") print("2. Print the directory") print("3. Quit") options = 0 directory = {} while options < 3 : menu() options = int(input("Enter your desired option :")) if options == 1 : print("You selected to add name and number") name = input("Enter name …

Software Development python
Member Avatar for TrustyTony
0
353
Member Avatar for PinoyDev

Good day Gentl'men! Is there a way in c++ to convert a string variable that holds time of format like "17:30" to time_t variable? Lets say!: #include<iostream> #include<ctime> using namespace std; int main() { time_t timein,timeout; float timediff; string stimein,stimeout; cout<<"Enter time-in: "; cin>>stimein; cout<<"Enter time-out: "; cin>>stimeout; //convertion from …

Software Development c++
Member Avatar for deceptikon
0
4K
Member Avatar for New22010

Formatting a date, In VB6 I could specify the a date that was so many days from today and change the format of the output in a nice and easy statement: Format(Now - 1, "yyyyMMdd"). I am trying to learn vb2010 and am getting an error on that statement: *Operator …

Software Development vb.net
Member Avatar for New22010
0
203
Member Avatar for r0n

hi everyone is there anyway to get all cell values of a column in the jtable? for instance i have to get all the values in column1 which are all integers and sum it up to the textbox. :) thanks!

Software Development java
Member Avatar for JamesCherrill
0
2K

The End.