43,549 Solved Topics
Remove Filter ![]() | |
Simply put i would like to open a new form as simply as possible using a button i looked at this [URL="http://www.daniweb.com/forums/thread99518.html#"]http://www.daniweb.com/forums/thread99518.html#[/URL] but it confused me i dont want any values passed on i just simply want it to hide the old form and open then new form can this … | |
I want to replace 'nf' with 1.0, so that the resulting string should be: '(1.0+nfpermult+1.0)' I tried various approaches using find(), re.sub but I am not able to make it work. eg. re.sub('nf', '1.0', str) replaces all occurrences of nf. also re.sub('\bnf\b', '1.0', str) does not work either as 'nf' … Software Development python | |
Does anyone have an idea why these console colors aren't coming out properly? Some of them work and some come out as junk. [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace daniweb.capp { class Program { static void Main(string[] args) { const string s = "0020002000200020007c007c003a003a007c003a007c007c002000200020002e" + "002d002d002d002d002d002d002d002d002c000d000a0020002000200020007c" … Software Development | |
Hi,im here for d first tym and also for d frst tym ever in any forum.im very much intrstd 2 learn C#.bt i dnt knw in wich way i should start.i dnt knw any othr language.is it possible for me 2learn C#??? any gud heart thr pls pls help me.thank … Software Development c# | |
How can I simply do a list of hours - a date schedule (from 0 to 24) in a listView, that 1st column would show hours seperated by 30 min, 2nd column then will be filled with the name who will reserved that hour. Something like that: [URL="http://img189.imageshack.us/img189/5023/clistview02.jpg"]PICTURE[/URL]. Software Development listview | |
I seem to be getting an error in this code gdb tells me the segerror is comming from the code: data[dpos]+=cmd[d]; [CODE]//Strip tags data[0]="";data[1]="";data[2]="";data[3]=""; dpos=0; for(int d=0;d<cmd.size();d++){ if(cmd[d]==';'){ dpos++; } else{ data[dpos]+=cmd[d]; } } cmd=""; //end strip[/CODE] Could anyone please tell me whats going on? Software Development c++ | |
[below structure contains s1[i].name contain array of string name. to check if user entered name in that array list. i need to compare words by words. but my problem is that since string is stored in array. and string itself is an small array. so i dont know how can … Software Development c | |
[QUOTE=vegaseat;250820]This little code shows 6 random integer numbers from 1 to 50 ... [code]import random print "show 6 random integers from 1 to 50:" for k in range(6): r = random.randint(1, 50) print r, print [/code] Rewrite the code to make sure there are no duplicate numbers amongst the six … Software Development python | |
Hey i have a problem with my C# problem under the class cars. On each public declaration it is saying that it already contains a definition for 'idNumber', 'make', 'model', 'color', and 'cost'. I am using windows visual basic, here is my code. [code=csharp] using System; using System.Collections.Generic; using System.Text; … Software Development visual-basic | |
Okay, I'm creating a Battleship game. It's going to be using the console for now, still don't know GUI. Anyways, this is my issue. I have created two boards as lists, the first for the user, the second for the computer. I have the computer generate random numbers and a … | |
I have a mathematical problem that I am not sure how to solve. I am trying now but still cant find a solution. What I is doing is this: The example is that I have a number: "129" that I will need to round down to the nearest value. The … Software Development c++ | |
Hello! I have a question in regards to [I]malloc[/I]/[I]calloc[/I] and [I]free[/I] in C. What I'm unsure about is the "depth" (for lack of a better word) that [I]free[/I] operates to. I know that sounds strange so let this example hopefully explain what I mean: [code=c] #include <stdlib.h> int main () … Software Development c | |
Hello, I've got a problem. I created a DataGridView, where a DataTable is it's DataSource. There is a column named "Age" i this DataGridView. It's format is string as I accept the value "unknown". The problem occurs when i try to sort it. After descending sorting the rows where "Age" … Software Development vb.net | |
Hi, I want write a program which extract 'Rated PG for some scary moments and mild language' from the following html file and return it as a list . html file: <div class="info"> <h5><a href="/mpaa">MPAA</a>:</h5> <div class="info-content"> Rated PG for some scary moments and mild language. (also 2009 extended version) … | |
I have the following code and was wondering if it is a memory leak [CODE] #include <cstdlib> #include <iostream> #include <iomanip> #include <vector> using namespace std; template <class T> class live { vector<T> _data; live<T> *_next, *_temp; public: live(int elements, int chunk = 10) : _next(NULL) { if (elements > … Software Development c++ | |
How can I show a message in the statusBar for 5 seconds? I do some code, on the end I write out a message in statusBar (statusBar.Text = "Notification Message"; ). But I want that is shown for only 5 seconds. Then it dissapears (with statusBar.Text = ""; ) How … Software Development | |
I'm trying to use the timer (not a Timer object) in a Do... Until loop. I want the loop to put a single variable into a label. When I do this it works and puts the value into the label (lblOxygenReading): [CODE] If btnGetOxygen.Text = "Get Oxygen Reading" Then Select … Software Development vb.net visual-studio | |
![]() | My Application is not db based i am developing just for learning. i have 2 form first have just user name and password textfield and submit button and second form have one label. i have make condition with if-else when username is "[B]waqas[/B]" and password is "a" then show form2 … Software Development ![]() |
Hi , I want to write a program on Lexical Analyzer: which finds the no of keywords, no of operators ( based on the classification arithmetic, logical,....), constants, and others. please suggest me one good method. i am using a method which follows as below: char *Arith_Oper[]={ "+", "-", "*", … Software Development c | |
I have Visual Basic 8.0 and Use Mysql 5.0 Database Table Test: Field type ID Integer (PRIMARY KEY) Name Char(10) Adress Char(15) City Char(15) ID Name Adress City 1 Andre Street 1 New York 2 John Street 2 Amsterdam 3. Joyce Street 3 Londen I have create a index on … Software Development mysql vb.net visual-basic | |
I have tried following code to open an existing excel file. the code gets executed but the excel file does not appear on the monitor please help. Dim xlTmp As Excel.Application Set xlTmp = New Excel.Application xlTmp.Workbooks.Open "L:\FormsNRegisters\Accounts\Bill_Forms.xls" Dim xlSht As Excel.Worksheet Set xlSht = xlTmp.Sheets(1) Software Development visual-basic | |
I need to convert a number (in decimal form) that is between 1 to 4999 to Roman Numeral Form. However, though the code I have is kinda working, its only outputting the thousand digit, not anything less or any part thats less. [code] def int2roman(number): numerals={1:"I", 4:"IV", 5:"V", 9: "IX", … Software Development python | |
Hello guys, first of all.. am gonna say that i googled and searched the forum alot.. nothing to be found.. So my question is.. 1- Where does my actual manual written code go in C# + GUI (WindowsFormsApplication not the console one.) Does it go in the Program.cs or Form.cs? … Software Development gui | |
I want to make something to read the text/strings sent to a server and maybe detect if the server is crashed or not and something to and some thing to send text/strings to a server maybe using winsock P.S. I also want to make something to crash my server. Software Development client-server vb.net | |
hii try to query out db file to DataTable and it work great!! but i get all db file includding Rows that as be deleted. Thare is away to quey out db file with out These deleted rows?? [CODE]System.Data.Odbc.OdbcConnection oConn = new System.Data.Odbc.OdbcConnection(); oConn.ConnectionString = @"Driver={Microsoft dBase Driver (*.dbf)};SourceType=DBF;SourceDB=D:\databases\;Exclusive=No; Collate=Machine;NULL=NO;DELETED=NO;BACKGROUNDFETCH=NO;"; … Software Development | |
Dear Sir, How to detect picture has a picture on empty? Suppose , I droped a picturebox control on form, there is no image loaded in it, what codes should I needed those will tell me that picturebox is empty? Please help Software Development vb.net | |
hi all, i have a program that change the look of the taskbar. But i have a problem, i want to set the start button position to the middle of the taskbar but can't find any code to do this. I know that its possible because there are some programs … Software Development vb.net | |
[Warning] It not the completed code. its just a rough idea[CODE] do{ printf("Please enter a number :") scanf("%d", &no); if (no <=0) printf("invalid"); }while(no<=0); [/CODE] Hi Guys! I've a issue with scanf. First loop the program. I entered '1', a valid input. Once i retry the program, i entered a … Software Development c++ | |
hi currently on my ubuntu i have both wx-2.6-gtk2-unicode & wx-2.8-gtk2-unicode installed, but when i use this code in python 2.6 : [CODE]import wx[/CODE] always wxwidget 2.6 was imported. is there any solution to have both or it's better to uninstall version 2.6 ? thanks | |
Hi all, I have this dilemma, if I receive strings on the form of: <Ranking: AA (John)> <Ranking: CA (Peter)> <Ranking: TA-A (Samantha)> And I want to take the ranking only from the strings (i.e. AA, CA, TA-A) How can I do it using string methods like split or strip … Software Development python | |
hello, i want to utilize the demo code given in the wxpython 2.8 documentation & demos. can any one guide me how can i do that??? when i try to copy that code to editor to change it according to my requirements ..it gives me an error message and close … Software Development python | |
Hello, I have this program that simplifies a fraction by calculating the greatest common divisor. So the fraction 8/4 (largest common divisor = 4) 8/4 4/4 => result would be 2/1 (fraction simplified) My problem is my method calculated this greatest common divisor. But now that value has to be … Software Development mathematics | |
So this is a homework question, but i've been doing endless reading and am really clouded over!! I have to use an Object Oriented approach to gain the higher marks for this but I can't work out whether i'm going about this all wrong. Is it possible to have just … Software Development oop | |
Hi, I want to read/write data from a file and I don't know how (I'm using Visual studio c++). More exactly, if I have the following code: [CODE]#include<iostream> #include<fstream> using namespace std; int main() { ofstream newfile; newfile.open("exemplu.txt"); myfile<<"I want to write this in a file\n"; newfile.close(); return 0; }[/CODE] … Software Development c++ visual-studio | |
How to get row and column index when I double click (or some other event) of a cell on a ListView? Software Development listview | |
Hi All, In my VB.Net app, I want to read in a load of addresses from a database and then use word to create address labels on an Avery template L7163 which is then printed to the printer. However, I have two issues: 1. Before word prints, I'm asked to … | |
Hi, i am facing a problem in c#.net i have a user data form where i have used picture box and opendailogbox when i am selecting a picture it is showing in picturebox now what i want is that i have a button on the form when i click on … Software Development image | |
Duh! I'm now using Linux from my external HDD again. Please suggest a good IDE for me Thanks | |
I'm at the beginning of my journey to get a computer science degree and I'm taking an intro to programming course taught in C# (I'll also be using it next semester for my data structures and algorithms class). I took a visual basic class last semester that required visual studio … Software Development c# data-science visual-basic visual-studio | |
I am building applications targeting Windows Mobile, I need to read and write files. I am not sure whether to use the C++ standard library (iostreams) or the Windows API (ReadFile(), WriteFile()...). I think the Windows API is faster than the C++ standard library, but they are not object oriented, … Software Development api c++ windows-api | |
Hi all, I'm pretty new to VB.net, having only recently migrated from VB5(!). I'd appreciate any help at all with the following problem that I have on a project; I'm reading data in from a comma-separated text file and storing the data in an array for later use. Some of … Software Development vb.net | |
I have form1(frmGate) and form2 (frmEdit) form1 minimizes when form2 is open and restores when form2 is closed however I use this to open form2 [CODE]private void btnEdit_Click(object sender, EventArgs e) { //checks to see if the form is open if (editor == null || editor.IsDisposed == true) { editor … Software Development perl | |
hello members...........i need a help from someone to give me an idea of how can i write a code for cryptex i have an assignment and i couldn't figure out how to start writing a code i just need an idea of how the program will work in order to … Software Development c++ | |
So I have a client/server application and I'm trying to send an ArrayList of objects to the server. I kept getting errors sending the ArrayList of objects, so I just decided to send an empty ArrayList to see if anything was wrong, and it turns out, that the server can't … Software Development client-server java | |
Hi all, How to write one file to the end of other file using python. Software Development python | |
Hi. I would like the program to take the character/symbol/number right away after they had been pressed to avoid string being entered. [CODE] static void Main(string[] args) { char E; string response; do { Console.WriteLine("Please select your products :"); Console.WriteLine("Oranges - press O"); Console.WriteLine("Apples - press A"); Console.WriteLine("Potatoes - press … Software Development apple | |
I have managed to change an input String expression with parentheses to a postfix expression. I want to print to print the values in the stack but can't work it out. Can anyone tell me how I do this? [code] class Converter{ private Stack converterStack; private String input; private String … Software Development java | |
i tried to pass one number by one within given range from for loop to while loop to check for armstrong. but the value passed from for loop into while loop is not accepting. so any suggestion [CODE] /*program to find armstrong within a given range */ #include<stdio.h> #include<math.h> int … Software Development c | |
I want to pass all the values from a HashMap to ArrayList (that a demand of my exercise..) and to use for it an iterator (to the HashMap). How do I get the first key to the HashMap? (if I have the first I'll continue in a loop untill there … Software Development java | |
Hello, I have to read from a .txt file which has info as such, 10:5:23 2:343:54 1:4:7 and so on. 3 Columns, lots of rows. How can i read each column for example 10 to x, 5 to y, 23 to z. Software Development c++ |
The End.