43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Ritesh_4

Hello I have a Java Agent which I need to maintain (dev was done by someone else), with the following code samples extracted: String type = (String) types.nextElement(); DemByDate dd = (DemByDate) client.typeDemande.get(type); Vector v = (Vector) dd.demandes; Calendar calendar = Calendar.getInstance(); calendar.set(dd.d2.getYear(), dd.d2.getMonth(), dd.d2.getDate()); int maxDay = calendar.getActualMaximum(Calendar.DAY_OF_MONTH); dd.d2 …

Software Development java
Member Avatar for Ritesh_4
0
3K
Member Avatar for mixelplik

How do I pass a single row of a 2 dimensionsl aarray to a function? #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; // ------ Prototypes ------------------------------------------------------ double calcNums(double[]); // ****** MAIN ************************************************************ int main() { double nums[2][5] = {1,2,3,4,5,6,7,8,9,10}; calcNums(nums[1][5]); return 0; } double calcNums(double nums[1][5]) …

Software Development c++
Member Avatar for mixelplik
0
695
Member Avatar for PulsarScript
Member Avatar for Ancient Dragon
0
137
Member Avatar for zachattack05

Good afternoon! I seem to disappear from this forum for a while then re-appear...I've been so busy with my first born baby girl that I haven't had time to check my email much less work on any of my projects, but something has come up and I need some input. …

Software Development algorithm apple
Member Avatar for zachattack05
0
229
Member Avatar for overwraith

So, I wrote some code for appending to an array, and I thought to myself, would be cool to make the method more generic using an interface. I keep getting this error though that basically says that the compiler's best overloaded method that can match this is _____, and it …

Software Development
Member Avatar for overwraith
0
174
Member Avatar for ivan.dyadi

Qn. Given the following pseudo code, write a program that executes it. (20 marks) read a read b compute x=a*b+2 compute y=a-b total=x2+y*(x+a)*(y-b) print total Solution:vv

Software Development c c# c++
0
122
Member Avatar for kentuckyjoe

I'm trying to iterate through the controls on a form and set the tabIndex to 0 for all labels. I copped the following code from google but it doesn't work for me and I'm pretty certain it's because all of my controls are on a panel and not on the …

Software Development vb.net
Member Avatar for kentuckyjoe
0
269
Member Avatar for cambalinho

