43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for szevan.seng

Public Class Form4 Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click ListBox1.Items.Add(InputBox("Masukkan jenama baru anda:")) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim s As New IO.StreamWriter("toner.dbo") For i As Integer = 0 To ListBox1.Items.Count - 1 s.Write(ListBox1.Items(i) & …

Software Development vb.net
Member Avatar for Reverend Jim
0
253
Member Avatar for Shaji_1

I am trying to change the first character of each word in a list to upper case using Python 2.7. I am able to change the entire list to lower case, but I am not getting what I want - i.e the first character of each word to be upper …

Software Development python
Member Avatar for TrustyTony
0
307
Member Avatar for Henry Mark

DISPLAY THE FACTORS AND THEIR COUNT FOR A GIVEN NUMBER. SAMPLE DIALOGUES: #1 Type a number: 9 The factors of 9 are 1,3,9. There are 3 factors. #2 Type a number: 12 The factors of 12 are 1,2,3,4,6,12. There are 6 factors.

Software Development c++ display
Member Avatar for rubberman
0
111
Member Avatar for Niloofar24

Hi everybody. I've created a .py file with a simple function in it. Now i want to call that function from linux shell scripting. How should i do that? please help me, thank you.

Software Development python shell-scripting
Member Avatar for Niloofar24
0
1K
Member Avatar for SammyT79

'Ello I just completed my final individual assignment for my first java programming course. This is what I want to do and learning how to do it is what brought me to school. Unfortunately my class facilitator has decided that it is not in his best interest to contribute to …

Software Development java
Member Avatar for Traevel
0
360
Member Avatar for Hongero

Based on types of riding bicycles can be classified into different categories such as Touring bike, Mountain bike, cruising bike and so on. Though there are different bicycles there are some properties shared among many of them, for instance each them has its own color, number of gears, brand. On …

Software Development java
Member Avatar for peter_budo
-2
138
Member Avatar for cambalinho

i'm using the HiliteMenuItem() for test if the mouse is above the menu item: int i=0; for(i=0; i<GetMenuItemCount(menuhandle); i++) { if(HiliteMenuItem(HandleWindow,menuhandle,i,MF_BYPOSITION) == true) { menuposition=(UINT)i; break; } } but i always get the number 0. heres how i detect the menu handle: case WM_INITMENUPOPUP: { menuhandle=(HMENU)wParam; return 0; } break; …

Software Development c++
Member Avatar for cambalinho
0
540
Member Avatar for Alxprog

In my Windows Forms c# project I try to connect to an already existing ms sql database file (added binding Source on the form, then : bindingSource -> properties -> DataSource -> add source - > .... ) but when I pick this file it writes something like "You dont …

Software Development c# file-system open-source sql
Member Avatar for Alxprog
0
289
Member Avatar for kouty

Hi to the forum; A simple question: I want to make a prime number checker: So if I want to test if 25 is a prime number. i should to verify if 2 is a factor. if it is not, i verify with 3 and 4 (not my subject if …

Software Development python
Member Avatar for kouty
0
190
Member Avatar for mame.tino

please help me to do Saving Gridview and Non Gridview data to Sql Database

Software Development sql
Member Avatar for khong.coai.526
0
107
Member Avatar for faizlo

I have this script which can calculate the total of numbers given in a string total = 0 for c in '0123456789': total += int(c) print total How should I modify this script to find the total of if the numbers given in the string form have decimal places? That …

Software Development python
Member Avatar for Gribouillis
0
278
Member Avatar for sneekula

On my Raspberry Pi computer I did a search for PIL and matplotlib with apt-cache search python but could not find anything close in the list. Is PIL/Pillow and matplotlib available for Linux and what is it called? The Raspberry Pi has Python27 and Python32 installed.

Software Development python raspberry-pi
Member Avatar for vegaseat
0
394
Member Avatar for Slavi

Hey guys, I am making a small script here and I got stuck on it a bit ... perhaps one of you could help me out The idea is to send an email that has attached zip file to it. My script is import smtplib import zipfile import time from …

Software Development email file-stream python
Member Avatar for Slavi
0
8K
Member Avatar for batoolhussain

hi everyone, how can i retrieve the data from sql serve2008 and put it in array using vb.net2010. Can anyone help me with this?

Software Development vb.net
Member Avatar for batoolhussain
0
109
Member Avatar for CodeWarrior14

I'm working on a server and client program. Data will be exchanged between the server and client. This data will be encrypted. The server will always generate the salt and the IV. The client will receive the salt and IV and use it to encrypt / decrypt the data that …

Software Development encryption java
Member Avatar for CodeWarrior14
0
3K
Member Avatar for MiicahLiim

Can you please help me do a asterisks of pyramid using the drawbar function, im new to c++ please help. Thank you in advance this is the drawbar function: the output should look like: * *** ***** ******* /*Overloaded drawbar() program.*/ #include<iostream.h> void DrawBar(int Length) /*Diplays a bar of asterisks …

Software Development c++
Member Avatar for dbfud1988
0
427
Member Avatar for parth2911

private void Login_page() { var i = 0; while (i < 5) { if (textBox1.Text.Equals("admin")) { if (textBox2.Text.Equals("parth")) { } else { textBox1.ResetText(); MessageBox.Show("passwod is wrong try agine"); i++; } } else { textBox2.ResetText(); MessageBox.Show("username and password is wrong"); i++; } } if (i == 5) { MessageBox.Show("you tried max …

Software Development
Member Avatar for parth2911
0
177
Member Avatar for Nation

I am using a JTabbedPane with three buttons. The program is running fine except that the buttons remains small even if you resize the window. Is there a way of setPrefferedSize for them? here is the code if it helps: public final class JTabbedPaneDemo { JFrame frame; JTabbedPane pane; JPanel …

Software Development java
Member Avatar for Nation
0
1K
Member Avatar for Ahmed_57
Member Avatar for rubberman
0
90
Member Avatar for Slavi

Hey guys, I am a bit confused here ... making a script to brute force through a dictanary the password of a zip file and it seems to work fine except that it won't stop when the password is found. And when it prints the password it just prints the …

Software Development python
Member Avatar for Ene Uran
0
265
Member Avatar for Slavi

Hey guys, I am making a script here to read from windows registry. The problem that I am facing is that at a certain point I start getting an error that the file does not exist. First Here is what I am doing `net = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged"` `key = OpenKey(HKEY_LOCAL_MACHINE, …

Software Development microsoft-windows python
Member Avatar for Ene Uran
0
182
Member Avatar for CodeWarrior14

I improved my AES encryption code, I now generate a key from a password of any length. But now I dont know if I'm generating a 128, 192 or 256 bit AES key. Here is my code: import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.PBEParameterSpec; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.Cipher; public class AESCipher …

Software Development encryption java
Member Avatar for CodeWarrior14
0
3K
Member Avatar for CodingSource

Do you have any ideas on how to make a yearly expiration/subscription in your VB.NET application?

Software Development vb.net
Member Avatar for Santanu.Das
-1
130
Member Avatar for Papa_Don

Hello Group, I'm trying to convert some VBA code into VB.net. Here is that VBA code: Open filePath For Input As #1 ' filePath = the text file I need to read Do Until textRowNo = 8 'discard these first 7 rows... Line Input #1, LineFromFile 'this is the row …

Software Development open-source vb.net visual-basic
Member Avatar for Reverend Jim
0
9K
Member Avatar for Azmah

I always see Python for web development but not for desktop programs. I've heard you can but can't find resources on how. Thanks in advance O:)

Software Development python
Member Avatar for kristopher.roller
-1
1K
Member Avatar for alexdoc9999

Hello All This is probably an easy one (I hope). I have a JLabel whose text I am trying to right justify. Should be <labelname>.setHorizontalTextPosition(JLabel.RIGHT). Simple, right? (wrong). It does nothing to the text on the label. The text just shows up with it's default left justification. However, when I …

Software Development java
Member Avatar for Joao_3
0
889
Member Avatar for Nation

Hie everyone, I am trying to develop a GUI through hard coding. I encountered a challenge: I created a Jframe and onto this I added a JPanel. **I assigned thge flow layout manager of the frame to null**(because i want to do the positioning of my components manually) The program …

Software Development gui ide java
Member Avatar for Nation
0
2K
Member Avatar for steven.rose.94

''' in Python 3.4 Attempting to parse and print one line (actually a number)from the downloaded code from yahoo sourecode using regex to pull the number that is located at the (.*?). I've tried everything I can think of to get this to work - I expect the problem is …

Software Development python regex
Member Avatar for steven.rose.94
0
360
Member Avatar for it@61@sec

I have the following struct definition: struct finfo { string filename; long fsize; bool operator() (finfo i, finfo j){return (i.fsize > j.fsize);} } fstruct; And the following vector definition: vector<finfo> fdata; In the code I use the following statement to sort the vector elements by fsize: sort(fdata.begin(),fdata.end(),fstruct); This works perfectly …

Software Development c++
Member Avatar for it@61@sec
0
990
Member Avatar for TheGuy831

Hi ive been trying to InvokeMember onmouseup to close a banner in WebBrowser Control.. <div id="layer1" style="height: 0px; left: 240px; position: absolute; top: 30px; width: 10px; z-index: 1;"> <span onmouseup="document.getElementById('floatLayer2').style.display='none'"> <img alt="" border="0" height="12" src="http://www.streamking.info/images/close.png" width="12" /></span></div> PLease!!!! Help!! Thank You...

Software Development vb.net
Member Avatar for TheGuy831
0
1K
Member Avatar for renzlo

Hi, All, I am instructed to develop a console application which monitors a process. It is now done but the problem is when I'm running it the CPU usage increases up to 100%, kindly check below code for some enhancement: Console App: Sub Main() While True System.Threading.Thread.Sleep(1000) If IsProcessExist() = …

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

Hello Guys, How would I have a button that when I click skips the calendar forward one month from the selected date? I'm a bit confused as there is no skip option or anything. Regards, Luke

Software Development vb.net
Member Avatar for LukeJWhitworth
0
104
Member Avatar for jean_5

This code gets the data from the table to show in a table for the user using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Collections; using System.Collections.Generic; using System.Text; namespace Form { public class RelUse { public DateTime Date { get; set; } } public RelUse() { …

Software Development asp.net
Member Avatar for djjeavons
0
1K
Member Avatar for CodingSource

Dear fellow programmers, I am trying to build a form that has two datetimepickers (for date range) and one button. When a user clicks the button the datagridview will show results according on the date range (by the two datetimepickers). This is my code so far: Dim dbconnection As New …

Software Development dataset vb.net
Member Avatar for Santanu.Das
0
807
Member Avatar for Szabi Zsoldos

Hey guys, I have this script that does count one year of files, 2014, but when it comes to this year, everything messes up. How could I count properly for each year in the same script ? In the attached screenshot it's obvious that I would only need 2014 - …

Software Development shell-scripting
Member Avatar for Watael
0
1K
Member Avatar for Dacorncob

so, i got this code, what it does is that it counts down from 20 minutes, is there a way to do so it counts from 0 to 20 min in that same gui? try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk import …

Software Development gui python tkinter
Member Avatar for Dacorncob
0
508
Member Avatar for khadikhel.orakzai

write a c++ program that will do the . Enter 10 integer . Pushing on stack and poping on user choice . pushing on queue and poping form queue . Bring the integer in order. Display the calculator selecting oprtion by user choice (+,-,*,%)

Software Development c c# c++ queue
0
92
Member Avatar for EdJones

I'm looking for a script that generates random images using the PIL Image module by assigning random RGB values to each pixel on a blank canvas. Does anyone have one of those lying around? (I want to write my own just for practice, but if it's already been done by …

Software Development image python
Member Avatar for vegaseat
0
6K
Member Avatar for IneedHELP2020

i have to make an numberplant genarator in python 3.4.2 but i am having a lot of trouble plz help

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for CodeWarrior14

Hello. I'm working on a project that requires some data to be encrypted with AES 128. My encryption works fine but when I decrypt I get an `Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length not multiple of 16 bytes` exception. Code: import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; public class AESCipher { private …

Software Development encryption java
Member Avatar for JamesCherrill
0
882
Member Avatar for newack

I have designed Random number guessing game in windows form application. after user enters guessed number,hits button. for button click i entered code: private void buttonEnter_Click(object sender, EventArgs e) { string invalue; int number; Random r = new Random(); int target = r.Next(0, 100); invalue = textBox1.Text; counter++; label4.Text = …

Software Development
Member Avatar for lexii
1
398
Member Avatar for NA7KR

Trying to update Packet.MSGState to P where if not R or D and it is Y in table Packet.MSGState SQL is MS-Access var ODBC from c# This is not undating all correct. UPDATE Packet SET Packet.MSGState = 'P' Where (MSGState <> 'R' and MSGState <> 'D') and Exists (Select MSGTO.Selected …

Software Development sql
Member Avatar for NA7KR
0
174
Member Avatar for PinoyDev

Good day! Is there a way to identify if a given date is hijri/arabic? Thank you!

Software Development visual-basic
Member Avatar for PinoyDev
0
134
Member Avatar for ddanbe

Looking on the web for how to do it. Found several solutions: serialisation, XML etc. Cannot decide which to use. My List class contains a string, some booleans and two other Lists. Awaiting some opinions that will be accepted with great gratitude. :)

Software Development
Member Avatar for ddanbe
0
239
Member Avatar for Nation

Hello everyone, I want to develop a GUI like the one shown in the image below. I want to do this through hard coding - no drag and drop. Please may you assist me with: 1. what should i include to come up with such a **layout**. 2. how do …

Software Development gui java
Member Avatar for Nation
0
204
Member Avatar for PinoyDev

Good day! I have a combo box which is readonly. It is loaded with data from the database. However, there is a point that I need to set text on it, and those text is equal to one which is in its list aleady. The below code produces runtime error …

Software Development visual-basic
Member Avatar for PinoyDev
0
386
Member Avatar for markdean1989

*** Systems *** OS: Windows 8.1 64bit IDK: MS Visual Studio Express 2013 for Windows Desktop Problem: I created a simple (very simple) User-defined function named func_compare that compares two numbers, it has two parameters of type Integer. It has no errors whatsoever until you compile it, and it says …

Software Development c c# c++ os-x visual-studio
Member Avatar for markdean1989
0
324
Member Avatar for Nation

please assist by explaining what this code is trying to do - i mean the logic. if ((InteractiveForm.this.tableModel.getRowCount() - 1) == row &&//i dont understand this line(the logic) !InteractiveForm.this.tableModel.hasEmptyRow()) { InteractiveForm.this.tableModel.addEmptyRow();//this is where we append a new row } the whole program can be found [here](http://www.javalobby.org/articles/jtable/?source=archives) any explanation is greatly …

Software Development java
Member Avatar for Nation
0
161
Member Avatar for Nation

Hello everyone, I have my code that is supposed to append an empty row to a table at runtime when a user presses the enter button. The code is working fine. here is the code if it helps: table.addKeyListener(new KeyListener() { @Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == …

Software Development java
Member Avatar for Nation
0
125
Member Avatar for pars99

I expected there to be one, especially on a site as popular as this one.

Software Development objective-c
Member Avatar for pars99
0
224

The End.