43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kiail

Okay, I've made a save file dialog, and I've been reading but I personally haven't found much useful information that I understand in creating a save button. I have this as a SaveAs. I'm guessing the save button event is probably very very close to this, but with or without …

Software Development
Member Avatar for kiail
0
227
Member Avatar for kiail

Hello, I'm here to ask a question about listboxes/textboxes. I have two forms. The main form has a listbox with some buttons on it. Two buttons open a 2nd form, if I open the 2nd form using the Open button, the textboxes should be blank. I have this part figured …

Software Development
Member Avatar for tinstaafl
0
197
Member Avatar for LennieKuah

Hi Friends, I need your help. Please help me. I am trying to retrieve data from Excel Spreadsheet to fill DataGridView for display prior to updating SQL SERVER using DataGridView Row individually. But the coding is not working as this is the first time I done the coding. this code …

Software Development vb.net
Member Avatar for Reverend Jim
0
421
Member Avatar for srikanth2321

Hi, I have a "Save" button with the following code Save.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { k = k+1; System.out.println(k); } }); somehow, it is executing multiple times with single click on the button (k values is 4 at times). I googled it but couldn't find some helpful …

Software Development java
Member Avatar for mKorbel
0
150
Member Avatar for srikanth2321

Hi, I have a split container in my frame where the right container has a Jtable and left is filled with different collapse panels displaying detailed data from different parts of the table. If the user clicks on a column then a collapse panel expands and display the information If …

Software Development java
Member Avatar for srikanth2321
0
172
Member Avatar for robgeek

Hi guys, I am confused on how can I access a same class reference object , that is created in class ReadInoiceFile, and be accessed in ReadErrorFile. To be more specific: I have a class called Transaction And then I have a class called ReadInvoiceFile. And finally I have a …

Software Development java microsoft-access
Member Avatar for JamesCherrill
0
278
Member Avatar for murali2489

Hi All, I have written an application for traffic Study which takes traffic load for seven days, inputting traffic load during morning,lunch,evening and night for each day. The output im getting is this Morning Lunch Evening Night Average Day 0 : 5 5 5 5 5 Day 1 : 5 …

Software Development file-system java
Member Avatar for JamesCherrill
0
260
Member Avatar for nchy13

This is a program to reverse the string in place. I have used pass by pointer. Interestingly I have changed the pointer in reverse function which is notable by seeing its output but the pointer which was passed in main function still points to the start of string. This is …

Software Development c++
Member Avatar for deceptikon
0
167
Member Avatar for Fangling

Hi, i have a database with the following details: SCHOOL CAMPUS ADMINNO MODULECODE MODULEGRP SEG AMK 100810R EG3932 EG3932-G1 SEG AMK 100810R EG3933 EG3933-G1 SEG AMK 101427Y EG3901 EG3901-G1 SEG AMK 101427Y EG3902 EG3902-G1 SEG AMK 101427Y EGS650 EGS650-G1 SEG AMK 103852S EG3901 EG3901-G1 SEG AMK 103852S EG3904 EG3904-G1 now …

Software Development display listview vb.net
Member Avatar for Fangling
0
209
Member Avatar for DarrelMan

I get an unknown source error when I try to use the Scanner class. fabric is the name of my Scanner ojbect. while(fabric.hasNext()) { fabricID[fabricCounter] = fabric.nextInt(); name[fabricCounter] = fabric.next(); description[fabricCounter] = fabric.next(); price[fabricCounter] = fabric.nextDouble(); qty[fabricCounter] = fabric.nextInt(); vendor[fabricCounter] = fabric.next(); fabricCounter++; System.out.println("made it down here"); }//end while fabric.close(); …

Software Development java
Member Avatar for JamesCherrill
0
304
Member Avatar for new_developer

Hi there, I want to know about wchar_t data type i.e. how it is used and why we use it. And also what is the difference between char and wchar_t. One last thing why we write L before wchar_t initialization. #include <iostream.h> void main() { wchar_t w; w = L'A'; …

Software Development c++
Member Avatar for deceptikon
0
158
Member Avatar for neetika reddy

