132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for leonel68

i have a windows forms with 7 texboxes, i would like to save the input into a sqwl databse , but i am having a bit of problem, this is my code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New SqlConnection("server = …

Software Development sql vb.net visual-basic
Member Avatar for Dany12345
1
3K
Member Avatar for Yogesh_9

#include<iostream> using namespace std; int main() { int test; cin>>test; while(test--) { int start,end,m; cin>>start; cin>>end; bool arr[end]; for(int i=0;i<end;i++) arr[i]=true; for(int i=2;(i*i)<=end;i++) { for(int p=2;(p*i)<=end;p++) { m=(p*i-1); arr[m]=false; } } for(int i=start-1;i<=end;i++) { if(arr[i]!=0&&i!=0) cout<<i+1<<endl; } } return 0; }

Software Development c++
Member Avatar for StuXYZ
1
376
Member Avatar for Ghost

Hi, i'm new 2 C#, so my question may seem stupid... but, what is the code to exit an application. I know in java it is: [CODE]System.exit(0);[/CODE] Thanx in advanced, C++

Software Development c#
Member Avatar for vasanthmc2
1
10K
Member Avatar for GUIPaPa

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = …

Software Development gaming ide image java
Member Avatar for GUIPaPa
1
504
Member Avatar for harshchandra

This program just demonstrate how a node can be added,deleted,searched,counted,and printed using Singly Linked List. An easy code to understand :)[code]////////////////////////////////////////////////////////////// ////////// -: Singly Link list :- ///////// //////////////////////////////////////////////////////////// /* reference : Understandng pointer though c - Y karnetkar. */ ////////////////////////////////////////////////////////// ////////// Programmer : Harsh chandra /////////// //////////////////////////////////////////////////////// # include<stdio.h> …

Software Development c linked-list
Member Avatar for hanumant113
1
823
Member Avatar for chubbyy.putto

cout << "Enter size of array: " << endl; cin >> size; cout << "Enter elements: "; for(i=0;i<size;i++) { cin >> array[i]; }

Software Development c++ display
Member Avatar for Learner010
1
163
Member Avatar for chubbyy.putto

