43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Upoma

I need the dates in a specific range.And i want to get the result in java manipulating from a MySQL database.Now how can i do so. Suppose there are 3 days 17.08.2011,18.08.2011 and 19.08.2011 .I want the dates in the range 16.08.2011 to 18.08.2011 .So how can i manipulate it …

Software Development java mysql
Member Avatar for mKorbel
0
162
Member Avatar for pivotcity

I have been looking at tutorials in regards to isNullOrWhiteSpace to validate user input of a string. but i am unsure how to initialise the method. This is just a code snippet and all i am trying to do is place this in a loop to ensure if user presses …

Software Development c#
Member Avatar for pivotcity
0
296
Member Avatar for Simplicity.

Dear Folks, When I iterate within the very bottom function under the comment "#Update conserved quantities" in this module using for loop (see below), I have noticed that the block of statements below it is not iterated, [CODE] """ """ from numpy import * from math import * from scitools.std …

Software Development python
Member Avatar for Simplicity.
0
3K
Member Avatar for Genericusername

Hello, I have written some code that spans 5 different files, which are all in a folder called Employee. The code runs fine without a package, but i have an assignment to package them. When i try to compile the object method which contains all the get and set methods, …

Software Development java
Member Avatar for Genericusername
0
147
Member Avatar for SamY

I know how to print forms in vb but i wanted to change the page orientation to landscape but the code in the help file is [COLOR=red]:evil:form1.orientation=1 '1 for landscpe and 2 for prtrait:evil:[/COLOR] [COLOR=#ff0000][/COLOR] [COLOR=black]this doesn't work please help[/COLOR]

Software Development visual-basic
Member Avatar for agrothe
0
1K
Member Avatar for mikejs

Hi I am trying to save settings on close I have the following code [CODE] Private Sub MainSystem_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing My.Settings.firstRun = Me.RadCheckBoxFirstLoad.Checked = True End Sub[/CODE] and on form load [CODE] If My.Settings.firstRun = False Then RadPanelWelcome.Show() Else RadPanelWelcome.Hide() End If[/CODE] I …

Software Development vb.net
Member Avatar for mikejs
0
143
Member Avatar for Roobin

Hi! Im Im trying to read a some 32-bit registers from a PLC and check if a bit is set. If e.g bit number 8 is set then i have an alarm. If bit 9 is set then it is acknowledged. If there is an alarm i would like to …

Software Development
Member Avatar for sknake
0
855
Member Avatar for SANJAY26

[CODE]Imports System.Data.OleDb Public Class Form1 Public con As New OleDbConnection Public cmd As New OleDbCommand Public da As New OleDbDataAdapter Public dr As OleDbDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim oOLE As String Try con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\BOND\BOND\bin\database\RBIBOND.mdb;Persist security info=False;" con.Open() oOLE = …

Software Development open-source vb.net
Member Avatar for SANJAY26
0
112
Member Avatar for DaveTran

Hi folks, I was wondering how I can differentiate between file types when using OpenFileDialog. I would like to be able to have the option to load different file types (as denoted by the Filter property) and handle each type in a different way. For example [CODE] Stream stream; OpenFileDialog …

Software Development file-stream file-system
Member Avatar for DaveTran
0
230
Member Avatar for Vaspar

[IMG]http://i25.lulzimg.com/29b7c6.png[/IMG] I used transparent panel and labels... used paint method to round corners... b4 using paint method panels were transparent but now one panel is transparent others are white... in properties it still transparent [url]http://www.mediafire.com/?l7tbtsh00w97pyn[/url] if i select wordpress category panel become transparent.. how i can solve this problem and …

Software Development gui vb.net wordpress
Member Avatar for Vaspar
0
104
Member Avatar for biojet

Hi everyone, Coul you please help me to find the position between Star_poso and end_posi. I have two data Data 1: Num Posi 1 2 2 5 3 9 4 16 5 19 .. .. Data 2: Num Star_posi End_posi 1 1 10 2 15 18 3 26 30 .. …

Software Development perl
Member Avatar for d5e5
0
384
Member Avatar for M.Waqas Aslam

hi ! I want to develop an application in vb.net which can save any open Text Document , Notepad ,Ms-Word ,Ms-Excel etc , The main theme is that my application simple send the SAVE command . i use SendKeys.send("^S") , SendKeys.send("^ + S"),SendKeys.send("{^+S}"),SendKeys.send("{^}+{S}"),SendKeys.send("{Ctrl}+ {S}") . but nothing happening.can Any one …