Hi, I am trying to get TextBox. Whenever I click on the button I should get a TextBox. Here is my code. But I am getting only one TextBox. Collapse private void button1_Click_1(object sender, EventArgs e) { txtRun = new TextBox(); txtRun.Name = "txtDynamic"; txtRun.Location = new System.Drawing.Point(20, 18); txtRun.Size …

Software Development c#
Member Avatar for LyndonBroz
0
5K
Member Avatar for Labdabeta

I have a program using old data for a game I play to indicate which pixels correspond to the health bar in my game. (my program just loops until a button is clicked and presses a key if the health bar drops too low). Unfortunately the health bar has moved …

Software Development api c++ microsoft
Member Avatar for triumphost
0
800
Member Avatar for TokamakFusion

A student of mine wrote the following code: public class Counter{ private num = 0; public void inc(){ num = num++; } } which fails to increment. Why? If num starts at 0, then the assignment should be num = 0 then num should increment during the postfix incrementation of …

Software Development java
Member Avatar for bibiki
-2
465
Member Avatar for Ancient Dragon

I have a program with DataGridView which is bound to MS Access table. When I addept to update I get "Syntax error in INSERT INTO", but no explanation about the syntax error. Column names in the table have a space in them, such as "Last Name". Could that be the …

Software Development multithreading vb.net
Member Avatar for Ancient Dragon
0
525
Member Avatar for Ismatus3

Hello , I'm working to build a programme that connects to MySQL database using Tkinter .In a step , i wanted to create dynamicly a number of entries widgets ( here : tailles_entry[i] ) depending on the number of elements of a list ( here liste1 ) . I could …

Software Development python tkinter
Member Avatar for Ismatus3
0
5K
Member Avatar for yagelnnn1

Hey, I have a little problem that I can't resolve, maybe you can: I want to write in a textbox a number, let's say 3. Then I'll click on a button and in the combobox it'll add the items 1, 2 and 3. Thank you for helping!

Software Development vb.net
Member Avatar for yagelnnn1
0
193
Member Avatar for london-G

Hello, I have a textfield price. The user has to input a price(currency) into it. I would like to do something so that when the user types in a curreny it will automatically add the commas and the zero when needed. If the user was to type in 1000000 it …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for Lp_baez

Hi I learning c++ through a book but I have found that one of the examples provided by the book is an infinite loop. So I was wonderring if anyoone can help me stop it. I tried using the 'break;' statement in every 'for' body to stop the loop but …

Software Development c c# c++
Member Avatar for Lp_baez
0
1K
Member Avatar for pars99

I want to set a text field to look through a switch statement to find the corresponding case. Can I just do that like this? switch(textField){ case 'someCase': // do something break; default: // do something else break; } Considering I already created an outlet for it in the @interface …

Software Development objective-c
Member Avatar for pars99
0
125
Member Avatar for ashking

I have a bit of vb.net code that will search for a string, then get a certain amount of characters after it and display in within a text box. My issue is that is some cases there are more than one string of text I need to display, so rather …

Software Development vb.net
Member Avatar for ashking
0
156
Member Avatar for trishtren

Hello, Iv been trying to compile a simple opengl / wxwidgets program in c++ on linux mint. However when i try to compile with : g++ MyGLCanvas.cpp MyGLCanvas.h openGLProjectApp.cpp openGLProjectApp.h openGLProjectFrm.cpp openGLProjectFrm.h `wx-config --cxxflags --libs --gl-libs -lGL` -o simpleprogram I get an error message : cannot find -lwx_gtk2u_-lGL-2.8 collect2: error: …

Software Development c++ opengl
Member Avatar for trishtren
0
136
Member Avatar for Shizuo

Heres my code [CODE]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Order extends Applet implements ActionListener { String password = "pword"; TextField txt1 = new TextField(10); TextField txt2 = new TextField(10); Button btn1 = new Button("Ok"); Button btn2 = new Button("Ok"); Label lbl1 = new Label("Choose Your Order"); …

Software Development java java-swing
Member Avatar for JamesCherrill
0
453
Member Avatar for nutrion

All, I have a personal script that I'm trying to write, and I've run into a small problem. The problem is that I want to be able to support a '-s' argument no matter where the argument is. I also want that argument to be allowed more than once. For …

Software Development python
Member Avatar for Gribouillis
0
208
Member Avatar for robotakid

Hey there! I'm currently trying to get my first text-adventure-game in python started,and I wanted to import some features that are totally unnecessary. just for the lulz. So,I want to start a timer,that starts when the game starts,and ends,when the player is dead or won the game. I want it …

Software Development gaming python
Member Avatar for Gribouillis
0
729
Member Avatar for saurabh.mehta.33234

The foll code gives o/p as 2310103 28 Now my doubt is why here 10 is printed two times although i m passing t=6 for the d parameter?? #include <stdio.h> #include <string.h> int f(int a, int b, int c,int d,int e) { printf("%d%d%d%d%d \n",a,b,c,d,e); return a+b+c+d+e; } main() { int …

Software Development c
Member Avatar for Unimportant
-1
248
Member Avatar for untio

Hi, First, thanks for reading this stuff. I am learning java. I recognize that I am a beginner. Last weekend I have coded a clock. Sourcecode is: import javax.swing.JFrame; import java.util.GregorianCalendar; import java.awt.image.BufferedImage; import java.awt.Canvas; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Color; import java.util.TimerTask; import java.util.Timer; import java.awt.BasicStroke; public …

Software Development java java-swing ubuntu
Member Avatar for untio
0
216
Member Avatar for yuvjeeth

Hi, How do you get the WebBrowser's Url in a Combobox? I've tried the Url member but it says "Value of type 'System.Windows.Forms.WebBrowser' cannot be converted to 'String'." I also tried the LocationURL member also but it was in VB6 and not VB.NET. Please help me. Thanks in advance

Software Development vb.net
Member Avatar for yuvjeeth
0
176
Member Avatar for Cameronsmith63

Hi everyone, It might sound simple but I am having nightmares with this function What is the best way to delete a file without the machine complaining that i cannot acces the file because it is in use by another process? Is this a bug in the .net framework? Is …

Software Development
Member Avatar for Cameronsmith63
0
408
Member Avatar for mesbahuk

For my **Java to C#** conversion project, I need to use something equivalent to Java's `Calender` class. I have some codes like: Calender cal = Calender.getInstance(); long time = Calendar.getInstance().getTime().getTime(); long time2 = System.currentTimeMillis(); which returns some random values at different times. I have come to know C-sharp's `DateTime` is …

Software Development c c# c++ java
Member Avatar for ddanbe
0
990
Member Avatar for murali2489

Hi All, Im still finding it hard to understand Paint method, Almost all websites i had gone thru, they are showing examples of how to use it in an applet. I just cant understand on how to use it in a GUI application by extending Jframe object. Here is one …

Software Development gui java java-swing
Member Avatar for murali2489
0
1K
Member Avatar for stealthless

Hello, I'm trying to get my program running but I ran into an error. When I want to type a block of text on a new line, I get this error below: AttributeError: 'str' object has no attribute 'append' What am I suppose to adjust in order to fix it? …

Software Development python
Member Avatar for PsychicTide
0
240
Member Avatar for stealthless

Hi, I'm trying to prompt the user to enter a block of text until he/she types EOF on a separate line by itself. After that, the program should present him/her with a menu. When I go to Option 1, it only prints out EOF and not everything that was typed …

Software Development python
Member Avatar for PsychicTide
0
420
Member Avatar for stealthless

I'm a Python noob trying to make a program where the user will enter as many integers as they want and have the program calculate the total sum. They have to type the word "done" to execute the sum calculation. When I ran my program, I tped in 'done' and …

Software Development python
Member Avatar for edward.okech.5
0
228
Member Avatar for Jake.20

Greetings fellow developers, can you guys give me a hint on how to check if the datacolumn or datarow on the database has a value or null value what i want to happen is if the column1 has a value then the button is disabled. Dim Str As String Str …

Software Development vb.net
Member Avatar for kRod
0
267
Member Avatar for stealthless

This is **Python** language. Hello, I'm trying to make a program where the user enters his/her initials followed by a block of text. After that, the program will print out the number of times his/her initials showed up in the block of text. For example, if my initials are VKL, …

Software Development python
Member Avatar for edward.okech.5
0
256
Member Avatar for pmark019

What are the differences and similarities of JAX-WS and JAX-RS?

Software Development java
Member Avatar for Ne0nx3r0
0
755
Member Avatar for markjames2012

im currently working on listview and i think i need help :) all i need to do is when i click the button it select the items and so on up to the last item and set back to beginning bu im my code its just up to the first …

Software Development listview vb.net
Member Avatar for markjames2012
0
167
Member Avatar for valipour

hi how i can use ILMerge for making my c# program portable? you can see it's web site [here](http://research.microsoft.com/en-us/people/mbarnett/ILMerge.aspx) and download it [here](http://www.microsoft.com/en-us/download/details.aspx?id=17630) thanks

Software Development
Member Avatar for rubberman
0
301
Member Avatar for mikewyatt

I have a jtable and inside this table is a column of checkboxes (other info on following columns). if the user clicks on the checkbox to change it, which it does, there is a popup that comes up for an administers password approval... got that. If the approval is accepted, …

Software Development java
Member Avatar for ageshyaw
0
2K
Member Avatar for Rahul47

A friend of mine dazzeled me with by asking to write "Architecture for Client-Server in C". As I am noive in C I didnt got his question. I don't expected a prepared recipe but I want to learn the idea what he actually meant. Please Suggest. Thanx

Software Development c client-server
Member Avatar for Rahul47
0
206
Member Avatar for hmbird

Hello! I am very new to perl and linux systems in general, so I am hoping that someone can help with this problem! I have a very large table of data (100 rows and between 300000 to 2 million columns) that looks like this: [ICODE]sitenames site1 site2 site3 site4 site5 …

Software Development perl
Member Avatar for hmbird
0
182
Member Avatar for JOSheaIV

Okay so I hope this is the right place to put this. But onto the point. Anyway a long time ago my father showed me a game he used to play called Adventure. Some right remember this command prompt game as well as it's opening words "YOU ARE STANDING AT …

Software Development
Member Avatar for ddanbe
0
233
Member Avatar for kamilacbe

Hi,to make it short i want to convert a any media file to mp4 x264 baseline format so everythng went fine as i had a mooo ffmpeg but now when trying to access from c# i couldnt from mooo as it is diff installation can only be accesed wit its …

Software Development
Member Avatar for tinstaafl
0
265
Member Avatar for LeNenne

Hi I have a progressbar and it's going from left to right but what I will it to do that it goes from right to left with full and take one step backwards after pressing commandbutton each time Le Nenne

Software Development visual-basic
Member Avatar for LeNenne
0
1K
Member Avatar for murali2489

Hi All, I have a doubt in paint method of the Component Class. I know how to use that in Applet but im finding it hard to use it in GUI app. Im posting my code here, please edit it to make the program use paint method to render any …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
339
Member Avatar for JoeD1

I created a String[][] grades, who's size is set by number of students User enters. The array is then populated with my first for loop, and the next for loop is supposed to print out each students date line by line. If I only enter 1 Student and fill in …

Software Development java java-swing
Member Avatar for stultuske
0
282
Member Avatar for Jahliah

I'm trying to get the time from input of html txt_URL but the array returns nothing. Not sure where I went wrong. Any help is appreciated. Thanks! **input:** Deleting 11 files. Details: Time Deleted = 01:16:30, Time Left = 00:00:00, **output:** 01:16:30 string before = txt_URL.Value; string after = Regex.Replace(before, …

Software Development c# regex
Member Avatar for Jahliah
0
328
Member Avatar for Jahliah

Is it possible to replace commas and spaces with commas in c#? I'm fresh in c# and am looking for guidance. Any help is appreciated! **Before:** Deleting 11 files.ABC: Total Time = 01:16:30, Remaining Time = 00:00:00 **After:** Deleting,11,files,ABC: Total,Time,01:16:30,Remaining,Time,00:00:00

Software Development c#
Member Avatar for Ketsuekiame
0
4K
Member Avatar for Jahliah

In example.aspx, i have a html textbox named txtbox_1. In it, I have the following value: **1a,3d,2cc,wedd,aqq** I would like to read individual values separated by commas and place it different textbosz. currently i can read the textbox value as a whole and not individually. Hope this is clear. Would …

Software Development
Member Avatar for Jahliah
0
157

The End.