for (int index = 0; index < 200; index++) { if(find_array[index] < minimums[0]) { minimums[0] = find_array[index]; //Lowest number cout <<"The index is " << index << endl; // trying to find an index } } for (int index = 0; index < 200; index++) { if(find_array[index] < minimums[1] && …

Software Development c++
Member Avatar for chubbyy.putto
1
107
Member Avatar for supra

I am a #rd yr. B.Tech student & want to do projects on C & Linux Shell Programming.It will be of great help if I can be supplied with some project titles for freshers with industry relevence. Thanking you, Supra

Software Development java
Member Avatar for stultuske
1
422
Member Avatar for mixelplik

I have no clue why this search isn't working. Two majors problems (1) As is it always returns false (2) It would recognize valid IDs if instead of setting found to true, I just returned true, but I don't want to do it like that, and if there was an …

Software Development algorithm c++
Member Avatar for rubberman
1
125
Member Avatar for glamiex

Hi guys, my assignment is to create a program that sets up a menu for a user to choose from. The menu should consist of an addition, subtraction, multiplication and division problem. It seems to work well, but the only thing that's not working is the division problem. Whenever I …

Software Development c++
Member Avatar for rubberman
1
160
Member Avatar for Rahul47

Here is my code along with question in it. #include<stdio.h> int main(){ int i,a[2][3]={{1,2,3},{4,5,6}},*p=&a; printf("%d",p); // Printing the base value. printf("\n%d",p[4]); // Q) Does this means *(p + 4) ? printf("\n%d",p[5]); // Q) Does this means *(p + 5) ? getch(); return 0; }

Software Development c
Member Avatar for Rahul47
1
206
Member Avatar for Chair

Hi, can someone pls help me. I'm trying to pass the name of the user who logs in from a login form and display his/her name on a Main form. I'm using get{} and set{}. My problem is with the function I'm trying to create to return the name of …

Software Development c c# c++
Member Avatar for pritaeas
1
9K
Member Avatar for lauren.vitiello.12

I am trying to get the highest value in my rows. I have been at this awhile trying to figure it out. I assume it is suppose to return 3 values but honestly i really suck at this. Here is what I have public static int getHighestInRow(int[][] numbers, int row) …

Software Development java
Member Avatar for scudzilla
1
335
Member Avatar for dagi125125125

Write a float function rectangle() that computes and returns the area of a rectangle using its two float formal parameters h and w, where h is the height and w is the width of the rectangle

Software Development c++
Member Avatar for userasad
1
284
Member Avatar for NardCake

Hello! This is mainly a curiousity question, I may apply it to something in the near future though just as an added twist... :D So essentially I want to figure out how a progress indicator is created in the shell. For example with wget or something you may see a …

Software Development api c
Member Avatar for L7Sqr
1
196
Member Avatar for maurice.waka

listname = ['bartian', 'lenana', 'kilimanjaro', 'uhuru', 'elgon', 'everest'] while True: if listname[:-1] == everest: print(listname[:-1]+=) I need a way to loop over this list and print the items in the list. I dont know whether this is pythonic since am having trouble printing the items. I want it to print …

Software Development python
Member Avatar for Lucaci Andrew
1
230
Member Avatar for Paladine

Just got to playing around, and felt that the VB forum on here could use some posts. What I was playing around with forms in VB.NET and wanted to hard code centering a form. Here is what I found...and if anyone has an easier or slicker way...let me know. -in …

Software Development vb.net
Member Avatar for dinesh.panjwani.98
1
7K
Member Avatar for KushMishra

Hi, I want to create a dependency property for both Command and CommandParameter so that I can use these in controls that don't support Command and CommandParameter like textblock etc. I have written and taken help from someone to create DP(dependency property) for Command and its working fine but for …

Software Development asp.net
Member Avatar for KushMishra
1
4K
Member Avatar for matthew.l.diefenbacher

*Hello. I am not new to the wonderful site - Just lost login credentials* I am resuming work via Python and must make some installs into my Lib. I am having trouble with this - I have not used Python in 2-3 years. Many syntax errors. This is from install …

Software Development open-source python
Member Avatar for HatGuy
1
341
Member Avatar for KushMishra

Hello All, I went through many websites and did not find any converter that could purely convert C# syntax to VB syntax. However there are many converters available on the Internet but personally I don't think they are pure converters. Requesting all to please suggest some online tools/converters to achieve …

Software Development c# vb.net visual-basic
Member Avatar for JOSheaIV
1
454
Member Avatar for Schol-R-LEA

In most modern languages, there are two fundamental approaches to repeating an action: either *iteration*, in which an action is placed inside a special-purpose structure which causes the action to be repeated, or *recursion*, in which a general-purpose function calls itself (or another function which in turn calls the earlier …

Software Development c++ data-structure
Member Avatar for Ancient Dragon
1
2K
Member Avatar for Adeel Rahat

i need a simple c++ project idea or a project.

Software Development c++
Member Avatar for Harsh223
1
360
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 WILLIAM_5

Hi everyone, I recently installed Python on Windows. I wanted to develop a gui program using Tkinter. The problem is that when I try to import Tkinter module. It gives me a 'module not found' error. But I thought Tkinter was preintalled within Python's installation. It is even more confusing …

Software Development microsoft python tkinter
Member Avatar for nichom
1
632
Member Avatar for KushMishra

Hi all, I am a naive programmer to VB and VB.Net, I have mostly used C# and now I am stuck at a simple point as follows :- CollectionView.CollectionChanged += Function(sender, e) RebuildSearchIndex() I don't have any idea how to replace "+=" as its showing some error. Requesting you all …

Software Development vb.net visual-basic
Member Avatar for KushMishra
1
497
Member Avatar for KushMishra

Hello All, I am populating my frame from different pages and showing the output as a grid. Following is my xaml code :- <Frame x:Name="mainFrame" Grid.Row="1" JournalOwnership="UsesParentJournal" /> and xaml.cs :- mainFrame.Source = New Uri("Views/ProductsPage.xaml", UriKind.Relative); But I want to change the selected/unselected (focused/non-focused) row colors in this frame and …

Software Development asp.net vb.net visual-basic
Member Avatar for KushMishra
1
278
Member Avatar for SaRa Ahmad

hi every one , i have this Question and i hope if i find an answer about it , can i convert a pdf file to image using vb6 ??

Software Development image pdf visual-basic
Member Avatar for LozeeS
1
3K
Member Avatar for vegaseat

This is an example of a singly linked list allowing you to enter a number of names and associated ages. The twist is that the names are inserted into the list in ascending order. When the list is displayed, it is already sorted by name. Note: This is not an …

Software Development c linked-list
Member Avatar for Ancient Dragon
1
470
Member Avatar for kent.johnstone_1

What does -> mean in the following line of code? bulk_in=end_point->bEndpointAddress; My books show - and > but neither of them seem to apply. The books don't seem to show both together. This is part of a USB driver that I'm trying to convert from Linux to C for the …

Software Development c
Member Avatar for kent.johnstone_1
1
246
Member Avatar for vegaseat

The PySide (PyQT) GUI toolkit can be used to play wave sound files.

Software Development gui python
Member Avatar for vegaseat
1
3K
Member Avatar for KushMishra

Hello All, I just wrote some code in C# and tried converting to VB.Net. I am getting 3 kinds of errors in my code :- 1. Class 'XXX' must implement 'Function XXX(abc,pqr,...)' for interface 'XX.XX.XX'. 2. 'RaiseEvent' definition missing for event 'XXX'. 3. 'XXX(abc,pqr,...)' is an event and cannot be …

Software Development c# vb.net
Member Avatar for ryanjayson
1
675
Member Avatar for vegaseat

PySide's QWebView can load a given url and display the web page associated with it with just a few lines of code.

Software Development python
1
1K
Member Avatar for vegaseat

If you decorate a function, then some of the information is lost during the debugging process. Python supplies another decorator @wraps to help out. A decorator for a decorator, very interesting.

Software Development python
1
435
Member Avatar for cool_zephyr

i have a simple note and images storing java program that stores data into the server..i'm confused about what to use for building the server..should the server be built using sockets?? or which listens for http requests (the client sends json data)?? could anyone please tell me which one would …

Software Development http-protocol java json socket-programming
Member Avatar for cool_zephyr
1
299
Member Avatar for procomp65

Hi I have been battling for the past 2 days with this. I import a .csv file into a datatable. The columb "Date" has the following data in each row "13/9/2 14:24:30" I need to plot data in zedgraph with these dates and time. each row in the datatable is …

Software Development
Member Avatar for ddanbe
1
184
Member Avatar for silversurf

Hello, I am trying to build a pos and inventory system in vb 6.0 with MS-Access database. I do not have much experties in vb 6. Ok here is the question now, I have a frmcashsale in my system which have a MSHFlexgrid called grid, I have managed the codes …

Software Development visual-basic
Member Avatar for Stephene_1
1
667
Member Avatar for Dani

This is a program I wrote for my x86 assembly class which generates matrices, multiplies them, and computes how long the arithmetic took. It uses Irvine32.inc which came with the textbook.

Software Development assembly matrix-multiplication
Member Avatar for ESLAMIKA
1
5K
Member Avatar for jared.geli

Hi again I want to display my table in excel to my datagrid. I want select the 5th row of my spreadsheet as the column header. I have no problems of displaying it in DGV when my column header is at the first row. Now I need to have my …

Software Development dataset vb.net
Member Avatar for jared.geli
1
1K
Member Avatar for CodingCabbage

I wish to create a loop which adds images across a screen with random positions: photo1 = PhotoImage(file=address) #Assign image to PhotoImage XValue = randint(0,widthOfScreen-width2) #width2 = image width YValue = randint(0,heightOfScreen-height2) #width2 = image height Label(mainGUI, background = "white", image = photo1, borderwidth = 0).place(x=XValue, y = YValue) the …

Software Development gui python tkinter
Member Avatar for CodingCabbage
1
14K
Member Avatar for kakilang

below is the simple source code #include <iostream> using namespace std; int main() { cout<<"Hello"<<endl; system("pause"); return 0; }?? how to let program play some music when the program print the word "Hello"?? Let's say the song file name is "hello.mpg".

Software Development c++
Member Avatar for 4reebahmedkhan
1
10K
Member Avatar for Gribouillis

This snippet is reserved for users of the KDE linux desktop. It adds a *service menu* to kde applications such as dolphin and konqueror, to launch an ipython dashboard in a directory in one click. More specifically, save the text of this snippet as a file `~/.kde/share/kde4/services/ServiceMenus/opennotebook.desktop` (create the directory …

Software Development python web-browser
1
632
Member Avatar for karanv
Member Avatar for dave.schroeder.906

I'm having trouble with this bit of code that I'm working on. I get an error code in my `parseit()`method that says, "not all code paths return a value". Ideally I'm trying to call my method and parse my variables from my textbox to return true when they're valid, then …

Software Development c c# c++
Member Avatar for Michael27
1
304
Member Avatar for TrustyTony

Here little debugged version of my calculator posted earlier in GUI calculator thread. I prepared it after listening that their teacher did more limited calculator in around 150 lines of code with their graphics module. This is 115 lines without empty lines and comment lines [CODE]>>> li=[i for i in …

Software Development gui python
Member Avatar for fonzali
1
2K
Member Avatar for lerkei

Can anyolne help me in coverting .txt file to xml?..i tried codes from differrent sites but didn't help..please help,.........thanks in advance..

Software Development vb.net xml
Member Avatar for irvg.davter
1
2K
Member Avatar for GillBates

hello all I'm trying to write a program that returns us [U]majority element[/U]. [I]An array is said to have a majority element if more than half of its entries are the same - [I]>(size of the array)/2[/I].[/I] It wouldn't be a problem if i had no conditions, but i have …

Software Development algorithm c++
Member Avatar for kal_crazy
1
3K
Member Avatar for emil_ham

This simulator works for: 1. First Come First Serve (FCFS) 2. Round Robin (RROB) 3. Priority (PRIO) 4. Longest Job First (LJF) 5. Shortest Job First (SJF) algorithms. The program is written for gcc linux compiler. In input file a sequence of processes coming to the systems included, where also …

Software Development algorithm c operating-system
Member Avatar for ElGauchoUTn
1
2K
Member Avatar for ddanbe

This has by far no practical use. But as I was used to VS, handling most of the code housekeeping "behind the back", I wanted to try to make a Forms program as minimalistic as possible. Start an Empty project, include a reference to System.Windows.Forms and fill in the code. …

Software Development
Member Avatar for pitic
1
169
Member Avatar for iFrolox

Hello, Im messing with processes for a project that Im doing, so if I detect that the specific process Im checking changes the title containing a specific word like "Hello" I will kill the process and start it again. Im doing this with a timer so every X secs/minutes it …

Software Development
Member Avatar for iFrolox
1
419
Member Avatar for deceptikon

Hopefully I shouldn't need to explain what `gets` is or why it's easily one of the worst possible standard functions you could call in your code. In my personal opinion, the title for "holy shit, never use this function" is a tie between `gets` and `system`. I'll discuss the problem …

Member Avatar for rubberman
1
268

The End.