i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, on left, is showed and then i create a new table; 4 - using the mouse right button, i select(on …

Software Development open-source vb.net visual-basic
Member Avatar for cambalinho
0
189
Member Avatar for Shodow

how to edit a record in database by using vb6, i don't any clue :(

Software Development visual-basic
Member Avatar for hina_7
0
3K
Member Avatar for Skate Bart

I have a MSHFlexGird (fgdCompany) and a search command. When the user enters the search data into "txtSearch", the command should search for the data and show it to the user by : Highlighting the record in the MSHFlexGrid -OR- By bringing the row that contains the searched data to …

Software Development visual-basic
Member Avatar for Mamoundi
0
551
Member Avatar for inspire_all

Please can anybody explain me the following things below:: 1.What is a hashmap 2.Its use 3.What do we do to avoid collisions....

Software Development c
Member Avatar for deceptikon
0
128
Member Avatar for djbsabkcb

Below is my code for printing prime numbers up to a given input by user. However, my calculations are not working correctly and my output is printing twice. Any idea? :sad: #include <iostream> #include <cmath> using namespace std; void prime_num(int); int main() { cout << " Enter a number and …

Software Development c c# c++
Member Avatar for duskoKoscica
-2
2K
Member Avatar for silversurf

Hello everyone. Here is the code first Private Sub Grid1_Click() Dim i As Integer, j As Integer Grid2.Cols = Grid1.Cols Grid2.Rows = i + 1 C = Grid1.Row For j = 0 To Grid1.Cols - 1 Grid2.TextMatrix(i, j) = Grid1.TextMatrix(C, j) Next j i = i + 1 End Sub …

Software Development visual-basic
Member Avatar for mushtaqueahmed.chandio
0
969
Member Avatar for CJMW

So im posting this here and not under game development because this is more of a problem solving question, not directly game related. Im making a simple RPG using xna. Im currently working on collision detection, however running into difficulty. I can successfully check for a collision between the player …

Software Development c c# c++ storage
Member Avatar for CJMW
0
333
Member Avatar for cwarn23

I have been trying to create a script that will fetch an image file, store it in a 2d grayscale non-alpha byte array based on the x and y axis so I can perform math operations then save that array back to a new image file. I have come close …

Software Development algorithm java
Member Avatar for JamesCherrill
0
261
Member Avatar for lloydsbackyard

help on textbox to accept numbers only ...thanks

Software Development visual-basic
Member Avatar for lloydsbackyard
0
157
Member Avatar for dev1902

Hello, I need help in solving 3 errors in my C++ code The first error is** line 95 'output_minus_10' was not declared in the scope** The Second error is **line 96 'output_plus_10' was not declared in the scope** The warning is **line 104 unused variable 'R_junction'** #include <cstdio> #include <cmath> …

Software Development c++
Member Avatar for MathewsSolve
0
217
Member Avatar for AnooooPower

Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ofd As New OpenFileDialog Dim strFile As String With ofd .Title = "Select a List" .Filter = "Text Files|*.txt|All Files|*.*" .ShowDialog() strFile = .FileName End With If System.IO.File.Exists(strFile) = False Then Exit Sub Dim Reader As …

Software Development vb.net
Member Avatar for AnooooPower
0
355
Member Avatar for Ian_3

Recieving the error "Dynamic SQL generation is not supported against multiple base tables." When pressing the save button Code for Save button: private void btnSave_Click(object sender, EventArgs e) { DataGridQuestions.EndEdit(); adapter.Update(ds, "Questions"); MessageBox.Show("Updated"); DataBind(); } Code for filling data adapter private void DataBind() { string connectionString = ("Data Source=" + …

Software Development dataset open-source sql
Member Avatar for Ian_3
0
2K
Member Avatar for 2lethal

Good day, I must be blind .. I am developing my first "Visual Studio" desktop application. My apps are normally always Internet Apps. I have about 20 text boxes, but I want to give the user the ability of pressing Enter, and "defaulting" to the Enter button on the screen. …

Software Development c++ microsoft visual-studio
Member Avatar for 2lethal
0
210
Member Avatar for Violet_82

Hi guys, I tought I'd experiment a bit with layout managers, trying to get to grips with them. I will start with a flowLayout, then hopefully move on to more complex ones. OK, so here is the code for the first example, very simple one: /*FlowLayoutManager.java layout manager tests*/ import …

Software Development java java-swing window-manager
Member Avatar for Violet_82
0
168
Member Avatar for KushMishra

Hi All, I started developing an application in WPF but I think the generic syntax for Relay Command and Delegate Command cannot be found very easily over the web and hence alogwith asking this question, I intend to start a thread for both Relay Command and Delegate Command. So, I …

Software Development asp.net
Member Avatar for KushMishra
0
1K
Member Avatar for nettripper

what is the code for the program in vb.net that automatically adjust resolution based on the computer you are using? i use WindowState.Maximize but only the background image adjust. my other stuf such as buttons, labels picturebox are not..can you help me guys? thanks

Software Development vb.net
Member Avatar for oussama_1
0
881
Member Avatar for joshl_1995

Hello Community, Why I the port I'm trying to read looking really weired. I'm using an Arduino to produce the port data (It just has two button inputting "BUTTONONE" and "BUTTONTWO" when pressed). This is the result I'm getting: BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONTWO BUTTONONE BUTTONONE …

Software Development perl vb.net
Member Avatar for joshl_1995
0
187
Member Avatar for Bo_1

I have a Delphiproject that suddenly got its appearance changed. It used to have rounded buttonedges but now got suddenly sharp corners. Also the MonthCalendar changed its appearance with blue ribbon at top and the current day circeled with a broken red circel line as it had many years ago. …

Software Development delphi pascal
Member Avatar for Bo_1
0
148
Member Avatar for kRod

I've been working on a Textbox that only accepts 0-9, Decimal Point, and the Backspace Keys. Also keeps it in the base form 0.00. Max value is 999999.99 can be set as needed. It works as expected, but I have to ask if I have remade the wheel. This sub …

Software Development vb.net
Member Avatar for kRod
2
1K
Member Avatar for Fenrir()

So here's the thing and it's been quite simple up to here. I have never been required to do something like this and most tutorials are vague at best. I have a Stackpanel with numerous children. Each child then has a label and an image. These were all dynamically created …

Software Development
Member Avatar for Fenrir()
0
143
Member Avatar for king03

Hi there guys I just want to know how I can create a reset button that will erase all the contents written by a user in textboxes? I am creating an Enrollment Form for Students and I need some help about it. I have attached a screenshot for you guys …

Software Development
Member Avatar for brite_a
0
8K
Member Avatar for Vish0203

Hello everyone! I got this question in a book.. I thought of doing it using map() or using loops return the first count multiples of number in desc order in a list. e.g call with input (3,2) returns [6,3] call with input(5,3) returns [15,10, 5] but the hint along with …

Software Development python
Member Avatar for rrashkin
0
244
Member Avatar for Lethugs

Hi Is there a way a vb form structure the same as its backgroud picture? Its same with making the form invisible and let its background picture remain Im trying to make a program that when it runs, it displays like widget. thanks

Software Development vb.net visual-basic web-design
Member Avatar for Deep Modi
0
264
Member Avatar for missy_mi

Hello.. good day evryone, i encounter a problem with my save as form..i use savefiledialog..the result is that the page is saved..but when i open the word doc, it is empty..there is no data whatsoever.. i dont use database..it is suppose to save the the data that i filled in …

Software Development vb.net
Member Avatar for missy_mi
0
478
Member Avatar for CJMW

So, Im making a game in c# using Xna. I have a function that will read a text file and display a map on screen, using numbers in the file as texture references. The file is a integer multidimensional array. I have another file which is used to set collision …

Software Development
Member Avatar for CJMW
0
502
Member Avatar for Mr.M

Hi Dw I'm working on a program which has many forms and these forms are for setting the functionality of this program so now I want to detect if, let say Shift+F is pressed then the appropriate form will show. I don't want to use the Form_KeyPress or KeyDown or …

Software Development vb.net
Member Avatar for Mr.M
0
318
Member Avatar for CJMW

So i'm making an rpg game with c# and xna. How can I create a simple camera that follows the player as they move? I only wish for the camera to move as the player reaches the middle of the screen. I dont require it to rotate, zoom in/out like …

Software Development c c# c++ display
Member Avatar for KushMishra
1
349
Member Avatar for soujanya.bhat.184

Hi. I am learning Java and now stuck in the exceptions chapter. I wrote a code to understand exception. But i am not getting why there is an error saying "Unreachable catch block".Please help me out here. Code is as shown. public class GetException { static int i; public static …

Software Development java
Member Avatar for soujanya.bhat.184
0
131
Member Avatar for TechxRay

Greets to all! I have 2 user defined controls. 1 is the main, the other is the control that contains all the radio buttons. One of the criteria is to have a clear button in the main control to select the 0 radio button that clears all the text fields …

Software Development gui vb.net
Member Avatar for NeilR
0
584
Member Avatar for Mike Askew

I've been toying with some code for the last thirty mins to try move a substring from one cell to another. In debug I can see the correct contents being picked up and moved to the new cell and even got a save prompt popup when running over line 31. …

Software Development c c# c++
Member Avatar for Mike Askew
0
478
Member Avatar for 26bm

Hi, I am wondering if there is any easy way to up the frame rate of a pygame program. For example locking the frame rate? I don't know. Thanks in advance! 26BM

Software Development python
Member Avatar for 26bm
0
248
Member Avatar for syasya

I am beginner to Java , I would like to know is there any Difference between JDK 32 bits and 64 bits? For example in terms of performance or something ?

Software Development java
Member Avatar for ~s.o.s~
0
188
Member Avatar for charlie1329

Hi, the following is the code for my a2 computing project. Essentially what I have tried to do is set up two basic structures of GUIS and then inherit them into other classes so I can add components to the basic structure. However, when I create a MainMenu object, only …

Software Development gui python tkinter
Member Avatar for charlie1329
0
4K
Member Avatar for Gulzar_1

vb.net project shifted from one pc to another pc.project includes some private dlls.I include those dlls and some activex controls are linked with these dlls.At the time of loading form it is throwing some exception.when I create controls.It is running well,But after creating exe file.It is showing error file not …

Software Development vb.net
Member Avatar for Minimalist
0
154
Member Avatar for tirso

Hi to all I have two forms, one is form1 for registration and the other one is form2 for my main menu. How to call the form2 if the user successfully register with the form1. The code in form 1 is me.close (to close the form1) then form2.show but it …

Software Development vb.net
Member Avatar for luck_1
-1
6K
Member Avatar for dashing.adamhughes

Hi, I built a Polygon() class that originally only was initialized with veriticies: Polygon(verts=(1,2,3,4) But as the code evolved, I added a few @classmethods to construct the Polygon from other inputs. For example: Polygon.from_center(center=(1,2), length=5) Now my problem is that I'm trying to find the canonical way to choose which …

Software Development python
Member Avatar for dashing.adamhughes
0
265
Member Avatar for castajiz_2

I would like to convert Control objects wich are in my array to progress bar Objects if possible. I know that the reverse conversion can be done explicitly without a problem but this one seems tricky. If impossible then please suggest something else instead. TNX

Software Development programming-construct
Member Avatar for castajiz_2
0
322
Member Avatar for haider885

I have same type of errors in my program please help me out.... I am just a Beginner in C++.... #include "iostream" #include <stdio.h> #include <conio.h> #include <stdlib.h> using namespace std; class form { private: char fname[20]; char lname[20]; char add[50]; char city[25]; int contact; public: form() { fname[20]='\0'; lname[20]='\0'; …

Software Development c++
Member Avatar for deceptikon
0
226
Member Avatar for Reverend Jim

I've rewritten this question a half dozen times and each time it makes less sense. In a nutshell, I want to populate a listview with large icons representing image files but I can't get them to come out unstretched. They are always stretched along the x or y axis because …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
294
Member Avatar for missy_mi

Hello. i use this code to print my vb page form : PrintForm1.Print() But only half of the page from the form is printed. i tried using this , code : PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeClientAreaOnly) Nothing is prinetd on the printed page. I got only a black page. What can i do …

Software Development visual-basic
Member Avatar for missy_mi
0
200
Member Avatar for johnson_2

firstly I admit I am asking this because of my homework secondly, my c++ is still at a beginner level. so I need some help. ok..going back to my question. I am trying to remove a line containing username and password from text file. so I tried to following, 1)Read …

Software Development c c# c++
Member Avatar for johnson_2
0
5K
Member Avatar for lewashby

I know python is an interpreted language but is there a way to compile your code? What if you write a program in python 3 and the user has python 2.x, or worse yet, doesn't have python at all. How can you create an executable via compiling or any other …

Software Development python
Member Avatar for TrustyTony
0
325
Member Avatar for thannu07

hy i m trying to do a smal vb.net project using sql server 2008 in vs2012,and i dont know how to use those database in my project for eg : using select/insert/update/delete queriesfor my controls(textbox,combobox datagrids etc..) please help me with detail how to connect database and use it in …

Software Development microsoft-access vb.net visual-studio
Member Avatar for Reverend Jim
0
189

The End.