Software Development office-suite vb.net
Member Avatar for Reverend Jim
0
811
Member Avatar for Thropian

So I've decided to make some simple animations with python and I came to the issue of getting parts to rotate and move together. I decided to put parts together on a smaller canvas (canvas for the leg placed on the main canvas) but I can't get the canvas to …

Software Development python tkinter
Member Avatar for TrustyTony
0
1K
Member Avatar for D33wakar

I am trying to write a program for searching strings(one at a time)in a text file. To start things off, I wrote this one. [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> int main() { FILE *txt_file; int chr;/*char read by fgetc*/ int word_match=0; const char* substring ="window";/*search word*/ …

Software Development c programming-construct
Member Avatar for Narue
0
231
Member Avatar for Jennifer84

Hi, I have a problem with a webrequest with the below code. If I try to request "http://www.google.com", it works fine. But when I try to reach this long URL below with this code, I receive an error: I wonder what this depends on and what could be done? [B]The …

Software Development c++ google
Member Avatar for thines01
0
204
Member Avatar for thompsonSensibl

Hello folks. I am stuck in a problem where I must pair objects of an array with unique partners. I have one array. I must pair each element to each other. Incorrect pairing algorithm would result with repetitions, and pairing with itself. e.g. [CODE]String[] codesArray = {"A", "B", "C"};[/CODE] For …

Software Development algorithm java
Member Avatar for thompsonSensibl
0
133
Member Avatar for bLuEmEzzy

Hi guys, Please help! I want the column/cell of my Datagridview to accepts double(1500.50). I declare the cells as TextBoxCell. [CODE] 'In dgvw_EditingControlShowing event : AddHandler tb.KeyPress, New KeyPressEventHandler(AddressOf txtColDgvw_Keypress) 'Calling the Keypress of TextBoxCell[/CODE] [CODE] Private Sub txtColDgvw_Keypress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Try If not Char.IsNumber(e.KeyChar) …

Software Development vb.net
Member Avatar for bLuEmEzzy
0
180
Member Avatar for aldeene

shifting from vb.net to java gives me a hard time!.. I have a little background on java.. but not on Java + Database.. anyone can give me samples or tutorials? I started googling some but hell I can't understand it

Software Development java
Member Avatar for Anuradha Mandal
0
149
Member Avatar for comp_sci11

I'm currently making a program that list all the perfect numbers from 1-1000. and list also its factors. heres my code. [INLINECODE] public class perfect { public static void main(String[]args) { int sum=0; int x=0; for(int num=1;num<1000;num++) { for(int factor=1;factor<num;factor++){ x=num%factor; if(x==0) sum=sum+factor;} if(sum==num){ System.out.print(num); System.out.print("The factors are "); for(int …

Software Development java
Member Avatar for gihariwathsala
0
1K
Member Avatar for mikejs

Hi I am using this code to clear the contents of my panel [CODE] For Each c As Control In PanelEdit.Controls If TypeOf c Is RadTextBox Then DirectCast(c, TextBox).Text = String.Empty End If If TypeOf c Is MaskedEditBox Then DirectCast(c, MaskedEditBox).Text = String.Empty End If If TypeOf c Is ListBox …

Software Development vb.net
Member Avatar for mikejs
0
356
Member Avatar for ben1996123

Hello, I just downloaded the [url=https://mattmccutchen.net/bigint/]big integer library[/url], and I want to use it in my prime number checking program. I downloaded the zip file and got a bunch of .cc and .hh files. I need to know what to do with the files, where I should put them, and …

Software Development c++ ide
Member Avatar for ben1996123
0
240
Member Avatar for lcfjoertoft

I have the following connection string in a Excel VBA project: oCon.ConnectionString = "Driver={SQL Native Client};Server=SQL;Database=D1; Trusted_Connection=yes;" On my laptop this works perfectly. But when I try it out on another computer I get an error: I get this error when oCon.Open on debugging: Run-time error '-2147467259(80004005)': Automation error Unspecified …

Software Development client-server open-source sql visual-basic
Member Avatar for lcfjoertoft
0
157
Member Avatar for Majestics

I have googled alot exampled to create auto complete jcombo box, found many libraries also codes but they are pretty much complex, has any one idea to create this as easy as possible????

Software Development java
Member Avatar for Majestics
0
1K
Member Avatar for nikolaos

After login (if succeed) a user will see the result of statement "select test_column from table_test " execution. table_test is the only table of database 'test' which i have created in NetBeans 7.0.1. test_column is the only column. class '[B]MySQLTest[/B]' creates the gui for login , connects with the database …

Software Development gui java java-netbeans java-swing
Member Avatar for nikolaos
0
2K
Member Avatar for wezel

Hello community, I wanted to see if the following scenario would be possible with VB. We have 13 different locations. What I want to do is open an access database. I want to open a table in access and sort it by a particular column by date. Once sorted I …

Software Development visual-basic
Member Avatar for wezel
0
170
Member Avatar for kayoh

Hey guys, Just as the title says, I want to implement using an excel spreadsheet as an argument for a python script. I already have the layout of the spreadsheet, but I want to be able to assign the variables in my python script from specific cells of the spreadsheet. …

Software Development microsoft-office python
Member Avatar for Gribouillis
0
1K
Member Avatar for dwayned

Hi, I am trying to write an applicaiton which will run 2 zip files (one after another) with minimum user input. I can get the file to run but it is then waiting for the user to select "Unzip" to unzip the file. I was wondering if there is a …

Software Development java
Member Avatar for dwayned
0
1K
Member Avatar for meyumi_lelouch

I am trying to make a program that will list all the National Heroes of our Country. We used the switch statement. [CODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "conio.h" using namespace std; int main() { int choice,desc; char repeat; cout<<"\t\t\t\tPhilippine National Heroes\n\n"; cout<<"[1]Dr.Jose Rizal\n"; cout<<"[2]Andres Bonifacio\n"; cout<<"[3]General Gregorio Del …

Software Development c++
Member Avatar for Anuradha Mandal
0
900
Member Avatar for pivotcity

just asking for assistance with the menu items as they are set to uppercase M, R, C, X in the case statements how can this be modified to accept 'm' or 'M' as valid input. [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace PracticalTest5 { class …

Software Development c#
Member Avatar for Singlem
0
3K
Member Avatar for evilguyme

Hey guys! i have yet another problem and cant find a way around it :O i have this function in the class Platform [CODE] void Platform::set_clips(SDL_Rect platClip[], int i) { for( int j = 0; j < i; j++ ) { platClip[j].x = 0; platClip[j].y = 0; platClip[j].w = random_number_w(); …

Software Development c++
Member Avatar for evilguyme
0
140
Member Avatar for Singlem

Hi Basicly have been googling for a long time now and can't seem to find a clear answer. I want to bind to forms to each or something like that. I have an main form and display a child form from it. But I want to make it one form …

Software Development
Member Avatar for nick.crane
0
129
Member Avatar for bhagawatshinde

Hi, i am trouble to find out this problem. I have develop an windows application in that one form contains the datagridview(see attachments). When i click on Download it will displayed lable on datagridview displaying message Downloading Please wait... . When i am clicking on download a am enable datagridview …

Software Development
Member Avatar for bhagawatshinde
0
547
Member Avatar for syeda amna

hi I want to resize the panel that is on the NORTH/Button1 (PAGE_START) of the Border layout. how can I get broad panel?? Is it possible or not?? [ATTACH]22085[/ATTACH]

Software Development java
Member Avatar for JamesCherrill
0
138
Member Avatar for g_amanu

i have a folder that contains csv excel files that have numbers in the first column labeled 'x', second column label'y', and third column labeled'z'. i was trying to take all of the numbers in the x and calculate the averages and std, take all the numbers in the y …

Software Development os-x python
Member Avatar for g_amanu
0
7K
Member Avatar for Anuradha Mandal

[CODE]#include<iostream> #include<cstdlib> #include<conio.h> using namespace std; int main() { int i,j=0; cout<<"1"; for(i=1;i<=55;i++){ if(j>12) break; else{ if(i%2==0||i%3==0||i%5==0) j++; } } getch(); return 0; } [/CODE] This is my code .I want to print the numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, …

Software Development c++
Member Avatar for WaltP
0
137
Member Avatar for evilguyme

hey guys! i am trying to make an algorithm that generates random numbers within a given range ( this range may differ ) i have tried using rand() but i dont like it because the best seed is the time and it doesnt generate numbers random enough. thing is i …

Software Development algorithm c++
Member Avatar for Narue
0
121
Member Avatar for tawes01

I want to make a c++ program that can open an image that is in any of the major formats (jpg, gif, bmp, png) and has any size and I want to resize it to a specific size (no, I don't care if it looks stretched) and save it to …

Software Development c c# c++ image
Member Avatar for tawes01
0
1K
Member Avatar for Hendo

Hi, it's me again. Obviously, you've all figured out that I'm new to the programming thing. Here's my next stumbling block.:( In C#, using Visual Studio 2010, I need for my program to check which version of .NET is installed on the machine, and then automatically install the v4 .NET …

Software Development visual-studio
Member Avatar for Momerath
0
131
Member Avatar for SpiritualMadMan

Here's My Problem: I have three Python Modules (using 2.7.2) TC_Config.py merely holds Common Variables used by both of the other two Modules. pyTC.py is supposed to be a Test and Flow Control (Master) Module that once standardized will not be changed (much). ptf.py is a module that will be …

Software Development python
Member Avatar for SpiritualMadMan
0
148
Member Avatar for coroll

Hi all, Im adding a column after the dataGridView is populated. Then I want to add LinkLables to that column. how to do this. PLZ help me. I've tried this.But it gives me an error. this is my buton click.its ok. [CODE] private void button1_Click(object sender, EventArgs e) { Search …

Software Development dataset
Member Avatar for codes4f0x0d
0
2K
Member Avatar for hughesadam_87

Hey everyone, I'm making a data analysis suite in python, and want to construct a custom event handler which will reset the axis based on the data in the current subplot. To do so, I need the event handler to know what data is currently in the subplot. The matplotlib …

Software Development python
Member Avatar for hughesadam_87
0
179
Member Avatar for raaif

I am trying to check for certain processes that is running and then inform the user of those processes via textbox like "The programs; -name of the processes running goes here- are running" The I am using is [CODE]Dim iIndex As Integer Dim isd As Integer = 0 iIndex = …

Software Development microsoft-access vb.net
Member Avatar for raaif
0
173
Member Avatar for MissJava

Hi everyone! I need some help in my programme. I have an error message: "error: int cannot be dereferenced" at line 134. Could you help me solve this problem, as I do not know what it means? Many thanks. [CODE]/** * @(#)PrizeCollection.java * * PrizeCollection application * * @author * …

Software Development java java-swing
Member Avatar for JamesCherrill
0
7K
Member Avatar for SakuraPink

hi everyone, I need to write a piece of code that sort an array of double values named distance[i] in the following code. The counter i is the index for another array as well therefore I don't want to change the order of the array. I got hint from this …

Software Development c++
Member Avatar for SakuraPink
0
153
Member Avatar for betny

[code]/* * @author BKChepkwony * Created on 24 Aug 2011 */ package com.jjpeople.arrays; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; /** * Class demonstrating usage of arrays * * @author BKChepkwony * Created on 24 Aug 2011 */ /** * @author BKChepkwony * Created on 24 Aug 2011 */ public class ArrayExample { …

Software Development apache java
Member Avatar for betny
-1
189
Member Avatar for FriXionX

As in, if you had an if statement, for example: [CODE]if(endProgramChooseType != 'y' || 'Y' || 'N' || 'n'){ (code for exiting program) }[/CODE] How would you do that in a switch statement? without doing [code]case 'a': case 'A': case 'b': case 'B': case 'c': [/code] etc.

Software Development c++
Member Avatar for FriXionX
0
6K
Member Avatar for mikeybware

I am trying to use WebClient to download a .zip file from my server. In debugging mode the code works perfectly, but when I deploy my software the file does not even begin to download. After my program checks to see if an update is available, it should download the …

Member Avatar for mikeybware
0
320
Member Avatar for sDJh

Hello altogether, I am supposed to work through a project written in C++ and QT for Windows platforms. Now I am not an expert in window-related stuff. I installed MinGW 3.4.5 and QTSDK on Win XP SP3. I am using the tool "qmake" to create a makefile with all dependecies …

Software Development c++ qt windows-xp
Member Avatar for sDJh
0
319
Member Avatar for Nathan_11

I am new to computer programming. Could someone explain me this code... s=0; for(i=0;i<5;i++){ s=2*s+i; } And how did it have the output 0,1,4,11,26;

Software Development java
Member Avatar for JeffGrigg
0
127
Member Avatar for suemaina

i am new with SQL server 2005 and visual studio 2008 please help me..how do i connect the forms and the tables in the database

Software Development sql vb.net visual-basic visual-studio
Member Avatar for Netcode
0
306

The End.